From: brennan@umanwizard.com
To: emacs-devel@gnu.org
Cc: Brennan Vincent <brennan@umanwizard.com>
Subject: [PATCH] Set help mode data for major mode function.
Date: Tue, 2 Jul 2024 11:51:00 -0400 [thread overview]
Message-ID: <20240702155100.2150717-1-brennan@umanwizard.com> (raw)
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
reply other threads:[~2024-07-02 15:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240702155100.2150717-1-brennan@umanwizard.com \
--to=brennan@umanwizard.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).