GNU bug report logs - #30937
In `comment-region', C-g doesn't work.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Alan Mackenzie <acm@HIDDEN>; Keywords: moreinfo unreproducible; dated Sun, 25 Mar 2018 14:49:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) unreproducible and moreinfo. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 30937 <at> debbugs.gnu.org:


Received: (at 30937) by debbugs.gnu.org; 31 Mar 2018 14:21:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 31 10:21:14 2018
Received: from localhost ([127.0.0.1]:33067 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f2HNa-0002t5-Cw
	for submit <at> debbugs.gnu.org; Sat, 31 Mar 2018 10:21:14 -0400
Received: from mail-it0-f51.google.com ([209.85.214.51]:54696)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1f2HNY-0002ss-Vv
 for 30937 <at> debbugs.gnu.org; Sat, 31 Mar 2018 10:21:13 -0400
Received: by mail-it0-f51.google.com with SMTP id h143-v6so14471995ita.4
 for <30937 <at> debbugs.gnu.org>; Sat, 31 Mar 2018 07:21:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=8O+R2RnQVJ4neHUNyJ0xj5IPFxkkDYfB4Mpd03ifkIM=;
 b=hmyfPZioTa+Xk1mW9TwE5Ga1NZa87wBiIIm7P/GwNhelKuKqJg7Fc79AwsAlVbpK95
 t6yncC29Q+nEAQDVHMu5551t6lacYoH0UqfdofUERHCPGZ0aZ5xDFw1AziNTBROLEAG1
 a2rBY7tjF6KS/0WkEbrdlkt66uuMsceH7XtPsM1gikaeLv3KkKRK3Tq7KdYX/BbAwY/H
 tavslAVIqh31lyyLY7S+GDNBERnw607JLHlrli3uWKZvsYJ7Ul20wH7mGjzcruXmgeT1
 nzlu0/YCum2TJSQEEqcVvkPxnAjpm8Zg1pCIzNoFBOvFepJFo/ZuMjXBgQwzUpMTXNmF
 KDJg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=8O+R2RnQVJ4neHUNyJ0xj5IPFxkkDYfB4Mpd03ifkIM=;
 b=CCqF5Fc8tZuDNHYKRpT1WW2rriaRrm2A83K6ffRCaOJkMdsBcHaGzlfjig485+kOsW
 uprsjKlc9ibYWtFKKlWCSN8qxQbJyj3snZISvBTJU2xQ+3drG3Gymm/Zdc5dtw+eyBwH
 AaTa1OPhP89SP1T2Xp4lGs2HTWbbCOo7w6uudCuS3AVhyyNNpXvy7o+HdFg+wwt0Hp2e
 nczW23nOcD5RZamy7T0PRt4yja/IycHePDk2mF09HgRekcoPo1Pw/CaJUsj+wrFxbX1m
 BiQlkIJXQcvjwuH5oEt6TAu0omFBZ5YxNDhzvRlLO7aJ0NJm6zC/02VWZvwC2Cr0wYxx
 ww7w==
X-Gm-Message-State: AElRT7HXr2BFLg+XcZeNsUVA+PobdxD+Q8p5pWOL/Q4ppwv52GNjPKI3
 7AhpGrv45YiGvf4r8A1DuhXxPg==
X-Google-Smtp-Source: AIpwx49tlq9Qv+04LC0lK2auZc0R+fsKTp7HNKVSc1hMbBTTYbBcufqNFF56Qt6CkcfCBQ2n2A460g==
X-Received: by 2002:a24:594e:: with SMTP id
 p75-v6mr7159618itb.135.1522506067260; 
 Sat, 31 Mar 2018 07:21:07 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 72-v6sm3396273itg.36.2018.03.31.07.21.05
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sat, 31 Mar 2018 07:21:06 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Subject: Re: bug#30937: In `comment-region', C-g doesn't work.
References: <20180325142855.GA6292@ACM> <838taggohx.fsf@HIDDEN>
 <20180325153959.GB6292@ACM>
