GNU bug report logs - #22743
25.0.91: set-quit-char does not work if emacs lacks a controlling tty

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; Severity: wishlist; Reported by: Duncan Burke <duncankburke@HIDDEN>; dated Sat, 20 Feb 2016 06:58:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 22743) by debbugs.gnu.org; 20 Feb 2016 21:04:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 20 16:04:34 2016
Received: from localhost ([127.0.0.1]:35646 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aXEhd-0001fu-U4
	for submit <at> debbugs.gnu.org; Sat, 20 Feb 2016 16:04:34 -0500
Received: from eggs.gnu.org ([208.118.235.92]:57482)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <eliz@HIDDEN>) id 1aXEhd-0001fh-0Z
 for 22743 <at> debbugs.gnu.org; Sat, 20 Feb 2016 16:04:33 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1aXEhU-0001w3-OS
 for 22743 <at> debbugs.gnu.org; Sat, 20 Feb 2016 16:04:27 -0500
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,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42827)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1aXEhU-0001vm-KS; Sat, 20 Feb 2016 16:04:24 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3139
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1aXEhT-0005cU-Ka; Sat, 20 Feb 2016 16:04:24 -0500
Date: Sat, 20 Feb 2016 23:04:09 +0200
Message-Id: <83bn7bnlfa.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
In-reply-to: <1o37snds50.fsf@HIDDEN> (message from Glenn Morris on
 Sat, 20 Feb 2016 15:49:15 -0500)
Subject: Re: bug#22743: 25.0.91: set-quit-char does not work if emacs lacks a
 controlling tty
References: <56C7FA4A.1030605@HIDDEN> <83mvqvpvnm.fsf@HIDDEN>
 <h3k2lzdspp.fsf@HIDDEN> <83fuwnnmce.fsf@HIDDEN>
 <1o37snds50.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: 22743
Cc: duncankburke@HIDDEN, 22743 <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: Glenn Morris <rgm@HIDDEN>
> Cc: duncankburke@HIDDEN,  22743 <at> debbugs.gnu.org
> Date: Sat, 20 Feb 2016 15:49:15 -0500
> 
> Eli Zaretskii wrote:
> 
> >> http://lists.gnu.org/archive/html/emacs-devel/2008-10/msg00485.html
> >
> > In which there's a suggestion to remove the feature.
> 
> Indeed (gets my vote), but IIUC you objected at that time
> 
> http://lists.gnu.org/archive/html/emacs-devel/2008-10/msg00487.html

Yeah, seven and half years ago!  Lots of water under the bridge since
then.




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

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


Received: (at 22743) by debbugs.gnu.org; 20 Feb 2016 20:49:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 20 15:49:26 2016
Received: from localhost ([127.0.0.1]:35633 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aXET0-0001Ct-BL
	for submit <at> debbugs.gnu.org; Sat, 20 Feb 2016 15:49:26 -0500
Received: from eggs.gnu.org ([208.118.235.92]:54043)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <rgm@HIDDEN>) id 1aXESz-0001Cg-0y
 for 22743 <at> debbugs.gnu.org; Sat, 20 Feb 2016 15:49:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1aXESs-0006eq-Ux
 for 22743 <at> debbugs.gnu.org; Sat, 20 Feb 2016 15:49:19 -0500
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,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42515)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1aXESp-0006dV-Ql; Sat, 20 Feb 2016 15:49:15 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1aXESp-0003sy-7L; Sat, 20 Feb 2016 15:49:15 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#22743: 25.0.91: set-quit-char does not work if emacs lacks a
 controlling tty
References: <56C7FA4A.1030605@HIDDEN> <83mvqvpvnm.fsf@HIDDEN>
 <h3k2lzdspp.fsf@HIDDEN> <83fuwnnmce.fsf@HIDDEN>
X-Spook: Qaddafi AUTODIN Reynosa CNCIS Drug Administration Heroin
X-Ran: \#c,!q$`C9"7R"dUog%nq-W3(!Yjj~Skk~/f^g$`'wqj/ZajQpoV@0pN#x<Zu>Qk}orc_N
X-Hue: red
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Sat, 20 Feb 2016 15:49:15 -0500
In-Reply-To: <83fuwnnmce.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 20 Feb
 2016 22:44:17 +0200")
Message-ID: <1o37snds50.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
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: 22743
Cc: duncankburke@HIDDEN, 22743 <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: -5.0 (-----)

Eli Zaretskii wrote:

>> http://lists.gnu.org/archive/html/emacs-devel/2008-10/msg00485.html
>
> In which there's a suggestion to remove the feature.

Indeed (gets my vote), but IIUC you objected at that time

http://lists.gnu.org/archive/html/emacs-devel/2008-10/msg00487.html




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

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


