From d5f2305187fa96c5eb427e685f68b90da394e09b Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 18 Apr 2022 11:53:59 +0200 Subject: [PATCH] Clean up view-emacs-news code * lisp/help.el (view-emacs-news): Remove workaround after fixing mode: cookie error. --- lisp/help.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lisp/help.el b/lisp/help.el index 0d516cf9f68..c5de59d6bc7 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -453,9 +453,8 @@ With argument, display info only for the selected version." ((< vn 18) "NEWS.1-17") (t (format "NEWS.%d" vn)))) res) - (let ((inhibit-local-variables-regexps '(".*"))) - (find-file (expand-file-name file data-directory)) - (emacs-news-view-mode)) + (find-file (expand-file-name file data-directory)) + (emacs-news-view-mode) (goto-char (point-min)) (when (stringp version) (when (re-search-forward -- 2.39.2