[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 46e07d0a4b: * lisp/help-mode.el (help-news): Use `view-file`
From: |
Stefan Monnier |
Subject: |
master 46e07d0a4b: * lisp/help-mode.el (help-news): Use `view-file` |
Date: |
Thu, 21 Jul 2022 20:01:44 -0400 (EDT) |
branch: master
commit 46e07d0a4bdb19b0aed26917227d7846bdb0f43c
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
* lisp/help-mode.el (help-news): Use `view-file`
---
lisp/help-mode.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index e374f8e94d..d8d76114f5 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -384,8 +384,8 @@ The format is (FUNCTION ARGS...).")
'help-function
(lambda (file pos)
(if help-window-keep-selected
- (view-buffer (find-file-noselect file))
- (view-buffer-other-window (find-file-noselect file)))
+ (view-file file)
+ (view-file-other-window file))
(goto-char pos))
'help-echo (purecopy "mouse-2, RET: show corresponding NEWS announcement"))
@@ -408,7 +408,7 @@ Commands:
\\{help-mode-map}"
(setq-local revert-buffer-function
#'help-mode-revert-buffer)
- (add-hook 'context-menu-functions 'help-mode-context-menu 5 t)
+ (add-hook 'context-menu-functions #'help-mode-context-menu 5 t)
(setq-local tool-bar-map
help-mode-tool-bar-map)
(setq-local help-mode--current-data nil)
@@ -761,7 +761,7 @@ See `help-make-xrefs'."
;; Additional functions for (re-)creating types of help buffers.
;;;###autoload
-(define-obsolete-function-alias 'help-xref-interned 'describe-symbol "25.1")
+(define-obsolete-function-alias 'help-xref-interned #'describe-symbol "25.1")
;; Navigation/hyperlinking with xrefs
@@ -831,7 +831,7 @@ The help buffers are divided into \"pages\" by the ^L
character."
(defun help-goto-previous-page ()
"Go to the previous page (if any) in the current buffer.
-(If not at the start of a page, go to the start of the current page.)
+\(If not at the start of a page, go to the start of the current page.)
The help buffers are divided into \"pages\" by the ^L character."
(interactive nil help-mode)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 46e07d0a4b: * lisp/help-mode.el (help-news): Use `view-file`,
Stefan Monnier <=