emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] org-id-goto doesn't work if buffer is narrowed.


From: Rasmus
Subject: Re: [O] [PATCH] org-id-goto doesn't work if buffer is narrowed.
Date: Sat, 24 Oct 2015 20:03:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

John Kitchin <address@hidden> writes:

> I like the idea too. I worked out a partial solution for id links here:
> http://kitchingroup.cheme.cmu.edu/blog/2015/10/24/Saving-the-current-restriction-and-restoring-it-while-following-links/
> using the idea for saving and restoring the restriction.

Thanks, John.

You will probably want to use markers since one might edit stuff
in-between the widening and going back to the narrow.

     
http://www.gnu.org/software/emacs/manual/html_node/elisp/Overview-of-Markers.html#Overview-of-Markers

Markers should be cleaned up, which might prove difficult since one might
not go back with C-c &, but you can at least ensure that at most two loose
markers exists (potentially per Org buffer).

Also, I wonder if there exits cases where you would need to store the
buffer as well as the narrow points...  I guess not?

Thanks,
Rasmus

-- 
Slowly unravels in a ball of yarn and the devil collects it



reply via email to

[Prev in Thread] Current Thread [Next in Thread]