diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-04-16 19:42:33 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-04-16 19:42:33 +0200 |
commit | 1a339d6ba5372e93ce62d7cfa0dcc2072610cdd7 (patch) | |
tree | 3c1ad0c6ae810fa23ff0599dc5147d1c268c888c /lisp/help.el | |
parent | 10c48b7080d0ee63a7515a87ff17a1dfb4f38fb2 (diff) | |
download | emacs-1a339d6ba5372e93ce62d7cfa0dcc2072610cdd7.tar.gz |
Don't leave `C-h N' in a text-mode derived mode
* lisp/help.el (view-emacs-news): Use emacs-news-view-mode.
* lisp/textmodes/emacs-news-mode.el (emacs-news-view-mode): Split
into own mode to avoid confusion.
Diffstat (limited to 'lisp/help.el')
-rw-r--r-- | lisp/help.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/help.el b/lisp/help.el index e326ea5d002..9cde65f7975 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -453,10 +453,9 @@ With argument, display info only for the selected version." ((< vn 18) "NEWS.1-17") (t (format "NEWS.%d" vn)))) res) - (find-file (expand-file-name file data-directory)) - (setq buffer-read-only t) - (emacs-news-mode) - (widen) + (let ((inhibit-local-variables-regexps '(".*"))) + (find-file (expand-file-name file data-directory)) + (emacs-news-view-mode)) (goto-char (point-min)) (when (stringp version) (when (re-search-forward |