GNU bug report logs -
#57816
28.2; Renaming a help buffer from help-mode-hook
Previous Next
Reported by: Damien Cassou <damien <at> cassou.me>
Date: Thu, 15 Sep 2022 04:44:01 UTC
Severity: normal
Found in version 28.2
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57816 in the body.
You can then email your comments to 57816 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57816
; Package
emacs
.
(Thu, 15 Sep 2022 04:44:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Damien Cassou <damien <at> cassou.me>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 15 Sep 2022 04:44:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
In GNU Emacs 28.2, I would like to automatically rename help buffers so
their name reflect their content. For example, I want *Help: car*
instead of just *Help* for the help buffer of `car'. Unfortunately,
adding #'rename-buffer to `help-mode-hook' doesn't work as this results
in 2 buffers instead of just one:
emacs --batch -Q \
--eval "(add-hook 'help-mode-hook (lambda () (rename-buffer \"*foo*\")))" \
--eval "(describe-function #'describe-function)" \
--eval "(prin1 (cons (get-buffer \"*Help*\") (get-buffer \"*foo*\")))"
prints
(#<buffer *Help*> . #<buffer *foo*>)
After the "rename", there is still a buffer with the old name. Is there
a more correct way to do this?
Best
--
Damien Cassou
"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57816
; Package
emacs
.
(Fri, 16 Sep 2022 11:52:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 57816 <at> debbugs.gnu.org (full text, mbox):
Damien Cassou <damien <at> cassou.me> writes:
> In GNU Emacs 28.2, I would like to automatically rename help buffers so
> their name reflect their content. For example, I want *Help: car*
> instead of just *Help* for the help buffer of `car'. Unfortunately,
> adding #'rename-buffer to `help-mode-hook' doesn't work as this results
> in 2 buffers instead of just one:
>
> emacs --batch -Q \
> --eval "(add-hook 'help-mode-hook (lambda () (rename-buffer \"*foo*\")))" \
> --eval "(describe-function #'describe-function)" \
> --eval "(prin1 (cons (get-buffer \"*Help*\") (get-buffer \"*foo*\")))"
>
> prints
>
> (#<buffer *Help*> . #<buffer *foo*>)
>
> After the "rename", there is still a buffer with the old name. Is there
> a more correct way to do this?
I can reproduce this in Emacs 28.2, but not in Emacs 29, so it looks
like this has been fixed already.
bug marked as fixed in version 29.1, send any further explanations to
57816 <at> debbugs.gnu.org and Damien Cassou <damien <at> cassou.me>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 16 Sep 2022 11:52:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 15 Oct 2022 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 193 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.