Date: Sat, 31 Mar 2018 10:21:05 -0400
In-Reply-To: <20180325153959.GB6292@ACM> (Alan Mackenzie's message of "Sun, 25
 Mar 2018 15:39:59 +0000")
Message-ID: <87fu4gpbqm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 30937
Cc: Eli Zaretskii <eliz@HIDDEN>, 30937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Alan Mackenzie <acm@HIDDEN> writes:

> Hello, Eli.
>
> On Sun, Mar 25, 2018 at 18:32:10 +0300, Eli Zaretskii wrote:
>> > Date: Sun, 25 Mar 2018 14:28:55 +0000
>> > From: Alan Mackenzie <acm@HIDDEN>
>
>> > emacs-26.0.91 -Q
>> > C-x C-f Any largish file.c
>> > C-x h                 ; mark buffer.
>> > C-c C-c               ; comment-region.
>
>> > This is the sort of thing that can happen by accident.  Depending on the
>> > size of the file.c and the speed of your machine, you've now got a long,
>> > long wait.  C-g doesn't work.  This is a bug.
>
>> C-g does work for me just fine in the above recipe.  Maybe it's
>> platform dependent, and the problem happens only on X?
>
> Yes, I've just tried it on X.  It works there (except it leaves point in
> a suboptimal position: the starting point.  It should really leave point
> after the last newly commented line when the quit happened).  It works
> on emacs -nw, with the same proviso.
>
> It doesn't work at all on a Linux tty.  Sorry I didn't try X before
> reporting the bug.

I'm not able to reproduce this on a Linux tty (I assume that means the
virtual terminal you get when pressing Ctrl+Alt+F1).





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30937; Package emacs. Full text available.

Message received at 30937 <at> debbugs.gnu.org:


Received: (at 30937) by debbugs.gnu.org; 25 Mar 2018 21:08:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 17:08:17 2018
Received: from localhost ([127.0.0.1]:53225 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f0CsC-0001rs-T3
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 17:08:17 -0400
Received: from mail-out.m-online.net ([212.18.0.9]:38791)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <whitebox@HIDDEN>) id 1f0CsB-0001rk-25
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 17:08:15 -0400
Received: from frontend01.mail.m-online.net (unknown [192.168.8.182])
 by mail-out.m-online.net (Postfix) with ESMTP id 408VHL0ywZz1qtfD;
 Sun, 25 Mar 2018 23:08:14 +0200 (CEST)
Received: from localhost (dynscan1.mnet-online.de [192.168.6.70])
 by mail.m-online.net (Postfix) with ESMTP id 408VHL0NSKz1qqkg;
 Sun, 25 Mar 2018 23:08:14 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.182])
 by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new,
 port 10024)
 with ESMTP id G7K8JN03duAc; Sun, 25 Mar 2018 23:08:13 +0200 (CEST)
X-Auth-Info: IT5j0vMFDEKtEXyU6pvMUfFhps2WFiZOSsh0otIp+vSz+uTPgfWJvx04IA0Fv+dO
Received: from localhost (ppp-188-174-159-50.dynamic.mnet-online.de
 [188.174.159.50])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mail.mnet-online.de (Postfix) with ESMTPSA;
 Sun, 25 Mar 2018 23:08:13 +0200 (CEST)
Received: by localhost (Postfix, from userid 1000)
 id CB7482C3804; Sun, 25 Mar 2018 23:08:12 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#30937: In `comment-region', C-g doesn't work.
References: <20180325142855.GA6292@ACM> <838taggohx.fsf@HIDDEN>
 <20180325153959.GB6292@ACM> <831sg8gkzj.fsf@HIDDEN>
 <20180325171510.GD6292@ACM> <83tvt4f2oc.fsf@HIDDEN>
 <87po3s6loc.fsf@HIDDEN> <83r2o8ezna.fsf@HIDDEN>
X-Yow: Yow!!  That's a GOOD IDEA!!  Eating a whole FIELD of COUGH MEDICINE
 should make you feel MUCH BETTER!!
Date: Sun, 25 Mar 2018 23:08:12 +0200
In-Reply-To: <83r2o8ezna.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 25 Mar
 2018 22:14:17 +0300")
Message-ID: <87d0zr6eyr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 30937
Cc: acm@HIDDEN, 30937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On Mär 25 2018, Eli Zaretskii <eliz@HIDDEN> wrote:

>> From: Andreas Schwab <schwab@HIDDEN>
>> Cc: Alan Mackenzie <acm@HIDDEN>,  30937 <at> debbugs.gnu.org
>> Date: Sun, 25 Mar 2018 20:43:15 +0200
>> 
>> SIGINT only sets quit-flag.
>
> No, sometimes it also calls quit_throw_to_read_char.

Only while waiting for input, thus it cannot arbitrarily interrupt the
Lisp interpreter.

Andreas.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30937; Package emacs. Full text available.

Message received at 30937 <at> debbugs.gnu.org:


Received: (at 30937) by debbugs.gnu.org; 25 Mar 2018 19:14:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 15:14:21 2018
Received: from localhost ([127.0.0.1]:53202 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f0B5x-0007i4-CZ
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 15:14:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47688)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1f0B5u-0007hr-W0
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 15:14:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1f0B5m-0008RT-M7
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 15:14:13 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46064)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1f0B5m-0008RI-Ib; Sun, 25 Mar 2018 15:14:10 -0400
Received: from [176.228.60.248] (port=2071 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1f0B5m-0007zr-0g; Sun, 25 Mar 2018 15:14:10 -0400
Date: Sun, 25 Mar 2018 22:14:17 +0300
Message-Id: <83r2o8ezna.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andreas Schwab <schwab@HIDDEN>
In-reply-to: <87po3s6loc.fsf@HIDDEN> (message from Andreas Schwab on
 Sun, 25 Mar 2018 20:43:15 +0200)
Subject: Re: bug#30937: In `comment-region', C-g doesn't work.
References: <20180325142855.GA6292@ACM> <838taggohx.fsf@HIDDEN>
 <20180325153959.GB6292@ACM> <831sg8gkzj.fsf@HIDDEN>
 <20180325171510.GD6292@ACM> <83tvt4f2oc.fsf@HIDDEN>
 <87po3s6loc.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 30937
Cc: acm@HIDDEN, 30937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Andreas Schwab <schwab@HIDDEN>
> Cc: Alan Mackenzie <acm@HIDDEN>,  30937 <at> debbugs.gnu.org
> Date: Sun, 25 Mar 2018 20:43:15 +0200
> 
> SIGINT only sets quit-flag.

No, sometimes it also calls quit_throw_to_read_char.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30937; Package emacs. Full text available.

Message received at 30937 <at> debbugs.gnu.org:


Received: (at 30937) by debbugs.gnu.org; 25 Mar 2018 18:43:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 14:43:21 2018
Received: from localhost ([127.0.0.1]:53183 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f0Abx-000701-3S
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 14:43:21 -0400
Received: from mail-out.m-online.net ([212.18.0.9]:58582)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <whitebox@HIDDEN>) id 1f0Abv-0006zt-43
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 14:43:19 -0400
Received: from frontend01.mail.m-online.net (unknown [192.168.8.182])
 by mail-out.m-online.net (Postfix) with ESMTP id 408R46100Dz1qtHl;
 Sun, 25 Mar 2018 20:43:18 +0200 (CEST)
Received: from localhost (dynscan1.mnet-online.de [192.168.6.70])
 by mail.m-online.net (Postfix) with ESMTP id 408R460N5Yz1qql7;
 Sun, 25 Mar 2018 20:43:18 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.182])
 by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new,
 port 10024)
 with ESMTP id 1xyNn5E_Y5f2; Sun, 25 Mar 2018 20:43:17 +0200 (CEST)
X-Auth-Info: QrWqfV7cy/i1dD5hBHfw+XbCvc5pICb4hgZ6SdnBrbEgEDlYicTN8WenmZL6z0a5
Received: from localhost (ppp-188-174-159-50.dynamic.mnet-online.de
 [188.174.159.50])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mail.mnet-online.de (Postfix) with ESMTPSA;
 Sun, 25 Mar 2018 20:43:17 +0200 (CEST)
Received: by localhost (Postfix, from userid 1000)
 id AB8842C32DD; Sun, 25 Mar 2018 20:43:15 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#30937: In `comment-region', C-g doesn't work.
References: <20180325142855.GA6292@ACM> <838taggohx.fsf@HIDDEN>
 <20180325153959.GB6292@ACM> <831sg8gkzj.fsf@HIDDEN>
 <20180325171510.GD6292@ACM> <83tvt4f2oc.fsf@HIDDEN>
X-Yow: An air of FRENCH FRIES permeates my nostrils!!
Date: Sun, 25 Mar 2018 20:43:15 +0200
In-Reply-To: <83tvt4f2oc.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 25 Mar
 2018 21:08:51 +0300")
Message-ID: <87po3s6loc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 30937
Cc: Alan Mackenzie <acm@HIDDEN>, 30937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On Mär 25 2018, Eli Zaretskii <eliz@HIDDEN> wrote:

> 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.

SIGINT only sets quit-flag.  If you want it to take effect you need to
call maybe_quit.

Andreas.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30937; Package emacs. Full text available.

Message received at 30937 <at> debbugs.gnu.org:


