diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-01-19 21:23:40 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-01-19 21:23:40 -0500 |
commit | af1b288db110667544ddc57eb79f6bf56ec632cb (patch) | |
tree | 3399e277ca12f446d156e1ac1c4b7921d6324ccf | |
parent | e787d178c2f9a875fe0a0fabbd3d25925eb12e9c (diff) | |
download | bog-af1b288db110667544ddc57eb79f6bf56ec632cb.tar.gz |
bog-list-orphan-citekeys: Raise buffer
-rw-r--r-- | bog.el | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -371,8 +371,9 @@ With prefix FILE, include only orphan citekeys from that file." (let ((files (or (and file (list file)) (bog-notes))) (heading-cks (bog-all-heading-citekeys)) + (bufname "*Bog orphan citekeys*") cks) - (with-current-buffer (get-buffer-create "*Bog orphan citekeys*") + (with-current-buffer (get-buffer-create bufname) (erase-buffer) (insert "\n") (-each files @@ -386,7 +387,9 @@ With prefix FILE, include only orphan citekeys from that file." (insert (format "* %s\n\n" (file-name-nondirectory f))) (insert (concat cks "\n\n"))))) (org-mode) - (show-all)))) + (show-all) + (goto-char (point-min))) + (pop-to-buffer bufname))) ;;; Citekey-associated files |