From 2835b9a1d43813f205f87c2850c2049fe7fb7ab9 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Fri, 25 Aug 2023 01:41:47 +0200 Subject: [PATCH] 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. --- lisp/eshell/em-ls.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) -- 2.39.5