Gnus development mailing list
 help / color / mirror / Atom feed
* Buffer has a running process; kill it? (y or n)
@ 2011-06-12 11:52 Leo
  2011-06-12 13:47 ` Sivaram Neelakantan
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Leo @ 2011-06-12 11:52 UTC (permalink / raw)
  To: ding

Hello,

Gnus seems to ask this question a lot which is becoming annoying.

Leo




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-06-12 11:52 Buffer has a running process; kill it? (y or n) Leo
@ 2011-06-12 13:47 ` Sivaram Neelakantan
  2011-06-12 16:35   ` Leo
  2011-06-26  9:44 ` Lars Magne Ingebrigtsen
  2011-07-06 13:35 ` parozusa
  2 siblings, 1 reply; 19+ messages in thread
From: Sivaram Neelakantan @ 2011-06-12 13:47 UTC (permalink / raw)
  To: ding

On Sun, Jun 12 2011,Leo  wrote:

> Hello,
>
> Gnus seems to ask this question a lot which is becoming annoying.
>
> Leo

I suppose this happens when Gnus is talking to the server and the ssl
or whatever process is still running and at the same time you try to
exit Emacs.  I usually get this when I'm refreshing my group buffer
and try to exit Emacs or Gnus (I think) on NTemacs.

So, don't exit Emacs when you're doing something in Gnus. 

 sivaram
 -- 




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-06-12 13:47 ` Sivaram Neelakantan
@ 2011-06-12 16:35   ` Leo
  2011-06-14  9:47     ` Lynbech Christian
  0 siblings, 1 reply; 19+ messages in thread
From: Leo @ 2011-06-12 16:35 UTC (permalink / raw)
  To: ding

On 2011-06-12 21:47 +0800, Sivaram Neelakantan wrote:
> I suppose this happens when Gnus is talking to the server and the ssl
> or whatever process is still running and at the same time you try to
> exit Emacs.  I usually get this when I'm refreshing my group buffer
> and try to exit Emacs or Gnus (I think) on NTemacs.
>
> So, don't exit Emacs when you're doing something in Gnus.

I usually don't exit Emacs. It happens often when connection times out
i.e. when connection is ridiculously slow.

Leo




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-06-12 16:35   ` Leo
@ 2011-06-14  9:47     ` Lynbech Christian
  0 siblings, 0 replies; 19+ messages in thread
From: Lynbech Christian @ 2011-06-14  9:47 UTC (permalink / raw)
  To: Leo; +Cc: ding

I am seeing this too, and this is always at startup. There seems to be
some imap process lingering but I have so far not tried to find out why
it is.


------------------------+-----------------------------------------------------
Christian Lynbech       | christian #\@ defun #\. dk
------------------------+-----------------------------------------------------
Hit the philistines three times over the head with the Elisp reference manual.
                                        - petonic@hal.com (Michael A. Petonic)



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-06-12 11:52 Buffer has a running process; kill it? (y or n) Leo
  2011-06-12 13:47 ` Sivaram Neelakantan
@ 2011-06-26  9:44 ` Lars Magne Ingebrigtsen
  2011-07-04  6:27   ` Leo
  2011-07-06 13:35 ` parozusa
  2 siblings, 1 reply; 19+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-06-26  9:44 UTC (permalink / raw)
  To: ding

Leo <sdl.web@gmail.com> writes:

> Gnus seems to ask this question a lot which is becoming annoying.

`(setq debug-on-quit t)', `C-g' when it asks, and post the resulting
backtrace.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-06-26  9:44 ` Lars Magne Ingebrigtsen
@ 2011-07-04  6:27   ` Leo
  2011-07-05 20:26     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 19+ messages in thread
From: Leo @ 2011-07-04  6:27 UTC (permalink / raw)
  To: ding

On 2011-06-26 17:44 +0800, Lars Magne Ingebrigtsen wrote:
>> Gnus seems to ask this question a lot which is becoming annoying.
>
> `(setq debug-on-quit t)', `C-g' when it asks, and post the resulting
> backtrace.

I can't get any BT from this. It seems C-g is disabled in y-or-n-p.

Leo



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-07-04  6:27   ` Leo
@ 2011-07-05 20:26     ` Lars Magne Ingebrigtsen
  2011-07-18  6:12       ` Leo
  0 siblings, 1 reply; 19+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-05 20:26 UTC (permalink / raw)
  To: ding

Leo <sdl.web@gmail.com> writes:

> I can't get any BT from this. It seems C-g is disabled in y-or-n-p.

How annoying.

I haven't had any similar reports -- could you be running some local
customisations that's killing buffers?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-06-12 11:52 Buffer has a running process; kill it? (y or n) Leo
  2011-06-12 13:47 ` Sivaram Neelakantan
  2011-06-26  9:44 ` Lars Magne Ingebrigtsen
@ 2011-07-06 13:35 ` parozusa
  2011-07-07  1:42   ` Leo
  2 siblings, 1 reply; 19+ messages in thread
From: parozusa @ 2011-07-06 13:35 UTC (permalink / raw)
  To: ding


Leo writes:

> Hello,
>
> Gnus seems to ask this question a lot which is becoming annoying.
>
> Leo

My solution

  kill-buffer-query-functions is a variable defined in `C source code'.
  Its value is (process-kill-buffer-query-function)

