GNU bug report logs -
#21187
erc-kill-channel-hook sometimes is not run during /QUIT
Previous Next
Reported by: Fran Litterio <flitterio <at> gmail.com>
Date: Tue, 4 Aug 2015 17:57:01 UTC
Severity: normal
Tags: fixed
Fixed in version 25.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 21187 in the body.
You can then email your comments to 21187 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#21187
; Package
emacs
.
(Tue, 04 Aug 2015 17:57:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Fran Litterio <flitterio <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 04 Aug 2015 17:57:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Using Emacs built from the latest sources, when variable
erc-kill-queries-on-quit is t (which causes ERC to kill channel
buffers when quitting -- yes, the name is misleading), a /QUIT
does not run the hooks on erc-kill-channel-hook, because
erc-default-target returns nil due to the server being
disconnected.
This patch fixes that by falling back to examining the buffer
name, which should be safe to do since we know the major mode is
erc-mode.
--
Fran
flitterio <at> gmail.com
--- erc.el.orig 2015-08-04 13:38:04.602900800 -0400
+++ erc.el 2015-08-04 13:38:56.538768600 -0400
@@ -6698,7 +6698,7 @@
(cond
((eq (erc-server-buffer) (current-buffer))
(run-hooks 'erc-kill-server-hook))
- ((erc-channel-p (erc-default-target))
+ ((erc-channel-p (or (erc-default-target) (buffer-name)))
(run-hooks 'erc-kill-channel-hook))
(t
(run-hooks 'erc-kill-buffer-hook)))))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21187
; Package
emacs
.
(Sun, 27 Dec 2015 07:59:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 21187 <at> debbugs.gnu.org (full text, mbox):
Fran Litterio <flitterio <at> gmail.com> writes:
> Using Emacs built from the latest sources, when variable
> erc-kill-queries-on-quit is t (which causes ERC to kill channel
> buffers when quitting -- yes, the name is misleading), a /QUIT
> does not run the hooks on erc-kill-channel-hook, because
> erc-default-target returns nil due to the server being
> disconnected.
>
> This patch fixes that by falling back to examining the buffer
> name, which should be safe to do since we know the major mode is
> erc-mode.
> --
> Fran
> flitterio <at> gmail.com
>
> --- erc.el.orig 2015-08-04 13:38:04.602900800 -0400
> +++ erc.el 2015-08-04 13:38:56.538768600 -0400
> @@ -6698,7 +6698,7 @@
> (cond
> ((eq (erc-server-buffer) (current-buffer))
> (run-hooks 'erc-kill-server-hook))
> - ((erc-channel-p (erc-default-target))
> + ((erc-channel-p (or (erc-default-target) (buffer-name)))
Thanks; applied to Emacs 25.1.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 27 Dec 2015 07:59:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 25.1, send any further explanations to
21187 <at> debbugs.gnu.org and Fran Litterio <flitterio <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 27 Dec 2015 07:59: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
.
(Sun, 24 Jan 2016 12:24:12 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 149 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.