all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Maurer <maurer.michael@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: associating bookmarks with paragraphs
Date: Tue, 11 Dec 2018 09:03:18 +0100	[thread overview]
Message-ID: <CAH-0+bA3rVROyBC51=yXyrBrXsfvexuX_yuR1G6VtBMsb0N1bA@mail.gmail.com> (raw)
In-Reply-To: <bf3ce0ca-85a4-41e8-8e23-80ba860e1ec6@default>

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	other threads:[~2018-12-11  8:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-06  8:02 associating bookmarks with paragraphs Michael Maurer
2018-12-06 16:39 ` Eric Abrahamsen
2018-12-06 16:42 ` Drew Adams
2018-12-11  8:03   ` Michael Maurer [this message]
2018-12-11 16:03     ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH-0+bA3rVROyBC51=yXyrBrXsfvexuX_yuR1G6VtBMsb0N1bA@mail.gmail.com' \
    --to=maurer.michael@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.