From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30937: In `comment-region', C-g doesn't work. Date: Sun, 25 Mar 2018 21:08:51 +0300 Message-ID: <83tvt4f2oc.fsf@gnu.org> References: <20180325142855.GA6292@ACM> <838taggohx.fsf@gnu.org> <20180325153959.GB6292@ACM> <831sg8gkzj.fsf@gnu.org> <20180325171510.GD6292@ACM> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1522001232 4881 195.159.176.226 (25 Mar 2018 18:07:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Mar 2018 18:07:12 +0000 (UTC) Cc: 30937@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 25 20:07:08 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0A2s-00018O-Mr for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Mar 2018 20:07:06 +0200 Original-Received: from localhost ([::1]:52132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0A4u-0004up-BA for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Mar 2018 14:09:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0A4n-0004ud-BJ for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2018 14:09:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0A4k-0002xf-4M for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2018 14:09:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45264) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0A4k-0002xE-0l for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2018 14:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f0A4j-00068H-Nz for bug-gnu-emacs@gnu.org; Sun, 25 Mar 2018 14:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Mar 2018 18:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30937 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30937-submit@debbugs.gnu.org id=B30937.152200133423553 (code B ref 30937); Sun, 25 Mar 2018 18:09:01 +0000 Original-Received: (at 30937) by debbugs.gnu.org; 25 Mar 2018 18:08:54 +0000 Original-Received: from localhost ([127.0.0.1]:53161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0A4c-00067p-2u for submit@debbugs.gnu.org; Sun, 25 Mar 2018 14:08:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51569) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0A4a-00067d-Cm for 30937@debbugs.gnu.org; Sun, 25 Mar 2018 14:08:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0A4R-0002mt-TJ for 30937@debbugs.gnu.org; Sun, 25 Mar 2018 14:08:47 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0A4R-0002mp-Q9; Sun, 25 Mar 2018 14:08:43 -0400 Original-Received: from [176.228.60.248] (port=2019 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f0A4R-0004I5-B1; Sun, 25 Mar 2018 14:08:43 -0400 In-reply-to: <20180325171510.GD6292@ACM> (message from Alan Mackenzie on Sun, 25 Mar 2018 17:15:10 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:144608 Archived-At: > Date: Sun, 25 Mar 2018 17:15:10 +0000 > Cc: 30937@debbugs.gnu.org > From: Alan Mackenzie > > > In both cases, C-g should trigger a SIGINT, so Emacs should be even > > more responsive to C-g than on X. > > For what it's worth, quit-flag is getting set on a C-g (I hacked up my > own quit mechanism to test this). It would appear that nothing is > testing quit-flag during the comment-region. comment-region doesn't need to test that explicitly, it is tested in many underlying primitives. Moreover, on a TTY, C-g triggers a SIGINT, which should cause a throw to top-level even if quit-flag is not tested, just because it's a signal. Can you see if SIGINT is delivered to Emacs when you type C-g on that console?