From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: [PATCH] org-id-goto doesn't work if buffer is narrowed. Date: Fri, 23 Oct 2015 14:48:21 -0400 Message-ID: References: <874mhh1u7s.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZphO4-0002jN-Px for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 14:48:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZphO1-0004TU-J8 for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 14:48:24 -0400 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]:36487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZphO1-0004TK-Eu for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 14:48:21 -0400 Received: by qkca6 with SMTP id a6so86440898qkc.3 for ; Fri, 23 Oct 2015 11:48:21 -0700 (PDT) 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: Puneeth Chaganti Cc: emacs-orgmode , Rasmus It has always bugged me when clicking on an id link does not put the point on the headline when narrowing is in place. Opening in a new buffer might be a nice compromise of preserving the restriction in place, and getting to the point of interest. I think these are called indirect buffers (http://www.gnu.org/software/emacs/manual/html_node/emacs/Indirect-Buffers.html). Puneeth Chaganti writes: > Hi Rasmus, > > On Fri, Oct 23, 2015 at 8:57 PM, Rasmus wrote: >> It's not obvious that org should change a—potentially—carefully selected >> narrowed region. > > I agree. But, am I not explicitly asking to jump to the specified > item. I don't mind the widening, at least when the call is > interactive. I agree with you when some other code is calling it, > though. > >> Perhaps you could mimic the way org-edit-special works for this case. > > You mean, display the entry in a new buffer, and any changes will be > applied onto the original entry too? -- 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