From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: overlays vs text properties Date: Wed, 13 Jul 2011 03:28:48 -0400 Message-ID: References: <87k4bmk8u3.fsf@ericabrahamsen.net> <87tyaqiqz8.fsf@ericabrahamsen.net> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1310542239 25717 80.91.229.12 (13 Jul 2011 07:30:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2011 07:30:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 13 09:30:35 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qgttx-0006BC-Aw for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2011 09:30:33 +0200 Original-Received: from localhost ([::1]:42412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgttv-0007Fs-EF for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2011 03:30:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgtsK-0007Fi-BK for help-gnu-emacs@gnu.org; Wed, 13 Jul 2011 03:28:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgtsG-0006xO-A6 for help-gnu-emacs@gnu.org; Wed, 13 Jul 2011 03:28:52 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:40667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgtsG-0006xJ-8g for help-gnu-emacs@gnu.org; Wed, 13 Jul 2011 03:28:48 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QgtsG-0005XV-5q for help-gnu-emacs@gnu.org; Wed, 13 Jul 2011 03:28:48 -0400 In-reply-to: <87tyaqiqz8.fsf@ericabrahamsen.net> (message from Eric Abrahamsen on Wed, 13 Jul 2011 00:23:23 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81565 Archived-At: > From: Eric Abrahamsen > 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.