Received: (at 22743) by debbugs.gnu.org; 20 Feb 2016 20:44:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 20 15:44:43 2016
Received: from localhost ([127.0.0.1]:35629 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aXEOQ-0007uE-QD
	for submit <at> debbugs.gnu.org; Sat, 20 Feb 2016 15:44:42 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52838)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <eliz@HIDDEN>) id 1aXEOO-0007u1-Rw
 for 22743 <at> debbugs.gnu.org; Sat, 20 Feb 2016 15:44:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1aXEOG-0005jx-NO
 for 22743 <at> debbugs.gnu.org; Sat, 20 Feb 2016 15:44:35 -0500
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,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42419)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1aXEOG-0005jq-KS; Sat, 20 Feb 2016 15:44:32 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3120
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1aXEOF-0003Is-9V; Sat, 20 Feb 2016 15:44:31 -0500
Date: Sat, 20 Feb 2016 22:44:17 +0200
Message-Id: <83fuwnnmce.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
In-reply-to: <h3k2lzdspp.fsf@HIDDEN> (message from Glenn Morris on
 Sat, 20 Feb 2016 15:36:50 -0500)
Subject: Re: bug#22743: 25.0.91: set-quit-char does not work if emacs lacks a
 controlling tty
References: <56C7FA4A.1030605@HIDDEN> <83mvqvpvnm.fsf@HIDDEN>
 <h3k2lzdspp.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: 22743
Cc: duncankburke@HIDDEN, 22743 <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: Glenn Morris <rgm@HIDDEN>
> Cc: Duncan Burke <duncankburke@HIDDEN>,  22743 <at> debbugs.gnu.org
> Date: Sat, 20 Feb 2016 15:36:50 -0500
> 
> Eli Zaretskii wrote:
> 
> >  C-g is supported implicitly and explicitly in many more places. Grep
> > the Lisp sources for C-g to see that.
> 
> This is http://debbugs.gnu.org/1218, which has seen zero interest since
> it was filed 6 years ago, following
> 
> http://lists.gnu.org/archive/html/emacs-devel/2008-10/msg00485.html

In which there's a suggestion to remove the feature.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22743; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 22743) by debbugs.gnu.org; 20 Feb 2016 20:37:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 20 15:37:02 2016
Received: from localhost ([127.0.0.1]:35607 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aXEH0-0007hu-19
	for submit <at> debbugs.gnu.org; Sat, 20 Feb 2016 15:37:02 -0500
Received: from eggs.gnu.org ([208.118.235.92]:50801)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <rgm@HIDDEN>) id 1aXEGy-0007hP-6X
 for 22743 <at> debbugs.gnu.org; Sat, 20 Feb 2016 15:37:00 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1aXEGs-0003hR-Ev
 for 22743 <at> debbugs.gnu.org; Sat, 20 Feb 2016 15:36:55 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,
 UNRESOLVED_TEMPLATE autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42271)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1aXEGr-0003hF-3z; Sat, 20 Feb 2016 15:36:53 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1aXEGp-0002La-41; Sat, 20 Feb 2016 15:36:51 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#22743: 25.0.91: set-quit-char does not work if emacs lacks a
 controlling tty
