From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#1019: 23.0.60; emacs --daemon doesn't work on a console Date: Fri, 26 Sep 2008 10:43:09 -0700 (PDT) Message-ID: <200809261743.m8QHh9DC028935@mothra.ics.uci.edu> References: <87bpyeacwb.fsf@thinkpad.tsdh.de> <200809242007.m8OK7UmT020026@mothra.ics.uci.edu> <87ej378hs6.fsf@thinkpad.tsdh.de> Reply-To: Dan Nicolaescu , 1019@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222452615 10093 80.91.229.12 (26 Sep 2008 18:10:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Sep 2008 18:10:15 +0000 (UTC) Cc: 1019@emacsbugs.donarmstrong.com To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 26 20:11:12 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KjHmV-000427-SJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Sep 2008 20:11:08 +0200 Original-Received: from localhost ([127.0.0.1]:45262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjHlT-0002am-5w for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Sep 2008 14:10:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KjHlP-0002aS-Ub for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2008 14:09:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KjHlO-0002Zz-7V for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2008 14:09:59 -0400 Original-Received: from [199.232.76.173] (port=53046 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjHlO-0002Zv-42 for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2008 14:09:58 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55387) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KjHlN-0005nw-Pm for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2008 14:09:58 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8QI9slv029192; Fri, 26 Sep 2008 11:09:54 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8QHo3qs023843; Fri, 26 Sep 2008 10:50:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 26 Sep 2008 17:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1019 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1019-submit@emacsbugs.donarmstrong.com id=B1019.122245101322526 (code B ref 1019); Fri, 26 Sep 2008 17:50:03 +0000 Original-Received: (at 1019) by emacsbugs.donarmstrong.com; 26 Sep 2008 17:43:33 +0000 Original-Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8QHhUxh022520 for <1019@emacsbugs.donarmstrong.com>; Fri, 26 Sep 2008 10:43:31 -0700 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m8QHhAKD015576; Fri, 26 Sep 2008 10:43:15 -0700 (PDT) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id m8QHh9DC028935; Fri, 26 Sep 2008 10:43:09 -0700 (PDT) In-Reply-To: <87ej378hs6.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Fri, 26 Sep 2008 09:53:29 +0200") Original-Lines: 49 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: m8QHhAKD015576 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 26 Sep 2008 14:09:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20816 Archived-At: Tassilo Horn writes: > Dan Nicolaescu 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.