unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How can I configure emacs-daemon to kill itself when I shut down my computer
@ 2010-04-16  8:02 hap 497
  2010-04-16 17:07 ` Jim Burton
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: hap 497 @ 2010-04-16  8:02 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I am using emacs 23.1 on ubuntu 9.10.
And I always use emacs-client to open a file and it will creates a
emacs -daemon when needed.
My problem is everything I shut down my ubuntu environment, it asks me
if I want to kill emacs damon. And I have to manually click 'Close' in
order for the shut down to continue.

Is there anyway to automatic this?

Thank you.




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

* Re: How can I configure emacs-daemon to kill itself when I shut down my computer
  2010-04-16  8:02 How can I configure emacs-daemon to kill itself when I shut down my computer hap 497
@ 2010-04-16 17:07 ` Jim Burton
  2010-04-16 18:56   ` Sven Bretfeld
  2010-04-16 21:53   ` hap 497
  2010-04-16 20:22 ` Bastian Beischer
  2010-04-16 23:56 ` suvayu ali
  2 siblings, 2 replies; 6+ messages in thread
From: Jim Burton @ 2010-04-16 17:07 UTC (permalink / raw)
  To: hap 497; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 719 bytes --]

At Fri, 16 Apr 2010 03:02:04 -0500,
hap 497 wrote:
> 
> Hi,
> 
> I am using emacs 23.1 on ubuntu 9.10.
> And I always use emacs-client to open a file and it will creates a
> emacs -daemon when needed.
> My problem is everything I shut down my ubuntu environment, it asks me
> if I want to kill emacs damon. And I have to manually click 'Close' in
> order for the shut down to continue.
> 
> Is there anyway to automatic this?
>
You want to start the daemon on login rather than via emacsclient. I'm
not using ubuntu but IIRC this can be done under
System/Preferences/Customize Session, or something like that, where
you can add 'emacs --daemon' to the list of programs to start after
logging in.

Jim
 
> Thank you.
> 

[-- Attachment #2: Type: text/plain, Size: 12 bytes --]

-- 
J Burton

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

* Re: How can I configure emacs-daemon to kill itself when I shut down my computer
  2010-04-16 17:07 ` Jim Burton
@ 2010-04-16 18:56   ` Sven Bretfeld
  2010-04-16 21:53   ` hap 497
  1 sibling, 0 replies; 6+ messages in thread
From: Sven Bretfeld @ 2010-04-16 18:56 UTC (permalink / raw)
  To: help-gnu-emacs

Hi

Jim Burton <jim@sdf-eu.org> writes:

> You want to start the daemon on login rather than via emacsclient. I'm
> not using ubuntu but IIRC this can be done under
> System/Preferences/Customize Session, or something like that, where
> you can add 'emacs --daemon' to the list of programs to start after
> logging in.

I think that's not what the OP meant. I also haven't found a way to do
this, so I just do an 'M-x kill-emacs' in one of the open frames. This
closes all other frames as well as the deamon, and I'm ready to shut the
system down.

Greetings,

Sven




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

* Re: How can I configure emacs-daemon to kill itself when I shut down my computer
  2010-04-16  8:02 How can I configure emacs-daemon to kill itself when I shut down my computer hap 497
  2010-04-16 17:07 ` Jim Burton
@ 2010-04-16 20:22 ` Bastian Beischer
  2010-04-16 23:56 ` suvayu ali
  2 siblings, 0 replies; 6+ messages in thread
From: Bastian Beischer @ 2010-04-16 20:22 UTC (permalink / raw)
  To: hap 497; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 894 bytes --]

Hey,

maybe this could help you?
http://www.linuxquestions.org/questions/linux-desktop-74/gnome-run-script-on-logout-724453/

Someone wrote a python script that executes a script on logout. Maybe you
could use this in order to run a killall on your daemon process...

Cheers
Bastian


On Fri, Apr 16, 2010 at 10:02 AM, hap 497 <hap497@gmail.com> wrote:

