From: Paul W. Rankin via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 72521@debbugs.gnu.org
Subject: bug#72521: [PATCH]: lisp/help-macro.el: remove hard-coded variable-pitch-mode
Date: Thu, 8 Aug 2024 19:37:56 +1000 [thread overview]
Message-ID: <901E6F99-1756-424F-9470-838D572D8FCF@rnkn.xyz> (raw)
In-Reply-To: <86h6bvmlwe.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 644 bytes --]
> On 8 Aug 2024, at 18:58, Eli Zaretskii <eliz@gnu.org> wrote:
>
> Thanks, but we cannot possible install this patch, since this behavior
> was introduced in Emacs 29. I agree with making this feature
> optional, of course (and it will then be ON by default), but your
> patch doesn't do that.
Hi Eli,
Thanks. I’ve replaced the call to variable-pitch-mode with a hook,
help-screen-hook, which defaults to calling variable-pitch-mode.
Ideally I think this should just be help-mode-hook though, which of
course should not default to calling variable-pitch-mode.
Anyway, how’s the patch (now attached) look to you?
[-- Attachment #2: 0001-lisp-help-macro.el-add-help-screen-hook.patch --]
[-- Type: application/octet-stream, Size: 1520 bytes --]
From 24b8ab0bd7b937b46d6faad05821b462019732cc Mon Sep 17 00:00:00 2001
From: "Paul W. Rankin" <rnkn@rnkn.xyz>
Date: Thu, 8 Aug 2024 12:16:07 +1000
Subject: [PATCH] * lisp/help-macro.el: add help-screen-hook
help-screen-hook by default calls variable-pitch-mode for backwards
compatibility with Emacs 29
---
lisp/help-macro.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/lisp/help-macro.el b/lisp/help-macro.el
index 14d2a45f5f2..fce8f784076 100644
--- a/lisp/help-macro.el
+++ b/lisp/help-macro.el
@@ -78,6 +78,13 @@ three-step-help
:type 'boolean
:group 'help)
+(defcustom help-screen-hook
+ '(variable-pitch-mode)
+ "Hook run by `make-help-screen', called by command `help-for-help'."
+ :options '(variable-pitch-mode)
+ :type 'hook
+ :group 'help)
+
(defmacro make-help-screen (fname help-line help-text helped-map
&optional buffer-name)
"Construct help-menu function name FNAME.
@@ -141,7 +148,7 @@ make-help-screen
(insert (substitute-command-keys help-screen)))
(let ((minor-mode-map-alist new-minor-mode-map-alist))
(help-mode)
- (variable-pitch-mode)
+ (run-hooks 'help-screen-hook)
(setq new-minor-mode-map-alist minor-mode-map-alist))
(goto-char (point-min))
(while (or (memq char (append help-event-list
--
2.39.3 (Apple Git-146)
next prev parent reply other threads:[~2024-08-08 9:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9417FE9A-2B7C-4A23-80DE-1322E0ECB812@rnkn.xyz>
2024-08-08 2:25 ` bug#72521: [PATCH]: lisp/help-macro.el: remove hard-coded variable-pitch-mode Paul W. Rankin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-08 8:58 ` Eli Zaretskii
2024-08-08 9:37 ` Paul W. Rankin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-08 9:37 ` Paul W. Rankin via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-08-08 9:45 ` Eli Zaretskii
2024-08-08 9:57 ` Paul W. Rankin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-08 10:34 ` Eli Zaretskii
2024-08-08 10:34 ` Paul W. Rankin via Bug reports for GNU Emacs, the Swiss army knife of text editors
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=901E6F99-1756-424F-9470-838D572D8FCF@rnkn.xyz \
--to=bug-gnu-emacs@gnu.org \
--cc=72521@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=rnkn@rnkn.xyz \
/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 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.