From: Stefan Kangas Date: Thu, 24 Aug 2023 23:41:47 +0000 (+0200) Subject: Don't try to set variable removed in Emacs 21 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2835b9a1d43813f205f87c2850c2049fe7fb7ab9;p=emacs.git Don't try to set variable removed in Emacs 21 * lisp/eshell/em-ls.el (eshell-ls--insert-directory): Don't set 'font-lock-buffers', which was removed in Emacs 21. --- diff --git a/lisp/eshell/em-ls.el b/lisp/eshell/em-ls.el index 9b53bf29559..30f39d14b40 100644 --- a/lisp/eshell/em-ls.el +++ b/lisp/eshell/em-ls.el @@ -274,11 +274,7 @@ instead." ;; use the fancy highlighting in `eshell-ls' rather than font-lock (when eshell-ls-use-colors (font-lock-mode -1) - (setq font-lock-defaults nil) - (if (boundp 'font-lock-buffers) - (setq font-lock-buffers - (delq (current-buffer) - (symbol-value 'font-lock-buffers))))) + (setq font-lock-defaults nil)) (require 'em-glob) (let* ((insert-func 'insert) (error-func 'insert)