all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] Set help mode data for major mode function.
@ 2024-07-02 15:51 brennan
  0 siblings, 0 replies; only message in thread
From: brennan @ 2024-07-02 15:51 UTC (permalink / raw)
  To: emacs-devel; +Cc: Brennan Vincent

From: Brennan Vincent <brennan@umanwizard.com>

This ensures that e.g. (help-view-source) will work the same
way in describe-mode as it does in describe-function.

* lisp/help-fns.el: Set help mode data for major mode function
---
 lisp/help-fns.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 1ffe1b16588..f3d5bba7d4c 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -2200,7 +2200,9 @@ describe-mode
                              (help-fns-short-filename file-name)
                              (lambda (_)
                                (help-function-def--button-function
-                                major file-name))))))
+                                major file-name)))))
+            (setq help-mode--current-data (list :symbol major
+                                                :file file-name)))
           (insert (help-split-fundoc (documentation major) nil 'doc)
                   (with-current-buffer buffer
                     (help-fns--list-local-commands)))
-- 
2.41.0





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-02 15:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-02 15:51 [PATCH] Set help mode data for major mode function brennan

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.