References: <56C7FA4A.1030605@HIDDEN> <83mvqvpvnm.fsf@HIDDEN>
X-Spook: Los Zetas MDA Border Patrol Arnett Disaster medical
X-Ran: MoF$WZxxA)9>3S6A.nd^(m6>+B+%N4#jvB:sR%~5)ODzN?l.Vb7W<-6h~3Hs;E{keTL%CM
X-Hue: yellow
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Sat, 20 Feb 2016 15:36:50 -0500
In-Reply-To: <83mvqvpvnm.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 20 Feb
 2016 11:40:13 +0200")
Message-ID: <h3k2lzdspp.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
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: -4.3 (----)
X-Debbugs-Envelope-To: 22743
Cc: Duncan Burke <duncankburke@HIDDEN>, 22743 <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: -4.3 (----)

Eli Zaretskii wrote:

>  C-g is supported implicitly and explicitly in many more places. Grep
> the Lisp sources for C-g to see that.

This is http://debbugs.gnu.org/1218, which has seen zero interest since
it was filed 6 years ago, following

http://lists.gnu.org/archive/html/emacs-devel/2008-10/msg00485.html

and subsequent.




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

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


Received: (at 22743) by debbugs.gnu.org; 20 Feb 2016 11:48:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 20 06:48:41 2016
Received: from localhost ([127.0.0.1]:34632 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aX61h-0001oz-Jh
	for submit <at> debbugs.gnu.org; Sat, 20 Feb 2016 06:48:41 -0500
Received: from mail-pa0-f44.google.com ([209.85.220.44]:36686)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <duncankburke@HIDDEN>) id 1aX61g-0001ol-1a
 for 22743 <at> debbugs.gnu.org; Sat, 20 Feb 2016 06:48:40 -0500
Received: by mail-pa0-f44.google.com with SMTP id yy13so64823256pab.3
 for <22743 <at> debbugs.gnu.org>; Sat, 20 Feb 2016 03:48:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=subject:to:references:cc:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-type:content-transfer-encoding;
 bh=gu2seWOL+mY4bJfuAHlvd8WkAHpPWQ5Nf2WQzDx+MxE=;
 b=oPFOq8gD4BXerX+S5757kQJvHrI++KzyjskN+jN0cJoDHL0r7ziw8dC4TX0fDCVEo5
 QCUuViMz+al898jLGMDKA/9HC8wyXvJFX7fOaY5gPa/jNwkZZB6uqwFO1HZAfM6yjB9q
 CXEth5PhOYakM//ytmKNjXS1VfHyA951jC7OGEdL9oiLzeHz6STMyTfc/FLmjnsIJhgb
 8pd0gyLxhaTa4XN/qbgVA+D5DZ6jddhPd7zuSwgsZzArb4PNe3sySzfTU3byRUxoxVlB
 PENuq5QWaVHLEmCoN1ZpAZaXXRV6Hx9zP4tBbnfUEJE3qOvXKHbr/mxmujtiWoL+nb0Y
 b8rg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:subject:to:references:cc:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-type
 :content-transfer-encoding;
 bh=gu2seWOL+mY4bJfuAHlvd8WkAHpPWQ5Nf2WQzDx+MxE=;
 b=mRaOZ1BgNqL6tuOc6k+aswDCzY7TSPja57Hxf1rvlklpDomvUuDTnoTlF94V027bcQ
 JHCj+PmZRNm3dUySjLxk7GyM3UQqSyR89HPa+HjZrEyGREfurH1M6b3b+2DKJ9ooaLeq
 L1dFXazjjI9prBNby2y9+tYIHpq0hVNvot5JiJGvgAYu/6zEUIjLSP2PXizK9Acj9xK2
 xqiO4TUQgaYWy5CB876t8VL6Yr08lHgrCZpJsLZAshFx4JHZgGywxHSa4XohLbgQk8Kg
 jT0BTkES3XniMxYLDLBD9j/BD0Odx6TmWW1RTZde/lx0DOeF29qJu0XEF//p7FJACDnf
 uZDA==
X-Gm-Message-State: AG10YOS3AuVD3d7ndZS5gmC3CoxHLVsKFWWHU7njR3WXPL6QY9a2Mg8Ih0TLV7Ey8ipRbQ==
X-Received: by 10.66.146.196 with SMTP id te4mr24790202pab.125.1455968913319; 
 Sat, 20 Feb 2016 03:48:33 -0800 (PST)
Received: from betelgeuse.dkb.id.au
 (c122-106-239-94.belrs3.nsw.optusnet.com.au. [122.106.239.94])
 by smtp.gmail.com with ESMTPSA id dz8sm24305655pab.19.2016.02.20.03.48.31
 (version=TLSv1/SSLv3 cipher=OTHER);
 Sat, 20 Feb 2016 03:48:32 -0800 (PST)
Subject: Re: bug#22743: 25.0.91: set-quit-char does not work if emacs lacks a
 controlling tty
To: John Wiegley <johnw@HIDDEN>
References: <56C7FA4A.1030605@HIDDEN> <m21t87dczy.fsf@HIDDEN>
From: Duncan Burke <duncankburke@HIDDEN>
Message-ID: <56C8528C.5020509@HIDDEN>
Date: Sat, 20 Feb 2016 22:48:28 +1100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.6.0
MIME-Version: 1.0
In-Reply-To: <m21t87dczy.fsf@HIDDEN>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 22743
Cc: 22743 <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.7 (/)



On 20/02/16 19:04, John Wiegley wrote:
>>>>>> Duncan Burke <duncankburke@HIDDEN> writes:
>> I have heavily customised keybindings on a dvorak layout and this
>> necessitates rebinding quit away from its default value of C-g.
> Hi Duncan,
>
> I'm also a Dvorak user of many years; I find C-g to be quite convenient,
> actually; why did you need to rebind it?  (I ask mainly out of curiosity).
>
You're right, C-g is actually pretty convenient for Dvorak, I move it 
because
it conflicts with other bindings I've chosen.

I have C-h/t/n/s as backward-char, previous-line, next-line and forward 
char.
Then, M-h/t/n/s are backward-word, backward-paragraph, 
forward-paragraph, and
forward-word. M-H/T/N/S continue this pattern, and C-M-h/t/n/s move between
windows.

Going up one row, the commands are the same except killing instead of 
movement
so C-g/c/r/l are backward-delete-char, kill-previous-line, 
kill-next-line and
delete-forward-char.





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

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


Received: (at 22743) by debbugs.gnu.org; 20 Feb 2016 11:38:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 20 06:38:09 2016
Received: from localhost ([127.0.0.1]:34627 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aX5rV-0001Zv-J5
	for submit <at> debbugs.gnu.org; Sat, 20 Feb 2016 06:38:09 -0500
Received: from mail-pf0-f176.google.com ([209.85.192.176]:35313)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <duncankburke@HIDDEN>) id 1aX5rT-0001ZX-9X
 for 22743 <at> debbugs.gnu.org; Sat, 20 Feb 2016 06:38:07 -0500
Received: by mail-pf0-f176.google.com with SMTP id c10so67909153pfc.2
 for <22743 <at> debbugs.gnu.org>; Sat, 20 Feb 2016 03:38:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=subject:to:references:cc:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-type:content-transfer-encoding;
 bh=yuBuGgMV1SoeYIhuyF+1AwN++hVACCSyuv1JfeJRVYk=;
 b=MbB4vOPD5F1OU9gj71Mqi4ncaS67LHlTBk2HUIseuNIhgetN0DUMbbUSiYe9/cxg5m
 A+mMvE55pVsCg0EjSw5w+Fvl66d+7KSMPQZ6oUKUv0L1Afz+wIOuthGd7gkTTsjhyrJn
 6UBo2zcFsDWGlVT7PULw/csC56iQum/asDrJbfN3hWotlmfYOjjlK9auI2LC4BWJWxSb
 ViQbeElARL2WVfRe5V+lfW9GSvso6bgH9gjDGb4E97JXhsU8ORjuc7JJ4Qmb1W+vQcei
 AT7zg0Bi0NKT5M2VpMapeUP5TLou6lGyLHyagbX45V288vrUPmq9imjHxvXIzDG5bgJT
 9pKg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:subject:to:references:cc:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-type
 :content-transfer-encoding;
 bh=yuBuGgMV1SoeYIhuyF+1AwN++hVACCSyuv1JfeJRVYk=;
 b=XvQmdSzo3ooEU+ymtJdBEQpK4cIj1uSPqCi9F6NbZv0kHrK2ccvemYVnVCMVOA6nX/
 XBd/F9znFly1MtC/BX7ITWH9qv3QAuU2vdF13iNqa6PW9uitqXx7el/DDOgBbmJkX2x0
 ck26WdnA4ZnGvmKepqIR4U5nlWlNk+nSbHus8mkkcgvcmb2LnAkRn3mjPvSw7Z9jeqoX
 cf1LDI3CtR8BoNqhu/7XNnPUeWzLQ0eukdm9uufGZqEwAENW82EDnEZucelP1gDX+qvQ
 WKXGiT2xhdNGQyTccm5oxxKhx3G7iIQYhT7PvvluAxMRy0V9Antlyq6wUSh0AIEbHDlF
 ixCA==
X-Gm-Message-State: AG10YOQUy7LXyWxGhH1Qk/XZU2cRU+KtFCdSYzgeTlUH7quCRF6HsokHDp2zDcFzdfEegQ==
X-Received: by 10.98.71.15 with SMTP id u15mr24897208pfa.161.1455968281275;
 Sat, 20 Feb 2016 03:38:01 -0800 (PST)
Received: from betelgeuse.dkb.id.au
 (c122-106-239-94.belrs3.nsw.optusnet.com.au. [122.106.239.94])
 by smtp.gmail.com with ESMTPSA id 3sm23996859pfn.59.2016.02.20.03.37.59
 (version=TLSv1/SSLv3 cipher=OTHER);
 Sat, 20 Feb 2016 03:38:00 -0800 (PST)
Subject: Re: bug#22743: 25.0.91: set-quit-char does not work if emacs lacks a
 controlling tty
To: Eli Zaretskii <eliz@HIDDEN>
References: <56C7FA4A.1030605@HIDDEN> <83mvqvpvnm.fsf@HIDDEN>
From: Duncan Burke <duncankburke@HIDDEN>
Message-ID: <56C85014.4010002@HIDDEN>
Date: Sat, 20 Feb 2016 22:37:56 +1100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.6.0
MIME-Version: 1.0
In-Reply-To: <83mvqvpvnm.fsf@HIDDEN>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 22743
Cc: 22743 <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.7 (/)

On 20/02/16 20:40, Eli Zaretskii wrote:
 > I don't think this patch will work reliably, because the parts of code
 > you changed are not the whole picture.  C-g is supported implicitly
 > and explicitly in many more places.  Grep the Lisp sources for C-g to
 > see that.

I think it should be possible to rebind C-g. If it cannot be rebound, then
that is an exceptional wart which significantly compromises emacs'
configurability.

It is extremely common for lisp code, whether in emacs or an external 
package,
to make assumptions about default bindings. C-g is far from unique in this
respect and while it would be nice if emacs had a way of globally changing
these assumptions, this is an understood cost when one deviates 
significantly
from emacs defaults. I accept that changing something fundamental like this
requires scouring through lisp source and finding all the places this
assumption is made. Anything in lisp can be patched or configured at 
runtime,
so I am not particularly concerned about such issues.

This patch is required because in this specific instance an assumption 
is made
in the C code about the user's intended purpose of C-g, which has an 
effect in
a graphical frame (demonstrated by my example), but that cannot be 
configured
through lisp from a graphical frame.

 > That's documented in the doc string of set-quit-char, so this is by
 > design.  On a TTY, C-g triggers a signal, and Emacs uses a system API
 > to change the character which does that.  But on GUI frames, this is
 > not possible.

If this is the intended behaviour of set-quit-char, then how is one supposed
to set quit_char from a graphical frame? quit_char is demonstrably not
TTY-specific, so it should be configurable and I cannot see a better place
than set-quit-char.

 > FWIW, my NSHO is that we should deprecate set-quit-char and remove it
 > in a future Emacs version.  It is no longer reasonable to have a
 > feature that only works on text terminals.

Do you mean that quit_char should be removed entirely from the C code? 
Perhaps
that would be best, I do not know enough to have an informed
optinion. However, as long as quit_char exists I have a demonstrated need to
be able to configure it at runtime.




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

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


Received: (at 22743) by debbugs.gnu.org; 20 Feb 2016 09:40:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 20 04:40:39 2016
Received: from localhost ([127.0.0.1]:34584 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aX41n-0007Cr-Kw
	for submit <at> debbugs.gnu.org; Sat, 20 Feb 2016 04:40:39 -0500
Received: from eggs.gnu.org ([208.118.235.92]:60918)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <eliz@HIDDEN>) id 1aX41l-0007Cd-Qz
 for 22743 <at> debbugs.gnu.org; Sat, 20 Feb 2016 04:40:38 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1aX41d-0004uc-LO
 for 22743 <at> debbugs.gnu.org; Sat, 20 Feb 2016 04:40:32 -0500
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,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57760)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1aX41d-0004uY-Hp; Sat, 20 Feb 2016 04:40:29 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1183
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1aX41c-0000EG-OY; Sat, 20 Feb 2016 04:40:29 -0500
Date: Sat, 20 Feb 2016 11:40:13 +0200
Message-Id: <83mvqvpvnm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Duncan Burke <duncankburke@HIDDEN>
In-reply-to: <56C7FA4A.1030605@HIDDEN> (message from Duncan Burke on Sat,
 20 Feb 2016 16:31:54 +1100)
