From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1019: 23.0.60; emacs --daemon doesn't work on a console Date: Fri, 26 Sep 2008 09:53:29 +0200 Message-ID: <87ej378hs6.fsf@thinkpad.tsdh.de> References: <87bpyeacwb.fsf@thinkpad.tsdh.de> <200809242007.m8OK7UmT020026@mothra.ics.uci.edu> Reply-To: Tassilo Horn , 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 1222441970 32724 80.91.229.12 (26 Sep 2008 15:12:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Sep 2008 15:12:50 +0000 (UTC) Cc: 1019@emacsbugs.donarmstrong.com, Tassilo Horn , emacs-pretest-bug@gnu.org To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 26 17:13:44 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 1KjF0o-0004Pb-F7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Sep 2008 17:13:43 +0200 Original-Received: from localhost ([127.0.0.1]:50043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjEzl-0006JU-3d for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Sep 2008 11:12:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kj8Om-000890-Mw for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2008 04:10:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kj8Ok-00088B-R8 for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2008 04:09:59 -0400 Original-Received: from [199.232.76.173] (port=41070 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kj8Ok-000886-LR for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2008 04:09:58 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54705) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kj8Ok-0003SG-03 for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2008 04: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 m8Q89spM009287; Fri, 26 Sep 2008 01:09:54 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8Q804GX006364; Fri, 26 Sep 2008 01:00:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Tassilo Horn Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 26 Sep 2008 08:00:04 +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.12224156224995 (code B ref 1019); Fri, 26 Sep 2008 08:00:04 +0000 Original-Received: (at 1019) by emacsbugs.donarmstrong.com; 26 Sep 2008 07:53:42 +0000 Original-Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8Q7rYIB004987 for <1019@emacsbugs.donarmstrong.com>; Fri, 26 Sep 2008 00:53:35 -0700 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 1907F166637; Fri, 26 Sep 2008 03:53:34 -0400 (EDT) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Fri, 26 Sep 2008 03:53:34 -0400 X-Sasl-enc: 8nQ2XGvMMBwNY7P4iSczES6VGcQde4xAN50SywN7DyJy 1222415613 Original-Received: from thinkpad.tsdh.de (p54AF24CC.dip0.t-ipconnect.de [84.175.36.204]) by mail.messagingengine.com (Postfix) with ESMTPA id 4012B52C5; Fri, 26 Sep 2008 03:53:31 -0400 (EDT) In-Reply-To: <200809242007.m8OK7UmT020026@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Wed, 24 Sep 2008 13:07:30 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 26 Sep 2008 04:09:59 -0400 X-Mailman-Approved-At: Fri, 26 Sep 2008 11:12:23 -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:20808 gmane.emacs.pretest.bugs:23091 Archived-At: 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? 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 ##. Unsaved buffers could be saved as ~/.emacs.d/unsaved-buffers/. 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