> Hi,
>
> I am using emacs 23.1 on ubuntu 9.10.
> And I always use emacs-client to open a file and it will creates a
> emacs -daemon when needed.
> My problem is everything I shut down my ubuntu environment, it asks me
> if I want to kill emacs damon. And I have to manually click 'Close' in
> order for the shut down to continue.
>
> Is there anyway to automatic this?
>
> Thank you.
>
>
>


-- 
Bastian Beischer

I. Physikalisches Institut B (RWTH Aachen)
Sommerfeldstr. 14
52074 Aachen
GERMANY

Office: 28-C-203
Phone: +49 241 - 8027205

[-- Attachment #2: Type: text/html, Size: 1454 bytes --]

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

* Re: How can I configure emacs-daemon to kill itself when I shut down my computer
  2010-04-16 17:07 ` Jim Burton
  2010-04-16 18:56   ` Sven Bretfeld
@ 2010-04-16 21:53   ` hap 497
  1 sibling, 0 replies; 6+ messages in thread
From: hap 497 @ 2010-04-16 21:53 UTC (permalink / raw)
  To: Jim Burton; +Cc: help-gnu-emacs

On Fri, Apr 16, 2010 at 10:07 AM, Jim Burton <jim@sdf-eu.org> wrote:
> At Fri, 16 Apr 2010 03:02:04 -0500,
> hap 497 wrote:
>>
>> Hi,
>>
>> I am using emacs 23.1 on ubuntu 9.10.
>> And I always use emacs-client to open a file and it will creates a
>> emacs -daemon when needed.
>> My problem is everything I shut down my ubuntu environment, it asks me
>> if I want to kill emacs damon. And I have to manually click 'Close' in
>> order for the shut down to continue.
>>
>> Is there anyway to automatic this?
>>
> You want to start the daemon on login rather than via emacsclient. I'm
> not using ubuntu but IIRC this can be done under
> System/Preferences/Customize Session, or something like that, where
> you can add 'emacs --daemon' to the list of programs to start after
> logging in.
>

I tried this. It does start the emacs daemon. But when I exit ubuntu,
it still said 'there is a emacs daemon running do you want to shut it
down' dialog pops up. And i would like to get rid to that dialog
everytime I log out.

Thank you.


> Jim
>
>> Thank you.
>>
>
> --
> J Burton
>




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

* Re: How can I configure emacs-daemon to kill itself when I shut down my computer
  2010-04-16  8:02 How can I configure emacs-daemon to kill itself when I shut down my computer hap 497
  2010-04-16 17:07 ` Jim Burton
  2010-04-16 20:22 ` Bastian Beischer
@ 2010-04-16 23:56 ` suvayu ali
  2 siblings, 0 replies; 6+ messages in thread
From: suvayu ali @ 2010-04-16 23:56 UTC (permalink / raw)
  To: hap 497; +Cc: help-gnu-emacs

On 16 April 2010 01:02, hap 497 <hap497@gmail.com> wrote:
> Hi,
>
> I am using emacs 23.1 on ubuntu 9.10.
> And I always use emacs-client to open a file and it will creates a
> emacs -daemon when needed.
> My problem is everything I shut down my ubuntu environment, it asks me
> if I want to kill emacs damon. And I have to manually click 'Close' in
> order for the shut down to continue.
>
> Is there anyway to automatic this?
>

I think this is a bug (Don't know whether with Gnome/Emacs ? ). The
desktop treats the daemon as a regular program which it should not. I
have a hunch Emacs maybe at fault because similar problems happen
across various desktops (Gnome/KDE/XFCE). For example with XFCE if I
start the `emacs --daemon' in a particular session, logging out from
that session takes ages. Subsequent login or logouts are normal
however. For now I have resorted to using `M-x kill-emacs' just as
Sven mentioned in another reply.

> Thank you.
>

-- 
Suvayu

Open source is the future. It sets us free.




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

end of thread, other threads:[~2010-04-16 23:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-16  8:02 How can I configure emacs-daemon to kill itself when I shut down my computer hap 497
2010-04-16 17:07 ` Jim Burton
2010-04-16 18:56   ` Sven Bretfeld
2010-04-16 21:53   ` hap 497
2010-04-16 20:22 ` Bastian Beischer
2010-04-16 23:56 ` suvayu ali

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