]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/hi-lock.el (hi-lock-unface-buffer): Don't assume `face' is a symbol.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 28 Jan 2013 20:00:35 +0000 (15:00 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 28 Jan 2013 20:00:35 +0000 (15:00 -0500)
Fixes: debbugs:13297
lisp/ChangeLog
lisp/hi-lock.el

index 3e527860c8dad4810443c879d740cdb67d9a7a1d..01fb72232267515b52c17e16e8573414434ab9ca 100644 (file)
@@ -1,11 +1,16 @@
+2013-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * hi-lock.el (hi-lock-unface-buffer): Don't assume `face' is a symbol
+       (bug#13297).
+
 2013-01-27  Dmitry Gutov  <dgutov@yandex.ru>
 
        * progmodes/ruby-mode.el (ruby-font-lock-keywords): Remove some
        checks made superfluous by the \_< operator.
        * progmodes/ruby-mode.el (ruby-move-to-block): Work with (maybe
        temporarily) broken indentation.
-       * progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
-       nested constants, too.  \_< broke that.
+       * progmodes/ruby-mode.el (ruby-font-lock-keywords):
+       Highlight nested constants, too.  \_< broke that.
 
 2013-01-27  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 
 
 2013-01-22  Michael Albinus  <michael.albinus@gmx.de>
 
-       * net/tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers): Mark
-       descriptive parts with `display' property.
+       * net/tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers):
+       Mark descriptive parts with `display' property.
 
 2013-01-21  Agustín Martín Domingo  <agustin.martin@hispalinux.es>
 
 
        * net/tramp-adb.el (top): Require `time-date'.
        (tramp-adb-ls-output-time-less-p): Use `tramp-time-less-p'.
-       (tramp-adb-handle-copy-file, tramp-adb-handle-rename-file): Use
-       `tramp-file-name-handler'.
-       (tramp-adb-maybe-open-connection): Use
-       `tramp-compat-set-process-query-on-exit-flag'.
+       (tramp-adb-handle-copy-file, tramp-adb-handle-rename-file):
+       Use `tramp-file-name-handler'.
+       (tramp-adb-maybe-open-connection):
+       Use `tramp-compat-set-process-query-on-exit-flag'.
 
-       * net/tramp-sh.el (tramp-sh-handle-file-acl): Use
-       `tramp-compat-funcall'.
+       * net/tramp-sh.el (tramp-sh-handle-file-acl):
+       Use `tramp-compat-funcall'.
 
        * net/tramp-smb.el (tramp-smb-handle-file-acl): Use `looking-at' and
        `tramp-compat-funcall'.
 2013-01-19  Christian Wittern  <cwittern@gmail.com>  (tiny change)
            Chong Yidong  <cyd@gnu.org>
 
-       * image-mode.el (image-next-file, image-previous-file): New
-       commands (Bug#8453).
+       * image-mode.el (image-next-file, image-previous-file):
+       New commands (Bug#8453).
        (image-mode-map): Bind them to n and p.
        (image-mode--images-in-directory): New helper function.
 
 
        * autorevert.el (auto-revert-use-notify): In the :set function, do
        not modify `kill-buffer-hook'.
-       (auto-revert-notify-rm-watch): Remove
-       `auto-revert-notify-rm-watch' from `kill-buffer-hook'.
+       (auto-revert-notify-rm-watch):
+       Remove `auto-revert-notify-rm-watch' from `kill-buffer-hook'.
        (auto-revert-notify-add-watch): Do not call
        `auto-revert-notify-rm-watch', but add it to a buffer local
        `kill-buffer-hook'.
index e794861424188ac57ecad7466d90f0043424fc54..cbd8ac5ebad08f43105d9659bfd5bdeb060c75f8 100644 (file)
@@ -562,7 +562,8 @@ then remove all hi-lock highlighting."
     (when keyword
       (let ((face (hi-lock-keyword->face keyword)))
         ;; Make `face' the next one to use by default.
-       (add-to-list 'hi-lock--unused-faces (face-name face)))
+        (when (symbolp face)          ;Don't add it if it's a list (bug#13297).
+          (add-to-list 'hi-lock--unused-faces (face-name face))))
       (font-lock-remove-keywords nil (list keyword))
       (setq hi-lock-interactive-patterns
             (delq keyword hi-lock-interactive-patterns))