[Top][All Lists]

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

A question about text-property stickiness

From: Darren Hoo
Subject: A question about text-property stickiness
Date: Sat, 14 Aug 2010 06:18:49 +0800


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

but the following snip seems not work for me:

(with-current-buffer (get-buffer-create "aaaaa")
  (insert "a")
    (let ((p (point)))
      (setplist 'mycat '(face highlight rear-nonsticky nil))
      (setq text-property-default-nonsticky '((category . t)))
      (add-text-properties p (1+ p)  '(category mycat))))
  (insert-and-inherit "b"))

I expect "b"  to be highlighted but it is not, why?

reply via email to

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