Subject: Re: bug#22743: 25.0.91: set-quit-char does not work if emacs lacks a
 controlling tty
References: <56C7FA4A.1030605@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: 22743
Cc: 22743 <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: Duncan Burke <duncankburke@HIDDEN>
> Date: Sat, 20 Feb 2016 16:31:54 +1100
> 
> I have heavily customised keybindings on a dvorak layout and this 
> necessitates
> rebinding quit away from its default value of C-g.
> 
> I have rebound C-g in keymaps where it is already defined (such as 
> global-map,
> minibuffer-local-map and query-replace-map), and have found this to work in
> most cases with one major issue in flyspell-mode.
> 
> flyspell-post-command-hook calls flyspell-check-word-p, which calls sit-for,
> which ultimately calls read_char in keyboard.c.
> 
> quit_char in keyboard.c is by default set to ?\C-g and as a consequence in
> flyspell-mode if C-g is pressed immediately after entering some text a 
> quit is
> signalled rather than running the command bound to C-g.
> 
> set-quit-char should be able to change quit_char to my desired value of 
> ?\C-p,
> however I run emacs in a graphical window and set-quit-char silently does
> nothing if emacs does not have a controlling tty.

That's documented in the doc string of set-quit-char, so this is by
design.  On a TTY, C-g triggers a signal, and Emacs uses a system API
to change the character which does that.  But on GUI frames, this is
not possible.

