From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: overlays vs text properties Date: Wed, 13 Jul 2011 15:21:09 -0700 Message-ID: <87wrflu8iy.fsf@ericabrahamsen.net> References: <87k4bmk8u3.fsf@ericabrahamsen.net> <87tyaqiqz8.fsf@ericabrahamsen.net> <87pqleiqk7.fsf@ericabrahamsen.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1310595796 1127 80.91.229.12 (13 Jul 2011 22:23:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2011 22:23:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 00:23:13 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 1Qh7pm-0002Mz-PA for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2011 00:23:10 +0200 Original-Received: from localhost ([::1]:53486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh7pl-0002si-Ee for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2011 18:23:09 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh7oD-0002sR-Bl for help-gnu-emacs@gnu.org; Wed, 13 Jul 2011 18:21:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qh7oC-0002W5-32 for help-gnu-emacs@gnu.org; Wed, 13 Jul 2011 18:21:33 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:56105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh7oB-0002T6-Q7 for help-gnu-emacs@gnu.org; Wed, 13 Jul 2011 18:21:32 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qh7o2-0001aZ-Rp for help-gnu-emacs@gnu.org; Thu, 14 Jul 2011 00:21:22 +0200 Original-Received: from 63.226.249.211 ([63.226.249.211]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jul 2011 00:21:22 +0200 Original-Received: from eric by 63.226.249.211 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jul 2011 00:21:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 63.226.249.211 User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:7MO53QIRU8dv6Zj9L4yGAFhcxtk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:81581 Archived-At: On Wed, Jul 13 2011, PJ Weisberg wrote: > On Wednesday, July 13, 2011, Eric Abrahamsen wrote: >> On Wed, Jul 13 2011, Eli Zaretskii wrote: >>> Sounds like overlays are better suited for this job, unless I'm >>> missing something. >> >> Only that there's no good way of moving overlays based on the movement >> of point! > > I don't know if there's a good way of "moving" text properties at all. ;-) > > I know of one library (Magit) that moves its "highlight" overlay to > the current section in a post-command-hook. Thanks for everyone's responses, it sounds like post-command-hook is the way to go, though that had originally seemed like overkill. I should have thought of Magit as a good example to copy… Thanks again, Eric