That's perfect, thanks!
On Tuesday, February 9, 2016, John Kitchin wrote:
> I posted this answer on SO:
>
> (defun open-id (id)
> (org-id-goto id)
> (message "%s" (current-buffer)))
>
> It seems to do what you want.
>
> Alan Parker Lue writes
Trying to figure out how to switch buffers when visiting an entry given an
ID in Elisp. To elaborate:
http://stackoverflow.com/questions/35299171/org-mode-elisp-how-does-one-switch-the-buffer-when-using-an-id-to-visit-an-en
Does anyone have an answer for this?
After upgrading org-mode recently, I find that hitting "q" for
(org-agenda-quit) while viewing an agenda kills the buffer that was active
when I created the agenda.
I'm on org-mode v8.3.2. To reproduce:
- Activate a buffer, call it =active_buf.txt=
- C-c a for (org-agenda)
- a for "Agend