emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Visiting an Entry with an ID
@ 2016-02-09 18:43 Alan Parker Lue
  2016-02-09 19:12 ` John Kitchin
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Parker Lue @ 2016-02-09 18:43 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]

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?

[-- Attachment #2: Type: text/html, Size: 481 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Visiting an Entry with an ID
  2016-02-09 18:43 Visiting an Entry with an ID Alan Parker Lue
@ 2016-02-09 19:12 ` John Kitchin
  2016-02-09 20:00   ` Alan Parker Lue
  0 siblings, 1 reply; 3+ messages in thread
From: John Kitchin @ 2016-02-09 19:12 UTC (permalink / raw)
  To: Alan Parker Lue; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Visiting an Entry with an ID
  2016-02-09 19:12 ` John Kitchin
@ 2016-02-09 20:00   ` Alan Parker Lue
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Parker Lue @ 2016-02-09 20:00 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 779 bytes --]

That's perfect, thanks!

On Tuesday, February 9, 2016, John Kitchin <jkitchin@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
>

[-- Attachment #2: Type: text/html, Size: 1299 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-09 20:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-09 18:43 Visiting an Entry with an ID Alan Parker Lue
2016-02-09 19:12 ` John Kitchin
2016-02-09 20:00   ` Alan Parker Lue

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).