From: "J.P." <jp@neverwas.me>
To: 73686@debbugs.gnu.org
Cc: emacs-erc@gnu.org
Subject: bug#73686: 31.0.50; ERC 5.6.1-git: back button gone from describe-face via erc-nicks-list-faces
Date: Mon, 07 Oct 2024 23:06:20 -0700 [thread overview]
Message-ID: <87ttdn5dsz.fsf__45626.8815834605$1728367646$gmane$org@neverwas.me> (raw)
In-Reply-To: <875xq38g4y.fsf__36834.6894437977$1728355711$gmane$org@neverwas.me> (J. P.'s message of "Mon, 07 Oct 2024 19:47:41 -0700")
"J.P." <jp@neverwas.me> writes:
> This appears to be related to a recent change involving the killing of
> local variables in `help-setup-xref'.
Poking around some, it seems the various `describe-*' commands in
help-fns.el run `help-setup-xref' before doing
(with-help-window (help-buffer) ...)
And because `major-mode' is buffer-local, it gets wiped out with these
latest changes before `help-buffer' ever sees it:
(defun help-buffer ()
(buffer-name
(if (and help-xref-following
(derived-mode-p 'help-mode))
(current-buffer)
(get-buffer-create "*Help*"))))
(Here, `help-xref-following' is t thanks to `help-do-xref'.)
> Regarding (2), the Help buffer now opens in a split whereas before it
> opened in the current window. The failing test expects the old behavior
This appears to happen when the `help-mode' (turned `fundamental-mode')
buffer from which `describe-*' is run isn't named `*Help*', as is the
case with `list-faces-display' and `erc-nicks-list-faces'.
As for fixing this, I wonder if we can somehow expand the role of
`help-buffer-under-preparation' (or `help-xref-following') so that
instead of t, it's bound to the last value of `major-mode' prior to
`help-setup-xref' running. And then `help-buffer' could first check this
stashed value before considering the current `major-mode' (like via
`provided-mode-derived-p' or whatever).
next prev parent reply other threads:[~2024-10-08 6:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-08 2:47 bug#73686: 31.0.50; ERC 5.6.1-git: back button gone from describe-face via erc-nicks-list-faces J.P.
2024-10-08 6:06 ` J.P. [this message]
[not found] ` <87ttdn5dsz.fsf@neverwas.me>
2024-10-08 21:07 ` J.P.
[not found] ` <87y12y1exp.fsf@neverwas.me>
2024-10-08 23:41 ` J.P.
[not found] ` <87o73uyxgv.fsf@neverwas.me>
2024-10-09 0:59 ` J.P.
[not found] ` <8734l6xf91.fsf@neverwas.me>
2024-10-09 3:00 ` J.P.
2024-10-09 1:05 ` Dmitry Gutov
2024-10-09 1:24 ` J.P.
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='87ttdn5dsz.fsf__45626.8815834605$1728367646$gmane$org@neverwas.me' \
--to=jp@neverwas.me \
--cc=73686@debbugs.gnu.org \
--cc=emacs-erc@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).