From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: overlays vs text properties
Date: Wed, 13 Jul 2011 03:28:48 -0400 [thread overview]
Message-ID: <E1QgtsG-0005XV-5q@fencepost.gnu.org> (raw)
In-Reply-To: <87tyaqiqz8.fsf@ericabrahamsen.net> (message from Eric Abrahamsen on Wed, 13 Jul 2011 00:23:23 -0700)
> From: Eric Abrahamsen <eric@ericabrahamsen.net>
> Cc: help-gnu-emacs@gnu.org
> Date: Wed, 13 Jul 2011 00:23:23 -0700
>
> 1. I'll have a buffer and an indirect buffer on the same file. Each
> buffer will have a single "active" paragraph at any one time, but
> only one. So I don't think scaling is too much of an issue. I'm
> trying to create a "follow" situation, where a paragraph in the
> source buffer is matched to a paragraph in the indirect buffer, and
> these two paragraphs have (different) properties. But only the two
> paragraphs at one time, moving in unison.
> 2. This is mostly a visual effect (hence my leaning towards overlays),
> and copying text properties is not necessary. In fact, it would be
> annoying.
> 3. Overlapping would not be an issue -- within the "active" paragraphs
> there might be other properties present, but they would be separate
> from the overall paragraph property.
>
> I am trying to create a translation environment, by modifying an org-mode
> file so that I can move through one subtree while the indirect buffer
> displays mirror paragraphs in another subtree. I want to link
> source-language paragraphs with target-language paragraphs, so it's
> pretty crucial that movement be covered: wherever point goes in the main
> buffer, it should be tracked and mirrored in the indirect buffer.
Sounds like overlays are better suited for this job, unless I'm
missing something.
next prev parent reply other threads:[~2011-07-13 7:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-13 6:12 overlays vs text properties Eric Abrahamsen
2011-07-13 6:59 ` Eli Zaretskii
2011-07-13 7:23 ` Eric Abrahamsen
2011-07-13 7:28 ` Eli Zaretskii [this message]
2011-07-13 7:32 ` Eric Abrahamsen
2011-07-13 8:07 ` PJ Weisberg
2011-07-13 22:21 ` Eric Abrahamsen
2011-07-13 9:57 ` Eli Zaretskii
2011-07-13 14:55 ` 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=E1QgtsG-0005XV-5q@fencepost.gnu.org \
--to=eliz@gnu.org \
--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.