Open describe-function NEWS links in view-mode

* lisp/help-mode.el (help-news): Open describe-function NEWS links in
view-mode (Bug#39912)

Copyright-paperwork-exempt: yes
This commit is contained in:
Nick Savage 2020-09-10 15:18:46 +02:00 committed by Lars Ingebrigtsen
parent 6c46dddcb2
commit 70a8d06fe1

View 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"))