I set this variable to nil during startup using 

  gnus-before-startup-hook
  gnus-started-hook

because

  process-kill-buffer-query-function is a compiled Lisp function in
  `subr.el'.

  (process-kill-buffer-query-function)

  Ask before killing a buffer that has a running process.

Martin
--
parozusa at web dot de




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-07-06 13:35 ` parozusa
@ 2011-07-07  1:42   ` Leo
  2011-07-07 11:19     ` lee
  2011-07-07 11:46     ` parozusa
  0 siblings, 2 replies; 19+ messages in thread
From: Leo @ 2011-07-07  1:42 UTC (permalink / raw)
  To: ding

On 2011-07-06 21:35 +0800, parozusa@web.de wrote:
> My solution
>
>   kill-buffer-query-functions is a variable defined in `C source code'.
>   Its value is (process-kill-buffer-query-function)

But the point of raising it here is that something in Gnus doesn't set
up that variable correctly and has caused annoyance. It should be fixed
there.

Leo




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-07-07  1:42   ` Leo
@ 2011-07-07 11:19     ` lee
  2011-07-07 11:46     ` parozusa
  1 sibling, 0 replies; 19+ messages in thread
From: lee @ 2011-07-07 11:19 UTC (permalink / raw)
  To: ding

Leo <sdl.web@gmail.com> writes:

> On 2011-07-06 21:35 +0800, parozusa@web.de wrote:
>> My solution
>>
>>   kill-buffer-query-functions is a variable defined in `C source code'.
>>   Its value is (process-kill-buffer-query-function)
>
> But the point of raising it here is that something in Gnus doesn't set
> up that variable correctly and has caused annoyance. It should be fixed
> there.

It shouldn't be set by default.  I'm using eshell, for example, and I
/want/ to be informed when there are processes running I'm about to
kill.



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-07-07  1:42   ` Leo
  2011-07-07 11:19     ` lee
@ 2011-07-07 11:46     ` parozusa
  1 sibling, 0 replies; 19+ messages in thread
From: parozusa @ 2011-07-07 11:46 UTC (permalink / raw)
  To: ding


Leo writes:

> On 2011-07-06 21:35 +0800 wrote:
>> My solution
>>
>>   kill-buffer-query-functions is a variable defined in `C source code'.
>>   Its value is (process-kill-buffer-query-function)
>
> But the point of raising it here is that something in Gnus doesn't set
> up that variable correctly and has caused annoyance. It should be fixed
> there.
>
> Leo

Hi,

my solution is meant as workaround for the impatient.

The problem has been there for several month (since emacs-23 ?).

In my use case it seems to have to do with accessing two different IMAP
mail accounts / servers during startup.

When I regularly quit gnus and want to exit emacs, I'm told that still
two IMAP processes are running.

Cheers

Martin




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-07-05 20:26     ` Lars Magne Ingebrigtsen
@ 2011-07-18  6:12       ` Leo
  2011-07-19 16:23         ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 19+ messages in thread
From: Leo @ 2011-07-18  6:12 UTC (permalink / raw)
  To: ding

On 2011-07-06 04:26 +0800, Lars Magne Ingebrigtsen wrote:
> I haven't had any similar reports -- could you be running some local
> customisations that's killing buffers?

This seems to be related to Gnus killing buffers such as this one "
*server news.gmane.org nntp *nntpd**".

Leo



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-07-18  6:12       ` Leo
@ 2011-07-19 16:23         ` Lars Magne Ingebrigtsen
  2011-07-20 11:54           ` Andy Moreton
  2011-08-14  6:59           ` Leo
  0 siblings, 2 replies; 19+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-19 16:23 UTC (permalink / raw)
  To: ding

Leo <sdl.web@gmail.com> writes:

> This seems to be related to Gnus killing buffers such as this one "
> *server news.gmane.org nntp *nntpd**".

If you

`M-x debug-on-entry RET process-kill-buffer-query-function RET'

you'll probably get a backtrace the next time it asks.  Can you post
that backtrace?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-07-19 16:23         ` Lars Magne Ingebrigtsen
@ 2011-07-20 11:54           ` Andy Moreton
  2011-08-14  6:59           ` Leo
  1 sibling, 0 replies; 19+ messages in thread
From: Andy Moreton @ 2011-07-20 11:54 UTC (permalink / raw)
  To: ding

On Tue 19 Jul 2011, Lars Magne Ingebrigtsen wrote:

