From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Parker Lue Subject: Re: Visiting an Entry with an ID Date: Tue, 9 Feb 2016 15:00:10 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113eccdad48c4e052b5bc3c2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTESK-0000uc-SZ for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 15:00:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTESJ-0005I7-Nt for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 15:00:12 -0500 Received: from mail-io0-x232.google.com ([2607:f8b0:4001:c06::232]:35505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTESJ-0005Hz-JF for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 15:00:11 -0500 Received: by mail-io0-x232.google.com with SMTP id d63so29014256ioj.2 for ; Tue, 09 Feb 2016 12:00:11 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin Cc: "emacs-orgmode@gnu.org" --001a113eccdad48c4e052b5bc3c2 Content-Type: text/plain; charset=UTF-8 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? > > > -- > 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 > --001a113eccdad48c4e052b5bc3c2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable That's perfect, thanks!

On Tuesday, February 9, 201= 6, John Kitchin <jkitchin@and= rew.cmu.edu> wrote:
I posted this = answer on SO:

(defun open-id (id)
=C2=A0 (org-id-goto id)
=C2=A0 (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 give= n 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://kitc= hingroup.cheme.cmu.edu
--001a113eccdad48c4e052b5bc3c2--