Received: (at 30937) by debbugs.gnu.org; 25 Mar 2018 18:11:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 14:11:46 2018
Received: from localhost ([127.0.0.1]:53166 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f0A7O-0006Ch-IH
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 14:11:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52691)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1f0A7N-0006CT-Kn
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 14:11:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1f0A7F-00065U-E7
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 14:11:40 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44387)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1f0A7F-00065P-AS; Sun, 25 Mar 2018 14:11:37 -0400
Received: from [176.228.60.248] (port=2020 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1f0A7E-0004gR-Po; Sun, 25 Mar 2018 14:11:37 -0400
Date: Sun, 25 Mar 2018 21:11:44 +0300
Message-Id: <83sh8of2jj.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Ivan Shmakov <ivan@HIDDEN>
In-reply-to: <87bmfc5a8e.fsf_-_@HIDDEN> (message from Ivan Shmakov
 on Sun, 25 Mar 2018 17:35:45 +0000)
Subject: Re: bug#30937: In `comment-region', C-g doesn't work
References: <20180325142855.GA6292@ACM> <838taggohx.fsf@HIDDEN>
 <20180325153959.GB6292@ACM> <831sg8gkzj.fsf@HIDDEN>
 <87bmfc5a8e.fsf_-_@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 30937
Cc: 30937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Ivan Shmakov <ivan@HIDDEN>
> Date: Sun, 25 Mar 2018 17:35:45 +0000
> 
>  > ???  How come it works in "emacs -nw" but not on a "Linux tty" (which
>  > is what, btw? the raw Linux console?).  In both cases, C-g should
>  > trigger a SIGINT, so Emacs should be even more responsive to C-g than
>  > on X.  What am I missing?
> 
> 	I’d think that it means “works with -nw under xterm [or some
> 	such] but not on a virtual terminal [like /dev/tty2]”.
> 
> 	Personally, I’d look at (and compare) the stty(1) settings for
> 	the respective tty devices first; like:
> 
> $ stty -a -F /dev/tty2 
> 
> $ stty -a -F /dev/pts/5 

If a SIGINT is disabled, then I'd expect Emacs on a TTY to become
completely broken wrt to C-g, because AFAIK there's no other mechanism
on a TTY for Emacs to treat C-g differently from any other key.

But it doesn't do any harm to check the stty settings.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30937; Package emacs. Full text available.

Message received at 30937 <at> debbugs.gnu.org:


Received: (at 30937) by debbugs.gnu.org; 25 Mar 2018 18:08:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 14:08:54 2018
Received: from localhost ([127.0.0.1]:53161 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f0A4c-00067p-2u
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 14:08:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51569)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1f0A4a-00067d-Cm
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 14:08:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1f0A4R-0002mt-TJ
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 14:08:47 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44306)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1f0A4R-0002mp-Q9; Sun, 25 Mar 2018 14:08:43 -0400
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 <eliz@HIDDEN>)
 id 1f0A4R-0004I5-B1; Sun, 25 Mar 2018 14:08:43 -0400
Date: Sun, 25 Mar 2018 21:08:51 +0300
Message-Id: <83tvt4f2oc.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
In-reply-to: <20180325171510.GD6292@ACM> (message from Alan Mackenzie on Sun, 
 25 Mar 2018 17:15:10 +0000)
Subject: Re: bug#30937: In `comment-region', C-g doesn't work.
References: <20180325142855.GA6292@ACM> <838taggohx.fsf@HIDDEN>
 <20180325153959.GB6292@ACM> <831sg8gkzj.fsf@HIDDEN>
 <20180325171510.GD6292@ACM>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 30937
Cc: 30937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> Date: Sun, 25 Mar 2018 17:15:10 +0000
> Cc: 30937 <at> debbugs.gnu.org
> From: Alan Mackenzie <acm@HIDDEN>
> 
> > 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?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30937; Package emacs. Full text available.

Message received at 30937 <at> debbugs.gnu.org:


Received: (at 30937) by debbugs.gnu.org; 25 Mar 2018 17:35:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 13:35:53 2018
Received: from localhost ([127.0.0.1]:53157 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f09Yd-0005JQ-HO
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 13:35:53 -0400
Received: from fely.am-1.org ([78.47.74.50]:48010)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ivan@HIDDEN>) id 1f09Yb-0005JI-N0
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 13:35:50 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net
 ; s=a2013295;
 h=Content-Transfer-Encoding:Content-Type:MIME-Version:
 Message-ID:In-Reply-To:Date:Sender:References:X-License:To:Subject:From:
 Reply-To:Cc:Content-ID:Content-Description;
 bh=4nyZegR4c2o0mJ3C56vLTBWI2iQH9wOFlj6pS/g29P4=; b=eU5+GmL/lhQh6hPnUbPlOcNg87
 c1ef4z52DJfoKUU2Oj9xDBEHpib2ZwGB0VwvOneaIl0wWkVwJI1jjKymogbVdwJsJU9Pg2wss//8z
 Irtv2jZXOFgsPN5t0O3YdZQmw0TywAndUvibGp/pQ1eglq6GaTZmoWGke8HxuTh9fa6k=;
