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: Dan Nicolaescu
Subject: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Fri, 26 Sep 2008 10:43:09 -0700 (PDT)

Tassilo Horn <thorn@fastmail.fm> writes:

  > 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? 

Use emacsclient to eval `save-buffers-kill-emacs'?

  > 2) In my .emacs I have (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)).

There's a better way to do this, use ~/.Xdefaults:

Emacs.ToolBar:                  0
Emacs.verticalScrollBars:       off

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

I checked in a fix to fix the initialization of tool-bar-mode and menu-bar-mode.






reply via email to

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