bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1019: 23.0.60; emacs --daemon doesn't work on a console


From: Tassilo Horn
Subject: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Fri, 26 Sep 2008 09:53:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Dan Nicolaescu <dann@ics.uci.edu> writes:

Hi Dan!

>   > I'd like to start an emacs daemon on startup in a runlevel script.  So I
>   > added
>   > 
>   >   su --login --command 'emacs --daemon' horn
>   > 
>   > but that doesn't start a daemon.  So I tried issuing
>   > 
>   >   emacs --daemon
>   > 
>   > or
>   > 
>   >   emacs -Q --daemon
>   > 
>   > on a login shell, but that returns instantly and doesn't start an emacs
>   > daemon, too.  Running inside gdb only says "Program exited normally."
>   > 
>   > When issuing the same commands inside a X terminal emulator they work as
>   > they should, though.
>
> Thanks.  I checked in a fix, can you please try again?

Yes, it works now.  Thanks a lot.

But I have two additional questions.

1) How do I shutdown the emacs server cleanly? 

  IMO there should be some --kill-daemon option so that it can really be
  integrated as a system service.  Then of course there's the question
  what to do if unsaved buffers and running processes exist, where I
  don't have a good answer now.  Maybe killing processes unconditionally
  and saving files as #<filerame>#.  Unsaved buffers could be saved as
  ~/.emacs.d/unsaved-buffers/<buffername>.

2) In my .emacs I have (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)).
   But when I start emacsclient -c the first time, it has a toolbar,
   although the value of `tool-bar-mode' is nil.  Then I have to toggle
   t-b-m twice, and from there on it's disabled for the current and all
   new frames.  I disable the scroll- and menu-bars the same way, and
   they are disabled directly, e.g. even for the first X frame.

Bye,
Tassilo






reply via email to

[Prev in Thread] Current Thread [Next in Thread]