From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Parker Lue Subject: Visiting an Entry with an ID Date: Tue, 9 Feb 2016 13:43:39 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdcab342a9ecf052b5ab24c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTDGH-0005AQ-P0 for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 13:43:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTDGG-000243-Mi for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 13:43:41 -0500 Received: from mail-ig0-x22e.google.com ([2607:f8b0:4001:c05::22e]:38191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTDGG-00023w-IY for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 13:43:40 -0500 Received: by mail-ig0-x22e.google.com with SMTP id mw1so18122211igb.1 for ; Tue, 09 Feb 2016 10:43:40 -0800 (PST) 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: emacs-orgmode@gnu.org --047d7bdcab342a9ecf052b5ab24c Content-Type: text/plain; charset=UTF-8 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? --047d7bdcab342a9ecf052b5ab24c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Trying to figure out how to switch buffers when=C2=A0visiting an entry give= n an ID in Elisp. To elaborate:


Does anyone have an answer for this= ?

--047d7bdcab342a9ecf052b5ab24c-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Visiting an Entry with an ID Date: Tue, 09 Feb 2016 14:12:18 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTDi4-0006sS-ML for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 14:12:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTDhz-0001S0-QS for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 14:12:24 -0500 Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]:35509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTDhz-0001Ru-LT for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 14:12:19 -0500 Received: by mail-qk0-x22b.google.com with SMTP id o6so74093864qkc.2 for ; Tue, 09 Feb 2016 11:12:19 -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: Alan Parker Lue Cc: emacs-orgmode@gnu.org 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 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--