Received: from oneingray-1-pt.tunnel.tserv10.par1.ipv6.he.net
 ([2001:470:1f12:1eb::2] helo=violet.siamics.net)
 by fely.am-1.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.89) (envelope-from <ivan@HIDDEN>) id 1f09YZ-0006Me-GB
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 17:35:47 +0000
Received: from localhost ([::1] helo=violet.siamics.net)
 by violet.siamics.net with esmtp (Exim 4.84_2)
 (envelope-from <ivan@HIDDEN>) id 1f09YX-0003Wv-G7
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 17:35:45 +0000
From: Ivan Shmakov <ivan@HIDDEN>
Subject: Re: bug#30937: In `comment-region', C-g doesn't work 
To: 30937 <at> debbugs.gnu.org
X-License: CC-BY-SA-3.0+ (original contributions only) 
References: <20180325142855.GA6292@ACM> <838taggohx.fsf@HIDDEN>
 <20180325153959.GB6292@ACM> <831sg8gkzj.fsf@HIDDEN>
Date: Sun, 25 Mar 2018 17:35:45 +0000
In-Reply-To: <831sg8gkzj.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 25 Mar
 2018 19:48:00 +0300")
Message-ID: <87bmfc5a8e.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 30937
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

>>>>> Eli Zaretskii <eliz@HIDDEN> writes:
>>>>> From: Alan Mackenzie <acm@HIDDEN>

 >> Yes, I've just tried it on X.  It works there (except it leaves
 >> point in a suboptimal position: the starting point.  It should
 >> really leave point after the last newly commented line when the quit
 >> happened).  It works on emacs -nw, with the same proviso.

 >> It doesn't work at all on a Linux tty.

 > ???  How come it works in "emacs -nw" but not on a "Linux tty" (which
 > is what, btw? the raw Linux console?).  In both cases, C-g should
 > trigger a SIGINT, so Emacs should be even more responsive to C-g than
 > on X.  What am I missing?

	I=E2=80=99d think that it means =E2=80=9Cworks with -nw under xterm [or so=
me
	such] but not on a virtual terminal [like /dev/tty2]=E2=80=9D.

	Personally, I=E2=80=99d look at (and compare) the stty(1) settings for
	the respective tty devices first; like:

$ stty -a -F /dev/tty2=20

$ stty -a -F /dev/pts/5=20

--=20
FSF associate member #7257  http://am-1.org/~ivan/




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30937; Package emacs. Full text available.

Message received at 30937 <at> debbugs.gnu.org:


Received: (at 30937) by debbugs.gnu.org; 25 Mar 2018 17:34:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 13:34:20 2018
Received: from localhost ([127.0.0.1]:53152 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f09XA-0005H9-0J
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 13:34:20 -0400
Received: from colin.muc.de ([193.149.48.1]:41658 helo=mail.muc.de)
 by debbugs.gnu.org with smtp (Exim 4.84_2)
 (envelope-from <acm@HIDDEN>) id 1f09X6-0005Gu-Ju
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 13:34:17 -0400
Received: (qmail 5061 invoked by uid 3782); 25 Mar 2018 17:34:15 -0000
Received: from acm.muc.de (p5B14605B.dip0.t-ipconnect.de [91.20.96.91]) by
 colin.muc.de (tmda-ofmipd) with ESMTP;
 Sun, 25 Mar 2018 19:34:14 +0200
Received: (qmail 8240 invoked by uid 1000); 25 Mar 2018 17:15:10 -0000
Date: Sun, 25 Mar 2018 17:15:10 +0000
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#30937: In `comment-region', C-g doesn't work.
Message-ID: <20180325171510.GD6292@ACM>
References: <20180325142855.GA6292@ACM> <838taggohx.fsf@HIDDEN>
 <20180325153959.GB6292@ACM> <831sg8gkzj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <831sg8gkzj.fsf@HIDDEN>
User-Agent: Mutt/1.7.2 (2016-11-26)
X-Delivery-Agent: TMDA/1.1.12 (Macallan)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 30937
Cc: 30937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hello, Eli.

On Sun, Mar 25, 2018 at 19:48:00 +0300, Eli Zaretskii wrote:
> > Date: Sun, 25 Mar 2018 15:39:59 +0000
> > Cc: 30937 <at> debbugs.gnu.org
> > From: Alan Mackenzie <acm@HIDDEN>

> > Yes, I've just tried it on X.  It works there (except it leaves point in
> > a suboptimal position: the starting point.  It should really leave point
> > after the last newly commented line when the quit happened).  It works
> > on emacs -nw, with the same proviso.

> > It doesn't work at all on a Linux tty.

> ??? How come it works in "emacs -nw" but not on a "Linux tty" (which
> is what, btw? the raw Linux console?).

Yes, the raw Linux console.  I don't know why it doesn't work, here.

> 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.

> What am I missing?

I honestly don't know.

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30937; Package emacs. Full text available.

