From: Tassilo Horn <thorn@fastmail.fm>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: 1019@emacsbugs.donarmstrong.com, Tassilo Horn <thorn@fastmail.fm>,
emacs-pretest-bug@gnu.org
Subject: bug#1019: 23.0.60; emacs --daemon doesn't work on a console
Date: Fri, 26 Sep 2008 09:53:29 +0200 [thread overview]
Message-ID: <87ej378hs6.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <200809242007.m8OK7UmT020026@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Wed, 24 Sep 2008 13:07:30 -0700 (PDT)")
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
next prev parent reply other threads:[~2008-09-26 7:53 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 [this message]
2008-09-26 17:43 ` Dan Nicolaescu
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=87ej378hs6.fsf@thinkpad.tsdh.de \
--to=thorn@fastmail.fm \
--cc=1019@emacsbugs.donarmstrong.com \
--cc=dann@ics.uci.edu \
--cc=emacs-pretest-bug@gnu.org \
/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).