[O] Visiting an Entry with an ID

2016-02-09 Thread Alan Parker Lue
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?


Re: [O] Visiting an Entry with an ID

2016-02-09 Thread Alan Parker Lue
That's perfect, thanks!

On Tuesday, February 9, 2016, John Kitchin <jkitc...@andrew.cmu.edu> 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?
>
>
> --
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>


[O] org-agenda-quit Kills Visible Buffers

2015-12-24 Thread Alan Parker Lue
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 "Agenda for current week or day"
   - q for (org-agenda-quit)

I find that =active_buf.txt= has now been killed.

Same thing happens with "x" for (org-agenda-exit). Also happens after
completely doing away with my init.el, so I don't believe this is the
result of a setting.

What is going on?

Alan