From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastian Beischer 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 22:22:36 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016364584ea41a59f0484605fa6 X-Trace: dough.gmane.org 1271461692 31286 80.91.229.12 (16 Apr 2010 23:48:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Apr 2010 23:48:12 +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:48:11 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 1O2vGa-0004An-3k for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Apr 2010 01:48:08 +0200 Original-Received: from localhost ([127.0.0.1]:59665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2vGZ-0005Sv-Ht for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Apr 2010 19:48:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2s3m-00038I-Or for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 16:22:42 -0400 Original-Received: from [140.186.70.92] (port=60684 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2s3k-00036x-KW for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 16:22:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2s3j-0008Fh-1M for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 16:22:40 -0400 Original-Received: from mail-bw0-f225.google.com ([209.85.218.225]:41900) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2s3i-0008FA-Sc for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 16:22:39 -0400 Original-Received: by bwz25 with SMTP id 25so3113794bwz.8 for ; Fri, 16 Apr 2010 13:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=piSbeE0UK0X/1LZF8WQNummeFbXeKsC4kjh9NlF4aEU=; b=tgrDDuSbz+Ka64XewvijSFdjW833Q1T4vBOgsXQk0hcau/WVD8AbfaD5uvuPvoB2df 1jGpGFMoKU9EE8PpdiDS7dpZrd+km0HZ25INN8fxZqPAQwCFi5XwjIzIel7NCrqusRYm CSBd0cLbIuD7Z5zA06r64FaZNCXe2m3uy6McE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=TTtLDta4DvN2uj+Vvaik2FJ0W4XV5K+RSahWR2Tkp0SmX5hTM9ecDUsgdyR54xzglK 83cnw0AWKSNlyX5ptGP5xec20kszVOsSKGqaQGTenO+ADMmsJPaOnotSsBM5FzBpsmn9 Tg1GMO+OM+IYfF9Y0SwL7NMopQv0+ElLbeHpA= Original-Received: by 10.239.148.129 with HTTP; Fri, 16 Apr 2010 13:22:36 -0700 (PDT) In-Reply-To: Original-Received: by 10.239.137.11 with SMTP id j11mr156541hbj.177.1271449356706; Fri, 16 Apr 2010 13:22:36 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Fri, 16 Apr 2010 19:38:44 -0400 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:72716 Archived-At: --0016364584ea41a59f0484605fa6 Content-Type: text/plain; charset=ISO-8859-1 Hey, maybe this could help you? http://www.linuxquestions.org/questions/linux-desktop-74/gnome-run-script-on-logout-724453/ Someone wrote a python script that executes a script on logout. Maybe you could use this in order to run a killall on your daemon process... Cheers Bastian On Fri, Apr 16, 2010 at 10:02 AM, 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? > > Thank you. > > > -- Bastian Beischer I. Physikalisches Institut B (RWTH Aachen) Sommerfeldstr. 14 52074 Aachen GERMANY Office: 28-C-203 Phone: +49 241 - 8027205 --0016364584ea41a59f0484605fa6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hey,

maybe this could help you?
http://www.linuxquestions.org/questions/linux-desktop= -74/gnome-run-script-on-logout-724453/