]> git.eshelyaron.com Git - emacs.git/commitdiff
Open describe-function NEWS links in view-mode
authorNick Savage <nick@nicksavage.ca>
Thu, 10 Sep 2020 13:18:46 +0000 (15:18 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 10 Sep 2020 13:18:46 +0000 (15:18 +0200)
* lisp/help-mode.el (help-news): Open describe-function NEWS links in
view-mode (Bug#39912)

Copyright-paperwork-exempt: yes

lisp/help-mode.el

index 9c2d1d7227506d0138209feeaca3a4e4f37c9b84..0dc6c9ffae089c40bc506b2996f651ca2c56e620 100644 (file)
@@ -308,7 +308,7 @@ The format is (FUNCTION ARGS...).")
   :supertype 'help-xref
   'help-function
   (lambda (file pos)
-    (pop-to-buffer (find-file-noselect file))
+    (view-buffer-other-window (find-file-noselect file))
     (goto-char pos))
   'help-echo (purecopy "mouse-2, RET: show corresponding NEWS announcement"))
 \f