> I have attached a patch that changes the behaviour of set-quit-char so that
> quit_char is set even if emacs does not have a controlling tty.

I don't think this patch will work reliably, because the parts of code
you changed are not the whole picture.  C-g is supported implicitly
and explicitly in many more places.  Grep the Lisp sources for C-g to
see that.

FWIW, my NSHO is that we should deprecate set-quit-char and remove it
in a future Emacs version.  It is no longer reasonable to have a
feature that only works on text terminals.




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

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


Received: (at 22743) by debbugs.gnu.org; 20 Feb 2016 08:04:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 20 03:04:12 2016
Received: from localhost ([127.0.0.1]:34520 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aX2WS-0004vH-6F
	for submit <at> debbugs.gnu.org; Sat, 20 Feb 2016 03:04:12 -0500
Received: from mail-pf0-f182.google.com ([209.85.192.182]:32835)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <jwiegley@HIDDEN>) id 1aX2WR-0004v4-3U
 for 22743 <at> debbugs.gnu.org; Sat, 20 Feb 2016 03:04:11 -0500
Received: by mail-pf0-f182.google.com with SMTP id q63so63956674pfb.0
 for <22743 <at> debbugs.gnu.org>; Sat, 20 Feb 2016 00:04:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:in-reply-to:date:message-id:references
 :user-agent:reply-to:mime-version:content-type;
 bh=uLpwb0w6jdBO4S0EdeAagwePx9bEJfXpt+RxJkzxe5c=;
 b=BuTrQeXEiZO33+BkHTLmzP4h8Ryman9mXdwvs5cD3MiQI+xCDwvmncfWVEf590Js9I
 3bSmkWNavqo4Ru3akXz9jaO7xYI0IrHPWxjczLtli/mfwS1dzmYmNwiRYD5EsR8IvtcD
 yh34pgU/d+bHDcIvCullCC1TjL3yaWvj5NHeM+3/ONpaX+ZFBcW7n0CwPG+7oDxe3075
 StPF/9mHnDd9OWSKbfhT2KDrlSqTIj0wx/dgFNKJ8ZY1pq1eFgi9nZmOVSzMNkR/+NJZ
 76k5wvlJivj1ZQWq5eksQUlx9CHjIGpbWcWh4RyVX2iQW1YCtX8rK7t5eTbXxMkqbEv5
 Ljag==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id
 :references:user-agent:reply-to:mime-version:content-type;
 bh=uLpwb0w6jdBO4S0EdeAagwePx9bEJfXpt+RxJkzxe5c=;
 b=HHE+84DVulbcaNzo1BK3utbIH0RU+VP+/e52tKpriBoMsQvYCearHjueimTK+M7dOX
 tMCyDXKOB8DByfARRWmyZJVsyBAO07E1Oxa4rq2R1thdAAwcviXmrTZIQsy5DZdmcdX1
 KbAclB3DgJIhOnJ0gGfdRXK5usXMT5sg3fuNfMeI40fEYI00/X6gWQIUIpKBYZL28X+p
 jZcmOHXQZaOyZ8gyppcRp17gVvwyQKFQwVavapS3H7+fxg37nJlG6zfDiTcqUFoShOTu
 oIQfertA199jde8KBtPahiMMIlcx2fuBA7uFDLpYuLqtZJtjL/EDoSWUpHfso5dVp+nN
 HY7w==
