From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: E Sabof Newsgroups: gmane.emacs.bugs Subject: bug#16583: Possible bug in inhibit-quit/abort-recursive-edit Date: Wed, 29 Jan 2014 01:07:27 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf303e9fdc7c72b304f11190aa X-Trace: ger.gmane.org 1390957691 27292 80.91.229.3 (29 Jan 2014 01:08:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jan 2014 01:08:11 +0000 (UTC) To: 16583@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 29 02:08:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8Jda-0007bM-32 for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Jan 2014 02:08:18 +0100 Original-Received: from localhost ([::1]:40086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8JdZ-00031F-IG for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Jan 2014 20:08:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8JdQ-0002sZ-Ox for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 20:08:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8JdK-0003PA-PB for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 20:08:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8JdK-0003P2-Lk for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 20:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W8JdK-0002om-47 for bug-gnu-emacs@gnu.org; Tue, 28 Jan 2014 20:08:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: E Sabof Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jan 2014 01:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16583 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16583-submit@debbugs.gnu.org id=B16583.139095765210795 (code B ref 16583); Wed, 29 Jan 2014 01:08:02 +0000 Original-Received: (at 16583) by debbugs.gnu.org; 29 Jan 2014 01:07:32 +0000 Original-Received: from localhost ([127.0.0.1]:39678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8Jcq-0002o3-0S for submit@debbugs.gnu.org; Tue, 28 Jan 2014 20:07:32 -0500 Original-Received: from mail-yk0-f193.google.com ([209.85.160.193]:55989) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W8Jcn-0002ns-8A for 16583@debbugs.gnu.org; Tue, 28 Jan 2014 20:07:29 -0500 Original-Received: by mail-yk0-f193.google.com with SMTP id q9so876709ykb.0 for <16583@debbugs.gnu.org>; Tue, 28 Jan 2014 17:07:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=e5qG68dDF/Rkr9CMZ2TAIsXIx3gxvCvQWQiH7AQqUyo=; b=yviocCyeM+mnbLoDfw69y5nfOrHRwAI4Nls+q4fYkRnrJxaeIvr3woiY0wzVt60LQu UOyswMbHTjJl6ylysLLkZ7/K+bBVNcq2P84CIIG+qcM6MeDu1M4AMsdm7MFH8dYynqYn Cd4dcpyI9+//K7VjHLQQaRSfuH0BdQMZJDwdxPbVZQ8aPSIWnk8w/cON3R6CsUXBC5VY ypb5u6Sf9NnQV9frMcjKMUYlFzm0+JG7mwSpzMjEOOYfaROq0FVXB67uvyVdA6m/+wS6 87ldPJ9NWmINfkSv/xtPbBlmXUKiMc30KWfWZUEImCpkUjT/1+L2XhG7AduiT36qnBlu 71gA== X-Received: by 10.236.147.107 with SMTP id s71mr4165145yhj.45.1390957647654; Tue, 28 Jan 2014 17:07:27 -0800 (PST) Original-Received: by 10.170.195.207 with HTTP; Tue, 28 Jan 2014 17:07:27 -0800 (PST) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:84200 Archived-At: --20cf303e9fdc7c72b304f11190aa Content-Type: text/plain; charset=ISO-8859-1 The previous message was incomplete, and sent by accident. I have a complete recipe now. Both forms are meant to be evaluated C-M-x, and followed by abort-recursive-edit, or keyboard-quit. ;; QUIT gets inserted, and a Quit message is displayed. (condition-case error (sleep-for 5) (quit (goto-char (point-max)) (insert "QUIT"))) ;; With abort-recursive-edit ;; QUIT doesn't get inserted. Quit isn't displayed in the mini-buffer ;; With keyboard-quit ;; QUIT doesn't get inserted. Quit is displayed in the mini-buffer (condition-case error (let ((inhibit-quit t)) (sleep-for 5)) (quit (goto-char (point-max)) (insert "QUIT"))) I understand why "QUIT" might not be displayed -- the signal is not guaranteed to be sent immediately after then end of (let). But, shouldn't abort-recursive-edit also cause Quit to be displayed in the minibuffer? It so happens that I have abort-recursive-edit bound to C-g, and ((inhibit-quit t)) seems to discard all sent "C-g"s. Evgeni GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.4) of 2013-11-02 on ubuntu --20cf303e9fdc7c72b304f11190aa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The previous message was incomplete, and sent by acci= dent. I have a complete
recipe now. Both forms are meant to b= e evaluated C-M-x, and followed by
abort-recursive-edit, or keybo= ard-quit.

;; QUIT gets inserted, and a Quit message is displayed.=
(condition-case error
=A0 =A0 (sleep-for 5)
= =A0 (quit (goto-char (point-max))
=A0 =A0 =A0 =A0 (insert "Q= UIT")))


;; With abort-recursive-edit
;= ; QUIT doesn't get inserted. Quit isn't displayed in the mini-buffe= r

;; With keyboard-quit
;; QUIT doesn= 9;t get inserted. Quit is displayed in the mini-buffer

(condition-case error
=A0 =A0 (let ((inhibit-= quit t))
=A0 =A0 =A0 (sleep-for 5))
=A0 (quit (goto-cha= r (point-max))
=A0 =A0 =A0 =A0 (insert "QUIT")))
<= div>
I understand why "QUIT" might not be displayed -- the signal is n= ot guaranteed to be sent immediately after then end of (let). But, shouldn&= #39;t abort-recursive-edit also cause Quit to be displayed in the minibuffe= r?=A0

It so happens that I have abort-recursive-edit bound to= C-g, and ((inhibit-quit t)) seems to discard all sent "C-g"s.

Evgeni

GNU Emacs 24.3.1 (x8= 6_64-unknown-linux-gnu, GTK+ Version 3.6.4) of 2013-11-02 on ubuntu
--20cf303e9fdc7c72b304f11190aa--