From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Rankin Newsgroups: gmane.emacs.bugs Subject: bug#27634: 25.2.1; C-g does not quit register-read-with-preview Date: Tue, 11 Jul 2017 15:07:43 +1000 Message-ID: <3D7307DF-FB47-49FF-AEA9-67659E12821A@paulwrankin.com> References: <1499659134.3804557.1035526184.45B0CA20@webmail.messagingengine.com> <87h8ykdcmx.fsf@calancha-pc> <1499671255.3837111.1035640480.1DBD693E@webmail.messagingengine.com> <83shi4i5ma.fsf@gnu.org> <1499746462.2451911.1036820704.00105E22@webmail.messagingengine.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1499749695 3513 195.159.176.226 (11 Jul 2017 05:08:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Jul 2017 05:08:15 +0000 (UTC) Cc: 27634@debbugs.gnu.org To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 11 07:08:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUnP3-0000T7-QO for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jul 2017 07:08:06 +0200 Original-Received: from localhost ([::1]:44232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUnP8-0008Jn-PM for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jul 2017 01:08:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUnP3-0008Je-NN for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 01:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUnP0-0004Bt-Jj for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 01:08:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58797) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUnP0-0004Bg-Fz for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 01:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dUnP0-0004Ov-7X for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 01:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Rankin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jul 2017 05:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27634 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27634-submit@debbugs.gnu.org id=B27634.149974966916895 (code B ref 27634); Tue, 11 Jul 2017 05:08:02 +0000 Original-Received: (at 27634) by debbugs.gnu.org; 11 Jul 2017 05:07:49 +0000 Original-Received: from localhost ([127.0.0.1]:33241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUnOn-0004OR-Dt for submit@debbugs.gnu.org; Tue, 11 Jul 2017 01:07:49 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:56057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUnOl-0004OJ-Rs for 27634@debbugs.gnu.org; Tue, 11 Jul 2017 01:07:48 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 761CF206B6; Tue, 11 Jul 2017 01:07:47 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Tue, 11 Jul 2017 01:07:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paulwrankin.com; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=nMeyOZ Q31YrC9AZitjL2DOhZZVnNBoIs39/CB2VUnRA=; b=fgfS3Jd7gIy4gHFeny+hfD QK8VfsxUKhIofrV+8mfVTIirjIghRm7DydbL6AMzmEXcO/RUm6zux6rrlMZgGON9 srT2nUP9srksDE5PfdDUMFupGE1dyCrKpKJPPx2culvsXqCNnH38hTs9fbvfJZ00 jCGGgJceV52z7Imvylzh0polb1obuWzDji2LuYwGvRHDJSX+8BopKzSc/THCzx4y P5PgKpr5Gzz35cvFh0ShV2OEDv3PDgdkhVYme4V+U3yUbkRc/D+muJzO32Mk72M2 DW+ujqA8xVnUXX4MZ6LJdYHPQw0F3J8BWxV8ykJ3Popnc+HtnoaQr3IH0sqUqGgA == DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=nMeyOZQ31YrC9AZitjL2DOhZZVnNBoIs39/CB2VUnRA=; b=rBza+dTo IHJiXJ51lPkihA4+VQMiqRCwIQ/Pr7VMuILyMh2aNS9rSBqHtNlfJFBqphqNzLuN 6u4pxe0ciQTaRwErS2AOCOkzO++p3lJo7wZHOd/dDcGqGJ27AXcL46LnY9RHwzWQ cfqnH5wZQjFytCemVhialMHMAAe4uB+GOfm5SU9afwjW88Q+/1hbFZa6OqbGIjHV N/A5tc6nzVphInmhuYgYvoof+iJrLnVRpandXrJPZM/s3rRj6ju60CzhfdzEFwOW x1dsvpW0b1K2rBtpQGUS46Se5xTZTne613bhX9i/Qxl2E76jsBEjE6He8Qc+pTZf 555JAiQL6Pqtiw== X-ME-Sender: X-Sasl-enc: 6O8j2MKne1AGbyoOVYawEQDWc2rvsAdLhl9Hq6MWzf/q 1499749666 Original-Received: from [10.177.42.76] (pa49-197-236-169.pa.qld.optusnet.com.au [49.197.236.169]) by mail.messagingengine.com (Postfix) with ESMTPA id E26012424F; Tue, 11 Jul 2017 01:07:46 -0400 (EDT) X-Mailer: iPhone Mail (14F89) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134422 Archived-At: > On 11 Jul 2017, at 2:48 pm, Tino Calancha wrote:= >=20 >=20 >=20 >> On Tue, 11 Jul 2017, Paul Rankin wrote: >>=20 >> One overlooked thing about Tino's solution is that C-g is a keystroke and= keyboard-quit is a function, which obviously aren't necessarily equivalent.= What if the user remaps keyboard quit to "7"? > I thought about that, but i discarded because i think binding something > other that `keyboard-quit' to `C-g' is a misuse. The Emacs manual is full= > of mentions to `C-g' as `keyboard-quit'. > There is even the following remark in the tips section: >=20 > "don't bind a key sequence ending in @key{C-g}, since that > is commonly used to cancel a key sequence." >=20 > If a user want to ignore such kind of advice he/she should > not expect everything will work the same. I'm gonna do this just to mess with you =F0=9F=98=89 > Maybe we can fix this so that `register-read-with-preview' > will work with `C-g' bound to `my-cool-foo-command'; but we > cannot assure that no other Emacs part is affected because such > misguided `C-g' binding. We must encourage users to follow > good practices. While I think encouragement and enforcement are different things, the point a= bout C-g is more what if the user *also* binds keyboard-quit to "7". In this= case the user expects 7 to call keyboard-quit, not just C-g. Also as Eli said ESC ESC is supposed to keyboard quit I think. But main thing, as in life, better to look for what what you want than contr= ol for what you don't want.=