From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#8942: 23.3; emacsclient doesn't exit when called Emacs function is quited. Date: Mon, 4 Jul 2011 20:06:24 +0200 Message-ID: References: <87d3hzpqcj.dlv@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1309802915 26426 80.91.229.12 (4 Jul 2011 18:08:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2011 18:08:35 +0000 (UTC) Cc: Remi Vanicat , 8942@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 04 20:08:30 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QdnZL-0006hp-UW for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2011 20:08:28 +0200 Original-Received: from localhost ([::1]:45445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdnZK-0000r1-Lp for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jul 2011 14:08:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdnYz-0000qa-Oq for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 14:08:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdnYx-0001gK-24 for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 14:08:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdnYw-0001gD-GE for bug-gnu-emacs@gnu.org; Mon, 04 Jul 2011 14:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QdnYv-000205-Qt; Mon, 04 Jul 2011 14:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jul 2011 18:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8942 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8942-submit@debbugs.gnu.org id=B8942.13098028327628 (code B ref 8942); Mon, 04 Jul 2011 18:08:01 +0000 Original-Received: (at 8942) by debbugs.gnu.org; 4 Jul 2011 18:07:12 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdnY7-0001yz-T6 for submit@debbugs.gnu.org; Mon, 04 Jul 2011 14:07:12 -0400 Original-Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdnY6-0001yn-AU for 8942@debbugs.gnu.org; Mon, 04 Jul 2011 14:07:10 -0400 Original-Received: by pvh18 with SMTP id 18so5080851pvh.3 for <8942@debbugs.gnu.org>; Mon, 04 Jul 2011 11:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=OmAXAxh+yodHVwTSjl7l8k93BAFnYihMdKZwU5eMee0=; b=wQgjxsnTNs/k6iLZ/LSLj1Eted97YxEnsrxuXYxD8IM+Q31dfL8Rw9b7PX2JKoYXFU GXy3QiLU93iMRmULJXYVQV+I2ZOdRhCQbu4UnpR0OHPa73LnA78dauLXcQT6nqsrXm1q iEFhUivMkuyi4tezEEknxaiycVYJD4RoDBD40= Original-Received: by 10.142.144.11 with SMTP id r11mr3032595wfd.335.1309802824133; Mon, 04 Jul 2011 11:07:04 -0700 (PDT) Original-Received: by 10.142.48.6 with HTTP; Mon, 4 Jul 2011 11:06:24 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 04 Jul 2011 14:08:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:47974 Archived-At: On Mon, Jul 4, 2011 at 19:57, Stefan Monnier wro= te: > So if you want to remove with-local-quit, you need to add a let-binding > of inhibit-quit to nil within your condition-case. No, I don't have a particular interest in removing with-local-quit. As I said, this =3D=3D=3D modified file 'lisp/server.el' --- lisp/server.el 2011-07-04 01:04:29 +0000 +++ lisp/server.el 2011-07-04 18:04:02 +0000 @@ -1153,7 +1153,7 @@ "When done with a buffer, type \\[server-edit]"))))) (when (and frame (null tty-name)) (server-unselect-display frame))) - (error (server-return-error proc err))))) + ((error quit) (server-return-error proc err))))) (defun server-return-error (proc err) (ignore-errors is more than enough to fix the bug. The question is if you still want to show the user some feedback about the fact that he quit the emacsclient eval, and how to do so. (message "Quit") perhaps? :-) =C2=A0 =C2=A0 Juanma