X-Gm-Message-State: AG10YOQ34R+5M5y+/7zP0q5EEDvhF4OnYftzNZ9jU6jeVr1gRPwxrKHYlVzjfAxT9E0u7Q==
X-Received: by 10.98.80.206 with SMTP id g75mr24009993pfj.127.1455955445734;
 Sat, 20 Feb 2016 00:04:05 -0800 (PST)
Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net.
 [76.234.68.79])
 by smtp.gmail.com with ESMTPSA id ah10sm22720934pad.23.2016.02.20.00.04.03
 (version=TLS1 cipher=AES128-SHA bits=128/128);
 Sat, 20 Feb 2016 00:04:04 -0800 (PST)
From: John Wiegley <jwiegley@HIDDEN>
X-Google-Original-From: "John Wiegley" <johnw@HIDDEN>
Received: by Vulcan.local (Postfix, from userid 501)
 id B0881130DC097; Sat, 20 Feb 2016 00:04:02 -0800 (PST)
To: Duncan Burke <duncankburke@HIDDEN>
Subject: Re: bug#22743: 25.0.91: set-quit-char does not work if emacs lacks a
 controlling tty
In-Reply-To: <56C7FA4A.1030605@HIDDEN> (Duncan Burke's message of "Sat, 20
 Feb 2016 16:31:54 +1100")
Date: Sat, 20 Feb 2016 00:04:01 -0800
Message-ID: <m21t87dczy.fsf@HIDDEN>
References: <56C7FA4A.1030605@HIDDEN>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 22743
Cc: 22743 <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: John Wiegley <johnw@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

>>>>> Duncan Burke <duncankburke@HIDDEN> writes:

> I have heavily customised keybindings on a dvorak layout and this
> necessitates rebinding quit away from its default value of C-g.

Hi Duncan,

I'm also a Dvorak user of many years; I find C-g to be quite convenient,
actually; why did you need to rebind it?  (I ask mainly out of curiosity).

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2




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

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


Received: (at submit) by debbugs.gnu.org; 20 Feb 2016 06:57:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 20 01:57:32 2016
Received: from localhost ([127.0.0.1]:34473 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aX1Tv-0008Cd-Or
	for submit <at> debbugs.gnu.org; Sat, 20 Feb 2016 01:57:32 -0500
Received: from eggs.gnu.org ([208.118.235.92]:37496)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <duncankburke@HIDDEN>) id 1aX09M-000656-CU
 for submit <at> debbugs.gnu.org; Sat, 20 Feb 2016 00:32:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <duncankburke@HIDDEN>) id 1aX09F-00062i-Uk
 for submit <at> debbugs.gnu.org; Sat, 20 Feb 2016 00:32:07 -0500
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,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:41148)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <duncankburke@HIDDEN>) id 1aX09F-00062e-SC
 for submit <at> debbugs.gnu.org; Sat, 20 Feb 2016 00:32:05 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56691)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <duncankburke@HIDDEN>) id 1aX09E-0002MG-Oq
 for bug-gnu-emacs@HIDDEN; Sat, 20 Feb 2016 00:32:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <duncankburke@HIDDEN>) id 1aX099-00061l-Q7
 for bug-gnu-emacs@HIDDEN; Sat, 20 Feb 2016 00:32:04 -0500
Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:36424)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <duncankburke@HIDDEN>) id 1aX099-00061Z-F2
 for bug-gnu-emacs@HIDDEN; Sat, 20 Feb 2016 00:31:59 -0500
