From: Stefan Monnier Date: Mon, 28 Jan 2013 20:00:35 +0000 (-0500) Subject: * lisp/hi-lock.el (hi-lock-unface-buffer): Don't assume `face' is a symbol. X-Git-Tag: emacs-24.3.90~173^2~7^2~206 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b2dc4f52e73593ec205c30324247b56257842b77;p=emacs.git * lisp/hi-lock.el (hi-lock-unface-buffer): Don't assume `face' is a symbol. Fixes: debbugs:13297 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3e527860c8d..01fb7223226 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,11 +1,16 @@ +2013-01-28 Stefan Monnier + + * hi-lock.el (hi-lock-unface-buffer): Don't assume `face' is a symbol + (bug#13297). + 2013-01-27 Dmitry Gutov * 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 @@ -117,8 +122,8 @@ 2013-01-22 Michael Albinus - * 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 @@ -147,13 +152,13 @@ * 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'. @@ -193,8 +198,8 @@ 2013-01-19 Christian Wittern (tiny change) Chong Yidong - * 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. @@ -222,8 +227,8 @@ * 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'. diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index e7948614241..cbd8ac5ebad 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el @@ -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))