From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: annoying behavior of emacs --daemon Date: Tue, 04 Nov 2008 16:28:59 +0900 Message-ID: References: <200811040634.mA46YGHE015780@mothra.ics.uci.edu> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225783762 19394 80.91.229.12 (4 Nov 2008 07:29:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2008 07:29:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 04 08:30:23 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from mail-forward1.uio.no ([129.240.10.70]) by lo.gmane.org with esmtp (Exim 4.50) id 1KxGMo-0001RV-Ux for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2008 08:30:22 +0100 Original-Received: from exim by mail-out1.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1KxGLi-0005CN-F0 for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2008 08:29:14 +0100 Original-Received: from mail-mx1.uio.no ([129.240.10.29]) by mail-out1.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1KxGLi-0005CK-Dp for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2008 08:29:14 +0100 Original-Received: from lists.gnu.org ([199.232.76.165]) by mail-mx1.uio.no with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1KxGLh-0000UX-PZ for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2008 08:29:14 +0100 Original-Received: from localhost ([127.0.0.1]:50390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxGLg-0000PS-P2 for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2008 02:29:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KxGLb-0000PG-9m for emacs-devel@gnu.org; Tue, 04 Nov 2008 02:29:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KxGLa-0000On-2S for emacs-devel@gnu.org; Tue, 04 Nov 2008 02:29:06 -0500 Original-Received: from [199.232.76.173] (port=52388 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxGLZ-0000Od-KH for emacs-devel@gnu.org; Tue, 04 Nov 2008 02:29:05 -0500 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:52830) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KxGLX-0000SA-Ae; Tue, 04 Nov 2008 02:29:04 -0500 Original-Received: from relay31.aps.necel.com ([10.29.19.54]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id mA47T0xZ017417; Tue, 4 Nov 2008 16:29:00 +0900 (JST) Original-Received: from relay31.aps.necel.com ([10.29.19.20] [10.29.19.20]) by relay31.aps.necel.com with ESMTP; Tue, 4 Nov 2008 16:29:00 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay31.aps.necel.com with ESMTP; Tue, 4 Nov 2008 16:29:00 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 9D49E3BD; Tue, 4 Nov 2008 16:28:59 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <200811040634.mA46YGHE015780@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Mon, 3 Nov 2008 22:34:16 -0800 (PST)") Original-Lines: 51 X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-UiO-SPF-Received: Received-SPF: pass (mail-mx1.uio.no: domain of gnu.org designates 199.232.76.165 as permitted sender) client-ip=199.232.76.165; envelope-from=emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org; helo=lists.gnu.org; X-UiO-Spam-info: not spam, SpamAssassin (score=-4.0, required=5.0, autolearn=disabled, MISSING_SUBJECT=0.001,NO_RECEIVED=-0.001,RCVD_IN_DNSWL_MED=-4, uiobl=NO, uiouri=NO) X-UiO-Scanned: 770DD4B673E9F1816BBCA9C7186276018DAC6EEE X-UiO-SPAM-Test: remote_host: 199.232.76.165 spam_score: -39 maxlevel 200 minaction 2 bait 0 mail/h: 16 total 75666 max/h 424 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.emacs.devel:105325 Archived-At: Dan Nicolaescu writes: > > When using --daemon, you initially have no frames. You can then make > > new frames with emacsclient -c or emacsclient -t, but if they're X > > frames, closing the last such created frame (with C-x # or C-x C-c) > > kills the emacs process! > > I can't reproduce this... > > Can you reproduce this with > emacs -Q --daemon > ? Sure: $ emacs --daemon -Q ("emacs" "-Q") For information about GNU Emacs and the GNU system, type C-h C-a. $ pidof emacs 9730 9424 $ emacsclient -c ~/.bashrc Waiting for Emacs... <... close emacs window with C-x C-c or C-x # ...> $ pidof emacs 9424 [The 9424 process is my normal long-lived emacs process, but emacsclient seems to connect to the last-started process.] If I use emacsclient -t, on the other hand: $ emacs --daemon -Q ("emacs" "-Q") For information about GNU Emacs and the GNU system, type C-h C-a. $ pidof emacs 9744 9424 $ emacsclient -t ~/.bashrc <... close emacs window with C-x C-c or C-x # ...> $ pidof emacs 9744 9424 The same thing happens whether I kill the window with C-x C-c (bound to `save-buffers-kill-terminal'), or C-x # (bound to `server-edit'). Emacs is checked out from CVS this morning. -Miles -- Immortality, n. A toy which people cry for, And on their knees apply for, Dispute, contend and lie for, And if allowed Would be right proud Eternally to die for.