Received: by mail-pa0-x22b.google.com with SMTP id yy13so61414342pab.3
 for <bug-gnu-emacs@HIDDEN>; Fri, 19 Feb 2016 21:31:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=to:from:subject:message-id:date:user-agent:mime-version
 :content-type; bh=hCr7lnjlBMCRg2I+hlPztmRetg+R+T3pgR2tCd6yXmM=;
 b=pgSnYhi4GsgkT5BclOJKd6cdh1lAruep65LLeEswsoeSyc3QgJ2JgksDbCTz/7jemf
 s0rIypy0Rf7qOI8wRppD78FGYvYErsE3wKtv4VNcC/vfwqe4bQaiznh6sJYEAl39r1Bs
 /WIDYIP3ki2XEvnuE7HQqdQmp95BF6iNP119bp/yOg/lo8CJ29iDnmJQC11EcM5vMsCC
 nES7FLqDgykGSDLu+F9xOOHKU7t6WsZks/z3gN9sputkS2euVGvjTUn+xfMceZbqHWYd
 y9Yb0mpp5gJ7TefAB+h0Ekj9TXfzZ9YMr9L08sDtP+ZcomUUhWudrE1lUN1hA0Sj/U3f
 mxdw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:to:from:subject:message-id:date:user-agent
 :mime-version:content-type;
 bh=hCr7lnjlBMCRg2I+hlPztmRetg+R+T3pgR2tCd6yXmM=;
 b=E/8wElh5vQiPWS9Ptcr5d1Zg7fUMAoc+yVlsZ0VOgYWWcIRMqvQeuUjcTjDNMkWoeB
 V0yae1PBQ+bHqTfjL2V2r1N1yX20q3S2h+B9YMNYMVouZYEaMmacZ3eEOSCtyftz7Dey
 q+dhbViGEJjayJTYOkagClxiHCmg8/VCZojPWcoT7trqOVaFBPVCw6KGWPUBLsnU6m94
 Hmrz5Ynn3ZMZntdHUZXX5yV4PbbGqhzJthLHBRvDoIwWJtBsU3RifE3MM9wo2UKjt6QM
 eAP1+OhVnd+zzNuoyFlQ2CbVvnB8uwSkEZKW+YNh3Lpy41pCW2UMAZj5eI/LxBjZtuUR
 xu3g==
X-Gm-Message-State: AG10YORecJmZpnywwokZ1Y50/46jIkLssLGQZnHmzjmCvtIEIE8WoX1U+WwJceWcD+YVlQ==
X-Received: by 10.66.141.11 with SMTP id rk11mr23601376pab.75.1455946318355;
 Fri, 19 Feb 2016 21:31:58 -0800 (PST)
Received: from betelgeuse.dkb.id.au
 (c122-106-239-94.belrs3.nsw.optusnet.com.au. [122.106.239.94])
 by smtp.gmail.com with ESMTPSA id 195sm21479648pfa.5.2016.02.19.21.31.56
 for <bug-gnu-emacs@HIDDEN> (version=TLSv1/SSLv3 cipher=OTHER);
 Fri, 19 Feb 2016 21:31:57 -0800 (PST)