Message received at 30937 <at> debbugs.gnu.org:


Received: (at 30937) by debbugs.gnu.org; 25 Mar 2018 16:48:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 12:48:04 2018
Received: from localhost ([127.0.0.1]:53139 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f08oN-0004Bj-Uz
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 12:48:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51820)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1f08oL-0004BE-IA
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 12:48:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1f08oD-0004V5-0H
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 12:47:56 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42160)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1f08oC-0004Ut-TQ; Sun, 25 Mar 2018 12:47:52 -0400
Received: from [176.228.60.248] (port=1958 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1f08oC-0001Qz-B6; Sun, 25 Mar 2018 12:47:52 -0400
Date: Sun, 25 Mar 2018 19:48:00 +0300
Message-Id: <831sg8gkzj.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
In-reply-to: <20180325153959.GB6292@ACM> (message from Alan Mackenzie on Sun, 
 25 Mar 2018 15:39:59 +0000)
Subject: Re: bug#30937: In `comment-region', C-g doesn't work.
References: <20180325142855.GA6292@ACM>
 <838taggohx.fsf@HIDDEN> <20180325153959.GB6292@ACM>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 30937
Cc: 30937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> Date: Sun, 25 Mar 2018 15:39:59 +0000
> Cc: 30937 <at> debbugs.gnu.org
> From: Alan Mackenzie <acm@HIDDEN>
> 
> Yes, I've just tried it on X.  It works there (except it leaves point in
> a suboptimal position: the starting point.  It should really leave point
> after the last newly commented line when the quit happened).  It works
> on emacs -nw, with the same proviso.
> 
> It doesn't work at all on a Linux tty.

??? How come it works in "emacs -nw" but not on a "Linux tty" (which
is what, btw? the raw Linux console?).  In both cases, C-g should
trigger a SIGINT, so Emacs should be even more responsive to C-g than
on X.  What am I missing?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30937; Package emacs. Full text available.

Message received at 30937 <at> debbugs.gnu.org:


Received: (at 30937) by debbugs.gnu.org; 25 Mar 2018 16:20:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 12:20:34 2018
Received: from localhost ([127.0.0.1]:53122 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f08Nm-0003XC-3T
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 12:20:34 -0400
Received: from colin.muc.de ([193.149.48.1]:58688 helo=mail.muc.de)
 by debbugs.gnu.org with smtp (Exim 4.84_2)
 (envelope-from <acm@HIDDEN>) id 1f08Nk-0003X3-FH
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 12:20:33 -0400
Received: (qmail 90056 invoked by uid 3782); 25 Mar 2018 16:20:31 -0000
Received: from acm.muc.de (p5B14605B.dip0.t-ipconnect.de [91.20.96.91]) by
 colin.muc.de (tmda-ofmipd) with ESMTP;
 Sun, 25 Mar 2018 18:20:30 +0200
Received: (qmail 7249 invoked by uid 1000); 25 Mar 2018 16:01:26 -0000
Date: Sun, 25 Mar 2018 16:01:26 +0000
To: Andreas Schwab <schwab@HIDDEN>
Subject: Re: bug#30937: In `comment-region', C-g doesn't work.
Message-ID: <20180325160126.GC6292@ACM>
References: <20180325142855.GA6292@ACM>
 <87tvt46swr.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <87tvt46swr.fsf@HIDDEN>
User-Agent: Mutt/1.7.2 (2016-11-26)
X-Delivery-Agent: TMDA/1.1.12 (Macallan)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 30937
Cc: 30937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hello, Andreas.

On Sun, Mar 25, 2018 at 18:07:00 +0200, Andreas Schwab wrote:
> On Mr 25 2018, Alan Mackenzie <acm@HIDDEN> wrote:

> > emacs-26.0.91 -Q
> > C-x C-f Any largish file.c
> > C-x h                 ; mark buffer.
> > C-c C-c               ; comment-region.

> > This is the sort of thing that can happen by accident.  Depending on the
> > size of the file.c and the speed of your machine, you've now got a long,
> > long wait.  C-g doesn't work.  This is a bug.

> Does it help to set select-active-regions to nil or 'only?

Sort of, yes.  But I run with transient-mark-mode disabled, and on a
Linux tty.  What has select-active-regions got to do with my platform?

> Andreas.

> -- 
> Andreas Schwab, schwab@HIDDEN
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30937; Package emacs. Full text available.

Message received at 30937 <at> debbugs.gnu.org:


Received: (at 30937) by debbugs.gnu.org; 25 Mar 2018 16:07:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 12:07:06 2018
Received: from localhost ([127.0.0.1]:53108 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f08Aj-0003DY-Dp
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 12:07:06 -0400
Received: from mail-out.m-online.net ([212.18.0.9]:42298)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <whitebox@HIDDEN>) id 1f08Ah-0003DE-3P
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 12:07:03 -0400
Received: from frontend01.mail.m-online.net (unknown [192.168.8.182])
 by mail-out.m-online.net (Postfix) with ESMTP id 408Mbp1Mrlz1qtdd;
 Sun, 25 Mar 2018 18:07:02 +0200 (CEST)
Received: from localhost (dynscan1.mnet-online.de [192.168.6.70])
 by mail.m-online.net (Postfix) with ESMTP id 408Mbp0m98z1qqkT;
 Sun, 25 Mar 2018 18:07:02 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.182])
 by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new,
 port 10024)
 with ESMTP id 0Nd8m6VI2EI1; Sun, 25 Mar 2018 18:07:01 +0200 (CEST)
