help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: associating bookmarks with paragraphs


From: Michael Maurer
Subject: Re: associating bookmarks with paragraphs
Date: Tue, 11 Dec 2018 09:03:18 +0100

On Thu, 6 Dec 2018 at 17:42, Drew Adams <drew.adams@oracle.com> wrote:
... snip ...
> 2. But maybe you meant something completely different.
> Maybe meant only that you want to bookmark the position
> of a paragraph and then jump to that later, and have that
> jump be accurate even if that paragraph has been moved
> to a different location in your buffer/file?
>
> If that's all you're asking then the answer is yes, that's
> what Emacs does already - see above, about automatically
> relocating a bookmarked position by searching for its
> recorded context.
>
> However, if the recorded context is no longer relevant
> at all then Emacs won't be able to relocate the new
> position accurately.
>
> There is another possibility that can help here.  With
> Bookmark+ you can bookmark not only a single position,
> with its surrounding context, but two positions, with
> their surrounding context.
>
> This happens if you bookmark the active region, i.e.,
> select your paragraph before bookmarking it.
>
> If option `bmkp-use-region' is non-nil (the default)
> then when you jump to a bookmark that records the
> region (beginning and end positions, and surrounding
> text), the targeted text that you jump to is highlighted
> as the active region.
>

Yes, this is what I was aiming at. I'll give it a try.
Just one question: How is Emacs able to determine the relevancy of
context? I guess this only works with writing code? Doesn't this go
into semantics? I'm probably mistaking "context" for something far
more complicated here.



reply via email to

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