To: bug-gnu-emacs@HIDDEN
From: Duncan Burke <duncankburke@HIDDEN>
Subject: 25.0.91: set-quit-char does not work if emacs lacks a controlling tty
Message-ID: <56C7FA4A.1030605@HIDDEN>
Date: Sat, 20 Feb 2016 16:31:54 +1100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.6.0
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------070205020301080304000601"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
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.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 20 Feb 2016 01:57:31 -0500
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.0 (----)

This is a multi-part message in MIME format.
--------------070205020301080304000601
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

I have heavily customised keybindings on a dvorak layout and this 
necessitates
rebinding quit away from its default value of C-g.

I have rebound C-g in keymaps where it is already defined (such as 
global-map,
minibuffer-local-map and query-replace-map), and have found this to work in
most cases with one major issue in flyspell-mode.

flyspell-post-command-hook calls flyspell-check-word-p, which calls sit-for,
which ultimately calls read_char in keyboard.c.

quit_char in keyboard.c is by default set to ?\C-g and as a consequence in
flyspell-mode if C-g is pressed immediately after entering some text a 
quit is
signalled rather than running the command bound to C-g.

set-quit-char should be able to change quit_char to my desired value of 
?\C-p,
however I run emacs in a graphical window and set-quit-char silently does
nothing if emacs does not have a controlling tty.


To reproduce this issue in emacs 25.0.91.7 with emacs -Q in a graphical
window:

(define-key global-map [?\C-g] 'backward-delete-char)
(define-key global-map [?\C-p] 'keyboard-quit)
(set-quit-char ?\C-p)

;; observe that quit_char is unchanged from original value of ?\C-g
(current-input-mode)


By running flyspell mode, typing something and pressing C-g it can be 
observed
that backward-delete-char is not run as would be expected.

I have attached a patch that changes the behaviour of set-quit-char so that
quit_char is set even if emacs does not have a controlling tty.

--------------070205020301080304000601
Content-Type: text/x-patch;
 name="0001-Fix-set-quit-char-when-there-s-no-controlling-tty.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0001-Fix-set-quit-char-when-there-s-no-controlling-tty.patch"

From e33022f19c91012a9f2f158daa9e29cc2fbb79c5 Mon Sep 17 00:00:00 2001
From: Duncan Burke <duncankburke@HIDDEN>
Date: Sat, 20 Feb 2016 00:33:58 +1100
Subject: [PATCH] Fix set-quit-char when there's no controlling tty

set-quit-char currently does nothing if get_named_terminal("/dev/tty")
is NULL. However it is useful to be able to set quit_char when in a
graphical window as this allows it to be bound to something other than
C-g in an alternate keybinding setup.

This patch allows quit_char to be set when there is no controlling
tty. quit_char is masked to 7 bits as the 8th bit is not used for the
meta modifier in X.
---
 src/keyboard.c | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/src/keyboard.c b/src/keyboard.c
index 546c012..f3ce4b1 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -10557,24 +10557,29 @@ See also `current-input-mode'.  */)
   struct terminal *t = get_named_terminal ("/dev/tty");
   struct tty_display_info *tty;
 
-  if (!t)
-    return Qnil;
-  tty = t->display_info.tty;
-
   if (NILP (quit) || !INTEGERP (quit) || XINT (quit) < 0 || XINT (quit) > 0400)
     error ("QUIT must be an ASCII character");
 
+  if (t)
+    {
+      tty = t->display_info.tty;
 #ifndef DOS_NT
-  /* this causes startup screen to be restored and messes with the mouse */
-  reset_sys_modes (tty);
+      /* this causes startup screen to be restored and messes with the mouse */
+      reset_sys_modes (tty);
 #endif
 
-  /* Don't let this value be out of range.  */
-  quit_char = XINT (quit) & (tty->meta_key == 0 ? 0177 : 0377);
+      /* Don't let this value be out of range.  */
+      quit_char = XINT (quit) & (tty->meta_key == 0 ? 0177 : 0377);
 
 #ifndef DOS_NT
-  init_sys_modes (tty);
+      init_sys_modes (tty);
 #endif
+    }
+  else
+    {
+      /* No associated TTY, accept 7-bit ASCII characters */
+      quit_char = XINT (quit) & 0177;
+    }
 
   return Qnil;
 }
-- 
2.7.0


--------------070205020301080304000601--




Acknowledgement sent to Duncan Burke <duncankburke@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#22743; 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: Mon, 25 Nov 2019 12:00:02 UTC

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