unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* "Active processes exist", can I answer yes by default?
@ 2007-04-13 16:55 Ismael Valladolid Torres
  2007-04-13 17:44 ` Exal de Jesus Garcia Carrillo
  0 siblings, 1 reply; 5+ messages in thread
From: Ismael Valladolid Torres @ 2007-04-13 16:55 UTC (permalink / raw)
  To: help-gnu-emacs

Whenever a shell is active and I quit Emacs, I get this message:

"Active processes exist; kill them and exit anyway? (yes or no)"

I always answer yes so I wonder if there's any chance of making it
being answered yes by default so I am never asked.

Any ideas welcome.

Cordially, Ismael
-- 
Ismael Valladolid Torres  m. +34679156321
La media hostia           j. ivalladt@gmail.com

http://lamediahostia.blogspot.com/

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

* Re: "Active processes exist", can I answer yes by default?
       [not found] <mailman.2043.1176483743.7795.help-gnu-emacs@gnu.org>
@ 2007-04-13 17:24 ` Daniel Jensen
  2007-04-14 11:42   ` Ismael Valladolid Torres
       [not found]   ` <mailman.2067.1176551362.7795.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Jensen @ 2007-04-13 17:24 UTC (permalink / raw)
  To: help-gnu-emacs

Ismael Valladolid Torres <ivalladt@punkass.com> writes:

> Whenever a shell is active and I quit Emacs, I get this message:
>
> "Active processes exist; kill them and exit anyway? (yes or no)"
>
> I always answer yes so I wonder if there's any chance of making it
> being answered yes by default so I am never asked.

This is what I use:

(add-hook 'shell-mode-hook
          (lambda ()
            (set-process-query-on-exit-flag
              (get-buffer-process (current-buffer)) nil)))

It is only in effect for shell mode, because I want Emacs to query me
for other processes.

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

* Re: "Active processes exist", can I answer yes by default?
  2007-04-13 16:55 "Active processes exist", can I answer yes by default? Ismael Valladolid Torres
@ 2007-04-13 17:44 ` Exal de Jesus Garcia Carrillo
  0 siblings, 0 replies; 5+ messages in thread
From: Exal de Jesus Garcia Carrillo @ 2007-04-13 17:44 UTC (permalink / raw)
  To: help-gnu-emacs

El Viernes, 13 de Abril de 2007 11:55, Ismael Valladolid Torres escribió:
> Whenever a shell is active and I quit Emacs, I get this message:
>
> "Active processes exist; kill them and exit anyway? (yes or no)"
>
> I always answer yes so I wonder if there's any chance of making it
> being answered yes by default so I am never asked.
>
> Any ideas welcome.



I think is not a very good idea,  it's a good way for prevent catastrophes for 
example data loss, may be you will want to put this in your ~.emacs file:

(fset 'yes-or-no-p 'y-or-n-p)

this short to `y' or `n'  the `yes' or `no' prompts.


regards, Exal

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

* Re: "Active processes exist", can I answer yes by default?
  2007-04-13 17:24 ` Daniel Jensen
@ 2007-04-14 11:42   ` Ismael Valladolid Torres
       [not found]   ` <mailman.2067.1176551362.7795.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 5+ messages in thread
From: Ismael Valladolid Torres @ 2007-04-14 11:42 UTC (permalink / raw)
  To: help-gnu-emacs

Daniel Jensen escribe:
> It is only in effect for shell mode, because I want Emacs to query me
> for other processes.

set-process-query-on-exit-flag seems not to be defined in my version
of Emacs, however the code below did it.

(process-kill-without-query (get-process "shell"))

Cordially, Ismael
-- 
Ismael Valladolid Torres  m. +34679156321
La media hostia           j. ivalladt@gmail.com

http://lamediahostia.blogspot.com/

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

* Re: "Active processes exist", can I answer yes by default?
       [not found]   ` <mailman.2067.1176551362.7795.help-gnu-emacs@gnu.org>
@ 2007-04-14 13:44     ` Daniel Jensen
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jensen @ 2007-04-14 13:44 UTC (permalink / raw)
  To: help-gnu-emacs

Ismael Valladolid Torres <ivalladt@punkass.com> writes:

> Daniel Jensen escribe:
>
>> It is only in effect for shell mode, because I want Emacs to query me
>> for other processes.
>
> set-process-query-on-exit-flag seems not to be defined in my version
> of Emacs, however the code below did it.
>
> (process-kill-without-query (get-process "shell"))

You are right, it is new in Emacs 22 to replace
process-kill-without-query. Sorry about that.

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

end of thread, other threads:[~2007-04-14 13:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-13 16:55 "Active processes exist", can I answer yes by default? Ismael Valladolid Torres
2007-04-13 17:44 ` Exal de Jesus Garcia Carrillo
     [not found] <mailman.2043.1176483743.7795.help-gnu-emacs@gnu.org>
2007-04-13 17:24 ` Daniel Jensen
2007-04-14 11:42   ` Ismael Valladolid Torres
     [not found]   ` <mailman.2067.1176551362.7795.help-gnu-emacs@gnu.org>
2007-04-14 13:44     ` Daniel Jensen

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).