[Top][All Lists]

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

Re: narrow-to-here-document

From: David Kastrup
Subject: Re: narrow-to-here-document
Date: 30 Jun 2003 19:19:39 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

address@hidden (Kai Großjohann) writes:

> I've been wondering if a workable alternative would be to make the
> point motion functions look at a variable.  If the variable is set,
> they ignore text with a certain property.
> Suppose that we set the (hypothetical) text property `language' to
> `c' on all the C bits, and then we let-bind the variable to the value
> `c'.  Then all point motion commands would skip all text where the
> text property language is not set to c.  So backward-char, for
> example, would skip all that text.

The intangible property does this sort of skipping, but it would be
pretty dangerous to fool around with this when one has code not
tailored for it: it is a reasonable assumption when programming that
(1- (point)) and (save-excursion (backward-char) (point)) are the
same thing, basically.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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