unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@ics.uci.edu>
To: Tassilo Horn <thorn@fastmail.fm>
Cc: 1019@emacsbugs.donarmstrong.com
Subject: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Fri, 26 Sep 2008 10:43:09 -0700 (PDT)	[thread overview]
Message-ID: <200809261743.m8QHh9DC028935@mothra.ics.uci.edu> (raw)
In-Reply-To: <87ej378hs6.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Fri, 26 Sep 2008 09:53:29 +0200")

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	other threads:[~2008-09-26 17:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-23 19:19 bug#1019: 23.0.60; emacs --daemon doesn't work on a console Tassilo Horn
2008-09-24 20:07 ` Dan Nicolaescu
2008-09-26  7:53   ` Tassilo Horn
2008-09-26 17:43     ` Dan Nicolaescu [this message]
2008-09-27  8:07       ` Tassilo Horn
2008-09-27 15:51         ` Dan Nicolaescu
2008-09-27 16:18           ` Tassilo Horn
2008-09-27 17:00             ` Dan Nicolaescu
  -- strict thread matches above, loose matches on Subject: below --
2008-10-08 23:19 Chong Yidong
2008-10-09  9:12 ` Tassilo Horn
2008-10-10  0:00   ` Xavier Maillard
2008-10-10  0:40     ` Chong Yidong
2008-10-10  7:55       ` Tassilo Horn
2008-10-11  0:00         ` Xavier Maillard
2008-10-11  0:00       ` Xavier Maillard
2008-10-09 16:49 ` Dan Nicolaescu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200809261743.m8QHh9DC028935@mothra.ics.uci.edu \
    --to=dann@ics.uci.edu \
    --cc=1019@emacsbugs.donarmstrong.com \
    --cc=thorn@fastmail.fm \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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