> Leo <sdl.web@gmail.com> writes:
>
>> This seems to be related to Gnus killing buffers such as this one "
>> *server news.gmane.org nntp *nntpd**".
>
> If you
>
> `M-x debug-on-entry RET process-kill-buffer-query-function RET'
>
> you'll probably get a backtrace the next time it asks.  Can you post
> that backtrace?

I've seen this error on w32 emacs. It seems to be caused by recent
changes made to the error logging in the GnuTLS wrapper code. The
following fixed it for me:

(setq gnutls-log-level 2)

This restored some of the error message noise in the echo area, but
seems to stop issues being fatal errors.

HTH,

   AndyM




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-07-19 16:23         ` Lars Magne Ingebrigtsen
  2011-07-20 11:54           ` Andy Moreton
@ 2011-08-14  6:59           ` Leo
  2011-08-18  0:11             ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 19+ messages in thread
From: Leo @ 2011-08-14  6:59 UTC (permalink / raw)
  To: ding

On 2011-07-20 00:23 +0800, Lars Magne Ingebrigtsen wrote:
> If you
>
> `M-x debug-on-entry RET process-kill-buffer-query-function RET'
>
> you'll probably get a backtrace the next time it asks.  Can you post
> that backtrace?

I advise process-kill-buffer-query-function to print the current buffer
and process when this happens and observe:

Warning (emacs): Process #<process nntpd> in buffer #<buffer  *server news.gmane.org nntp  *nntpd**>
Warning (emacs): Process #<process nntpd> in buffer #<buffer  *server news.gmane.org nntp  *nntpd**>
Warning (emacs): Process #<process nntpd> in buffer #<buffer  *server news.gmane.org nntp  *nntpd**>
Warning (emacs): Process #<process nntpd> in buffer #<buffer  *server news.gmane.org nntp  *nntpd**>
Warning (emacs): Process #<process nntpd> in buffer #<buffer  *server news.gmane.org nntp  *nntpd**>

I can then see that nntp-open-connection does not set
process-query-on-exit-flag which causes this warning.

Do you know if nntp-open-connection should do something like the
following?

  (set-process-query-on-exit-flag process nil)

Leo




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-08-14  6:59           ` Leo
@ 2011-08-18  0:11             ` Lars Magne Ingebrigtsen
  2011-08-18  2:51               ` Leo
  0 siblings, 1 reply; 19+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-08-18  0:11 UTC (permalink / raw)
  To: Leo; +Cc: ding

Leo <sdl.web@gmail.com> writes:

> Do you know if nntp-open-connection should do something like the
> following?
>
>   (set-process-query-on-exit-flag process nil)

`nntp-open-connection' does do that in bzr Emacs...

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-08-18  0:11             ` Lars Magne Ingebrigtsen
@ 2011-08-18  2:51               ` Leo
  2011-08-21  3:45                 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 19+ messages in thread
From: Leo @ 2011-08-18  2:51 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: ding

On 2011-08-18 08:11 +0800, Lars Magne Ingebrigtsen wrote:
> Leo <sdl.web@gmail.com> writes:
>
>> Do you know if nntp-open-connection should do something like the
>> following?
>>
>>   (set-process-query-on-exit-flag process nil)
>
> `nntp-open-connection' does do that in bzr Emacs...

I am using upstream version. It doesn't always set that flag for example
when interrupted by C-g. In the Gnus in Emacs-23 I haven't seen such
problem.

Leo



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-08-18  2:51               ` Leo
@ 2011-08-21  3:45                 ` Lars Magne Ingebrigtsen
  2011-08-21  9:33                   ` Leo
  0 siblings, 1 reply; 19+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-08-21  3:45 UTC (permalink / raw)
  To: ding

Leo <sdl.web@gmail.com> writes:

> I am using upstream version. It doesn't always set that flag for example
> when interrupted by C-g.

Fixed now in git Gnus.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: Buffer has a running process; kill it? (y or n)
  2011-08-21  3:45                 ` Lars Magne Ingebrigtsen
@ 2011-08-21  9:33                   ` Leo
  0 siblings, 0 replies; 19+ messages in thread
From: Leo @ 2011-08-21  9:33 UTC (permalink / raw)
  To: ding

On 2011-08-21 11:45 +0800, Lars Magne Ingebrigtsen wrote:
> Fixed now in git Gnus.

Thanks.

Leo




^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2011-08-21  9:33 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-12 11:52 Buffer has a running process; kill it? (y or n) Leo
2011-06-12 13:47 ` Sivaram Neelakantan
2011-06-12 16:35   ` Leo
2011-06-14  9:47     ` Lynbech Christian
2011-06-26  9:44 ` Lars Magne Ingebrigtsen
2011-07-04  6:27   ` Leo
2011-07-05 20:26     ` Lars Magne Ingebrigtsen
2011-07-18  6:12       ` Leo
2011-07-19 16:23         ` Lars Magne Ingebrigtsen
2011-07-20 11:54           ` Andy Moreton
2011-08-14  6:59           ` Leo
2011-08-18  0:11             ` Lars Magne Ingebrigtsen
2011-08-18  2:51               ` Leo
2011-08-21  3:45                 ` Lars Magne Ingebrigtsen
2011-08-21  9:33                   ` Leo
2011-07-06 13:35 ` parozusa
2011-07-07  1:42   ` Leo
2011-07-07 11:19     ` lee
2011-07-07 11:46     ` parozusa

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 NNTP newsgroup(s).