help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: A question about text-property stickiness


From: Stefan Monnier
Subject: Re: A question about text-property stickiness
Date: Wed, 08 Dec 2010 15:25:05 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> From elisp Manual:
>         The text properties `front-sticky' and `rear-nonsticky', when
>          used, take precedence over the default NONSTICKINESS specified in
>         `text-property-default-nonsticky'.

> but the following snip seems not work for me:

> (with-current-buffer (get-buffer-create "aaaaa")
>   (insert "a")
>   (save-excursion
>     (backward-char)
>     (let ((p (point)))
>       (setplist 'mycat '(face highlight rear-nonsticky nil))

A nil property value is the same no property value at all (i.e. it's the
default).  So it can't be used to "override" anything.


        Stefan


reply via email to

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