From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#24047: Should 'signal' sometimes return? Date: Sat, 23 Jul 2016 14:37:36 -0400 Message-ID: References: <1469110827-9827-1-git-send-email-eggert@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1469299109 11484 80.91.229.3 (23 Jul 2016 18:38:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Jul 2016 18:38:29 +0000 (UTC) Cc: 24047@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 23 20:38:18 2016 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 1bR1oW-000764-LJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jul 2016 20:38:16 +0200 Original-Received: from localhost ([::1]:53300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bR1oV-0000jo-Md for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jul 2016 14:38:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bR1oN-0000h1-4R for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2016 14:38:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bR1oI-0000ej-Tm for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2016 14:38:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bR1oI-0000ef-Qb for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2016 14:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bR1oI-0006C5-Gh for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2016 14:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jul 2016 18:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24047 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 24047-submit@debbugs.gnu.org id=B24047.146929906723785 (code B ref 24047); Sat, 23 Jul 2016 18:38:02 +0000 Original-Received: (at 24047) by debbugs.gnu.org; 23 Jul 2016 18:37:47 +0000 Original-Received: from localhost ([127.0.0.1]:35152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bR1o2-0006BY-RC for submit@debbugs.gnu.org; Sat, 23 Jul 2016 14:37:46 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:50512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bR1o0-0006BL-SX for 24047@debbugs.gnu.org; Sat, 23 Jul 2016 14:37:45 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BNFgA731xV/6SNCkxcDoMCVF6CUIVVvHUbCoVxBAICgTw8EQEBAQEBAQGBCkEFg10BAQECAQECUyMFCws0EhQUBA0kiDcIDc8WAQEBAQYCAR+LOoQiEQFRB4QtBZchhBqEGpNqgUUjgzpaIjEBgQuBOwEBAQ X-IPAS-Result: A0BNFgA731xV/6SNCkxcDoMCVF6CUIVVvHUbCoVxBAICgTw8EQEBAQEBAQGBCkEFg10BAQECAQECUyMFCws0EhQUBA0kiDcIDc8WAQEBAQYCAR+LOoQiEQFRB4QtBZchhBqEGpNqgUUjgzpaIjEBgQuBOwEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="249039968" Original-Received: from 76-10-141-164.dsl.teksavvy.com (HELO pastel.home) ([76.10.141.164]) by ironport2-out.teksavvy.com with ESMTP; 23 Jul 2016 14:37:37 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 4D9F564D20; Sat, 23 Jul 2016 14:37:36 -0400 (EDT) In-Reply-To: (Paul Eggert's message of "Fri, 22 Jul 2016 14:16:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:121471 Archived-At: > Attached is a more-conservative version of the patch, which keeps the > debug-on-quit behavior when the user types C-g, so that 'signal' never > returns but C-g might still "return". This is in response to Stefan's email > at . Haven't looked in detail, but it looks OK. A further patch could change the new `quit' function so it checks debug-on-quit, and either calls the debugger or calls Fsignal. This way we don't need the intermediate signal_or_quit function. Stefan