X-Auth-Info: iJXtY80/ByUWtkbyVUmc+CjGKCbijGCLd6PO2cESjp4YcJOeB9WTjVzmCNSmFw/u
Received: from localhost (ppp-188-174-159-50.dynamic.mnet-online.de
 [188.174.159.50])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mail.mnet-online.de (Postfix) with ESMTPSA;
 Sun, 25 Mar 2018 18:07:01 +0200 (CEST)
Received: by localhost (Postfix, from userid 1000)
 id CD6D92C20A5; Sun, 25 Mar 2018 18:07:00 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Subject: Re: bug#30937: In `comment-region', C-g doesn't work.
References: <20180325142855.GA6292@ACM>
X-Yow: Is something VIOLENT going to happen to a GARBAGE CAN?
Date: Sun, 25 Mar 2018 18:07:00 +0200
In-Reply-To: <20180325142855.GA6292@ACM> (Alan Mackenzie's message of "Sun, 25
 Mar 2018 14:28:55 +0000")
Message-ID: <87tvt46swr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 30937
Cc: 30937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On Mär 25 2018, Alan Mackenzie <acm@HIDDEN> wrote:

> emacs-26.0.91 -Q
> C-x C-f Any largish file.c
> C-x h                 ; mark buffer.
> C-c C-c               ; comment-region.
>
> This is the sort of thing that can happen by accident.  Depending on the
> size of the file.c and the speed of your machine, you've now got a long,
> long wait.  C-g doesn't work.  This is a bug.

Does it help to set select-active-regions to nil or 'only?

Andreas.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30937; Package emacs. Full text available.

Message received at 30937 <at> debbugs.gnu.org:


Received: (at 30937) by debbugs.gnu.org; 25 Mar 2018 15:59:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 11:59:10 2018
Received: from localhost ([127.0.0.1]:53103 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f0834-00031D-J1
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 11:59:10 -0400
Received: from colin.muc.de ([193.149.48.1]:45704 helo=mail.muc.de)
 by debbugs.gnu.org with smtp (Exim 4.84_2)
 (envelope-from <acm@HIDDEN>) id 1f0830-000312-5A
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 11:59:08 -0400
Received: (qmail 84863 invoked by uid 3782); 25 Mar 2018 15:59:04 -0000
Received: from acm.muc.de (p5B14605B.dip0.t-ipconnect.de [91.20.96.91]) by
 colin.muc.de (tmda-ofmipd) with ESMTP;
 Sun, 25 Mar 2018 17:59:03 +0200
Received: (qmail 6821 invoked by uid 1000); 25 Mar 2018 15:39:59 -0000
Date: Sun, 25 Mar 2018 15:39:59 +0000
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#30937: In `comment-region', C-g doesn't work.
Message-ID: <20180325153959.GB6292@ACM>
References: <20180325142855.GA6292@ACM>
 <838taggohx.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <838taggohx.fsf@HIDDEN>
User-Agent: Mutt/1.7.2 (2016-11-26)
X-Delivery-Agent: TMDA/1.1.12 (Macallan)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 30937
Cc: 30937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hello, Eli.

On Sun, Mar 25, 2018 at 18:32:10 +0300, Eli Zaretskii wrote:
> > Date: Sun, 25 Mar 2018 14:28:55 +0000
> > From: Alan Mackenzie <acm@HIDDEN>

> > emacs-26.0.91 -Q
> > C-x C-f Any largish file.c
> > C-x h                 ; mark buffer.
> > C-c C-c               ; comment-region.

> > This is the sort of thing that can happen by accident.  Depending on the
> > size of the file.c and the speed of your machine, you've now got a long,
> > long wait.  C-g doesn't work.  This is a bug.

> C-g does work for me just fine in the above recipe.  Maybe it's
> platform dependent, and the problem happens only on X?

Yes, I've just tried it on X.  It works there (except it leaves point in
a suboptimal position: the starting point.  It should really leave point
after the last newly commented line when the quit happened).  It works
on emacs -nw, with the same proviso.

It doesn't work at all on a Linux tty.  Sorry I didn't try X before
reporting the bug.

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30937; Package emacs. Full text available.

Message received at 30937 <at> debbugs.gnu.org:


Received: (at 30937) by debbugs.gnu.org; 25 Mar 2018 15:32:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 11:32:16 2018
Received: from localhost ([127.0.0.1]:53075 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f07d1-0000RK-TL
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 11:32:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50095)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1f07d0-0000R6-En
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 11:32:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1f07cq-0003cR-8Q
 for 30937 <at> debbugs.gnu.org; Sun, 25 Mar 2018 11:32:09 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39631)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1f07cq-0003c8-3i; Sun, 25 Mar 2018 11:32:04 -0400
