GNU bug report logs -
#17772
[PATCH] Dangling channels' buffer
Previous Next
Reported by: Daimrod <daimrod <at> gmail.com>
Date: Fri, 13 Jun 2014 10:43:01 UTC
Severity: normal
Tags: patch
Fixed in version 25.1
Done: Leo Liu <sdl.web <at> gmail.com>
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 17772 in the body.
You can then email your comments to 17772 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#17772
; Package
emacs
.
(Fri, 13 Jun 2014 10:43:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Daimrod <daimrod <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 13 Jun 2014 10:43:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
In the attached patch, I propose a fix for the recent change of the
function `rcirc-buffer-process'. This function used to return the rcirc
server process when it existed, or nil. However, since a78d87e7ed it
raises an error.
This is a problem if the user kills the server buffer before it kills
the channels' buffer because it is not possible to kill them after that.
(The function `rcirc-clean-up-buffer' is called via `kill-buffer-hook'
and it calls `rcirc-buffer-process'.)
WDYT?
Regards,
[0001-lisp-net-rcirc.el-rcirc-clean-up-buffer-Explicitly-c.patch (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]
--
Daimrod/Greg
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17772
; Package
emacs
.
(Fri, 13 Jun 2014 18:37:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 17772 <at> debbugs.gnu.org (full text, mbox):
> server process when it existed, or nil. However, since a78d87e7ed it
> raises an error.
Please avoid using Git references until we actually switch to Git.
Use dates, for example, instead.
> This is a problem if the user kills the server buffer before it kills
> the channels' buffer because it is not possible to kill them after that.
> (The function `rcirc-clean-up-buffer' is called via `kill-buffer-hook'
> and it calls `rcirc-buffer-process'.)
Your patch doesn't look bad, but I wonder if a better option wouldn't be
to try and better preserve the previous behavior. E.g. with the
patch below.
WDYT?
Stefan
=== modified file 'lisp/net/rcirc.el'
--- lisp/net/rcirc.el 2014-05-12 16:06:13 +0000
+++ lisp/net/rcirc.el 2014-06-13 18:34:01 +0000
@@ -803,9 +804,8 @@
"Return the process associated with channel BUFFER.
With no argument or nil as argument, use the current buffer."
(let ((buffer (or buffer (if (buffer-live-p rcirc-server-buffer)
- rcirc-server-buffer
- (error "Server buffer deleted")))))
- (or (with-current-buffer buffer rcirc-process)
+ rcirc-server-buffer))))
+ (or (if buffer (with-current-buffer buffer rcirc-process))
rcirc-process)))
(defun rcirc-server-name (process)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17772
; Package
emacs
.
(Sat, 14 Jun 2014 01:05:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 17772 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> server process when it existed, or nil. However, since a78d87e7ed it
>> raises an error.
>
> Please avoid using Git references until we actually switch to Git.
> Use dates, for example, instead.
Ok, I'll keep this in mind.
>> This is a problem if the user kills the server buffer before it kills
>> the channels' buffer because it is not possible to kill them after that.
>> (The function `rcirc-clean-up-buffer' is called via `kill-buffer-hook'
>> and it calls `rcirc-buffer-process'.)
>
> Your patch doesn't look bad, but I wonder if a better option wouldn't be
> to try and better preserve the previous behavior. E.g. with the
> patch below.
>
> WDYT?
Fine for me, but you don't need the `or'.
> === modified file 'lisp/net/rcirc.el'
> --- lisp/net/rcirc.el 2014-05-12 16:06:13 +0000
> +++ lisp/net/rcirc.el 2014-06-13 18:34:01 +0000
> @@ -803,9 +804,8 @@
> "Return the process associated with channel BUFFER.
> With no argument or nil as argument, use the current buffer."
> (let ((buffer (or buffer (if (buffer-live-p rcirc-server-buffer)
> - rcirc-server-buffer
> - (error "Server buffer deleted")))))
> - (or (with-current-buffer buffer rcirc-process)
> + rcirc-server-buffer))))
+ (if buffer
+ (with-current-buffer buffer rcirc-process)
+ rcirc-process)))
> + (or (if buffer (with-current-buffer buffer rcirc-process))
> rcirc-process)))
>
> (defun rcirc-server-name (process)
>
--
Daimrod/Greg
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17772
; Package
emacs
.
(Sat, 14 Jun 2014 01:21:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 17772 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Daimrod <daimrod <at> gmail.com> writes:
> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>
>>> server process when it existed, or nil. However, since a78d87e7ed it
>>> raises an error.
>>
>> Please avoid using Git references until we actually switch to Git.
>> Use dates, for example, instead.
>
> Ok, I'll keep this in mind.
Here is a new patch with your proposal:
[0001-lisp-net-rcirc.el-rcirc-buffer-process-Return-the-pr.patch (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]
--
Daimrod/Greg
Reply sent
to
Leo Liu <sdl.web <at> gmail.com>
:
You have taken responsibility.
(Mon, 30 Jun 2014 03:00:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
Daimrod <daimrod <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 30 Jun 2014 03:00:06 GMT)
Full text and
rfc822 format available.
Message #19 received at 17772-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.5
On 2014-06-14 10:20 +0900, Daimrod wrote:
> Here is a new patch with your proposal:
Committed and thanks,
Leo
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 28 Jul 2014 11:24:03 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 04 Oct 2014 16:36:06 GMT)
Full text and
rfc822 format available.
bug Marked as fixed in versions 25.1.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 04 Oct 2014 16:36:06 GMT)
Full text and
rfc822 format available.
bug No longer marked as fixed in versions 24.5.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 04 Oct 2014 16:36:07 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, 02 Nov 2014 12:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 200 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.