From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: suvayu ali Newsgroups: gmane.emacs.help Subject: Re: How can I configure emacs-daemon to kill itself when I shut down my computer Date: Fri, 16 Apr 2010 16:56:56 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1271462331 32706 80.91.229.12 (16 Apr 2010 23:58:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Apr 2010 23:58:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: hap 497 Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 17 01:58:50 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O2vQv-0008C9-6f for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Apr 2010 01:58:50 +0200 Original-Received: from localhost ([127.0.0.1]:50678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2vQt-0002eL-Eg for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Apr 2010 19:58:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2vPU-0002BU-T8 for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 19:57:20 -0400 Original-Received: from [140.186.70.92] (port=38367 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2vPT-0002AQ-8i for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 19:57:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2vPR-0006wT-9h for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 19:57:18 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:59766) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2vPR-0006wF-5F for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 19:57:17 -0400 Original-Received: by vws8 with SMTP id 8so1655523vws.0 for ; Fri, 16 Apr 2010 16:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:received:message-id :subject:to:cc:content-type; bh=my+AnCodIT7LsDyUsGrpFSNZVCBBTI3bP5QaYs+2Bd8=; b=bHGCkfGX1Lbhgai4zlNf3p5pR4XKTX7A2rq2GyuiPq/6jsxMJGYESXLOtOQO2aDsxa DW2ZsuVWERJ0hAyBpYLvVKSlYxkYkZy+TNv9jjPl5GrUO5FcZoYslK3GHjcyYMlmAppr ANNn513aZm4P9QYcJywS6uZZ/YTW2PhtsCscM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=P2VtLpBA1qh4CXfqrZGiU+lQ1epwhA4H7hHz+MwWAdi+c0sJTBUd5Sqzph4MVQJQnq Fq8V/t0D0JQvF6M+quA/XFa2E/UbQcRcLB01jl7/X6l46DCESWykM9YDyJKUEGfAuC5H Bmt0NkIMNYI3X4elEhffdIh5S8F2HkWRhW0Ms= Original-Received: by 10.220.174.159 with HTTP; Fri, 16 Apr 2010 16:56:56 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 8ad39ccb38a478a0 Original-Received: by 10.220.107.73 with SMTP id a9mr1481610vcp.185.1271462236111; Fri, 16 Apr 2010 16:57:16 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72717 Archived-At: On 16 April 2010 01:02, hap 497 wrote: > Hi, > > I am using emacs 23.1 on ubuntu 9.10. > And I always use emacs-client to open a file and it will creates a > emacs -daemon when needed. > My problem is everything I shut down my ubuntu environment, it asks me > if I want to kill emacs damon. And I have to manually click 'Close' in > order for the shut down to continue. > > Is there anyway to automatic this? > I think this is a bug (Don't know whether with Gnome/Emacs ? ). The desktop treats the daemon as a regular program which it should not. I have a hunch Emacs maybe at fault because similar problems happen across various desktops (Gnome/KDE/XFCE). For example with XFCE if I start the `emacs --daemon' in a particular session, logging out from that session takes ages. Subsequent login or logouts are normal however. For now I have resorted to using `M-x kill-emacs' just as Sven mentioned in another reply. > Thank you. > -- Suvayu Open source is the future. It sets us free.