Received: from [176.228.60.248] (port=1776 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1f07cp-0005BC-Gr; Sun, 25 Mar 2018 11:32:03 -0400
Date: Sun, 25 Mar 2018 18:32:10 +0300
Message-Id: <838taggohx.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
In-reply-to: <20180325142855.GA6292@ACM> (message from Alan Mackenzie on Sun, 
 25 Mar 2018 14:28:55 +0000)
Subject: Re: bug#30937: In `comment-region', C-g doesn't work.
References: <20180325142855.GA6292@ACM>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 30937
Cc: 30937 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> Date: Sun, 25 Mar 2018 14:28:55 +0000
> From: Alan Mackenzie <acm@HIDDEN>
> 
> emacs-26.0.91 -Q
> C-x C-f Any largish file.c
> C-x h                 ; mark buffer.
> C-c C-c               ; comment-region.
> 
> This is the sort of thing that can happen by accident.  Depending on the
> size of the file.c and the speed of your machine, you've now got a long,
> long wait.  C-g doesn't work.  This is a bug.

C-g does work for me just fine in the above recipe.  Maybe it's
platform dependent, and the problem happens only on X?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30937; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Mar 2018 14:48:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 25 10:48:19 2018
Received: from localhost ([127.0.0.1]:53052 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f06wV-0007rQ-Bt
	for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 10:48:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35355)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <acm@HIDDEN>) id 1f06wS-0007r9-Mq
 for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 10:48:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <acm@HIDDEN>) id 1f06wM-0001jP-Qy
 for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 10:48:11 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:54006)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <acm@HIDDEN>) id 1f06wM-0001j2-NW
 for submit <at> debbugs.gnu.org; Sun, 25 Mar 2018 10:48:10 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54545)
 by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <acm@HIDDEN>)
 id 1f06wL-00008p-In
 for bug-gnu-emacs@HIDDEN; Sun, 25 Mar 2018 10:48:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <acm@HIDDEN>) id 1f06wG-0001f8-Jq
 for bug-gnu-emacs@HIDDEN; Sun, 25 Mar 2018 10:48:09 -0400
Received: from colin.muc.de ([193.149.48.1]:62289 helo=mail.muc.de)
 by eggs.gnu.org with smtp (Exim 4.71) (envelope-from <acm@HIDDEN>)
 id 1f06wG-0001d1-8W
 for bug-gnu-emacs@HIDDEN; Sun, 25 Mar 2018 10:48:04 -0400
Received: (qmail 62180 invoked by uid 3782); 25 Mar 2018 14:48:00 -0000
Received: from acm.muc.de (p5B14605B.dip0.t-ipconnect.de [91.20.96.91]) by
 colin.muc.de (tmda-ofmipd) with ESMTP;
 Sun, 25 Mar 2018 16:47:59 +0200
Received: (qmail 6311 invoked by uid 1000); 25 Mar 2018 14:28:55 -0000
Date: Sun, 25 Mar 2018 14:28:55 +0000
To: bug-gnu-emacs@HIDDEN
Subject: In `comment-region', C-g doesn't work.
Message-ID: <20180325142855.GA6292@ACM>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.7.2 (2016-11-26)
X-Delivery-Agent: TMDA/1.1.12 (Macallan)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.4 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.4 (----)

Hello, Emacs.

emacs-26.0.91 -Q
C-x C-f Any largish file.c
C-x h                 ; mark buffer.
C-c C-c               ; comment-region.

This is the sort of thing that can happen by accident.  Depending on the
size of the file.c and the speed of your machine, you've now got a long,
long wait.  C-g doesn't work.  This is a bug.

(The same applies to `uncomment-region'.)

-- 
Alan Mackenzie (Nuremberg, Germany).




Acknowledgement sent to Alan Mackenzie <acm@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#30937; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 5 Apr 2018 23:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.