emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/font-lock.el [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/font-lock.el [lexbind]
Date: Mon, 25 Oct 2004 00:42:52 -0400

Index: emacs/lisp/font-lock.el
diff -c emacs/lisp/font-lock.el:1.197.2.12 emacs/lisp/font-lock.el:1.197.2.13
*** emacs/lisp/font-lock.el:1.197.2.12  Sat Sep  4 09:26:22 2004
--- emacs/lisp/font-lock.el     Mon Oct 25 04:19:40 2004
***************
*** 1324,1329 ****
--- 1324,1335 ----
          (add-text-properties start end (cddr val))
          (setq val (cadr val)))
        (cond
+        ((not (or val (eq override t)))
+         ;; If `val' is nil, don't do anything.  It is important to do it
+         ;; explicitly, because when adding nil via things like
+         ;; font-lock-append-text-property, the property is actually
+         ;; changed from <face> to (<face>) which is undesirable.  --Stef
+         nil)
         ((not override)
          ;; Cannot override existing fontification.
          (or (text-property-not-all start end 'face nil)




reply via email to

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