From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 10 22:28:20 2012 Received: (at submit) by debbugs.gnu.org; 11 Jan 2012 03:28:20 +0000 Received: from localhost ([127.0.0.1]:53117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkorL-0007Zr-Ti for submit@debbugs.gnu.org; Tue, 10 Jan 2012 22:28:20 -0500 Received: from eggs.gnu.org ([140.186.70.92]:39804) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkorK-0007Zl-8Q for submit@debbugs.gnu.org; Tue, 10 Jan 2012 22:28:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rkoqw-000563-2U for submit@debbugs.gnu.org; Tue, 10 Jan 2012 22:27: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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:49876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rkoqv-00055z-U7 for submit@debbugs.gnu.org; Tue, 10 Jan 2012 22:27:54 -0500 Received: from eggs.gnu.org ([140.186.70.92]:51885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rkoqu-00055z-MW for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2012 22:27:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rkoqt-00055l-QT for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2012 22:27:52 -0500 Received: from caiajhbdcagg.dreamhost.com ([208.97.132.66]:55261 helo=homiemail-a62.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rkoqt-00055c-MJ for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2012 22:27:51 -0500 Received: from homiemail-a62.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a62.g.dreamhost.com (Postfix) with ESMTP id B9553634073 for ; Tue, 10 Jan 2012 19:27:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s=jidanni.org ; b=WKZEd0AtfReXft0khtsnpUsfGIqupsGdgWxKuNCFDOIqYwDAYyIbRl625BXM elbvVyW4tYpcKIZV4W/tpz2CIjd7CAVMkT5Mohss5Tbw/VnofDwGYHgsLqmswS6L RjPPYuiWGBDDzDrrLABc6yih269ffoPY4c9MWgr1OgV5kLU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=AzlK3E+chqlmhdwniu8CXZcDoz4=; b=TZeXz6RrrDxRGeLa 5rCQ7ju/vsJDYP3rZcuRKB9KWNPOOcL8Msl2P+e9Ai9cu2JCH0h7EuuHE3zP28O4 YKl/3eU9yz7rz0BQqmghU+NLNiJ8iJolLqVaJv26+6W5yxHhCQUVVo2RBrw4leuS rjUMZzkfFlSIXtKK0IaA60YQ0do= Received: from jidanni.org (218-163-19-153.dynamic.hinet.net [218.163.19.153]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a62.g.dreamhost.com (Postfix) with ESMTPSA id 633EE63406E for ; Tue, 10 Jan 2012 19:27:49 -0800 (PST) From: jidanni@jidanni.org To: bug-gnu-emacs@gnu.org Subject: zap-to-char should allow picking from history Date: Wed, 11 Jan 2012 11:27:46 +0800 Message-ID: <87fwfmsytp.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) zap-to-char should allow typing e.g., the up arrow to pick a recently used character, and then RET. Currently the only way is to type the actual character back in again! Even if hard to type CKS! Currently one gets 'Non-character input-event'. It should work something like one can maneuver at M-x occur's 'List lines matching regexp:' prompt. So: if a-z etc. is pressed, then no RET should be required. If any 'Non-character input-event' is pressed, then we should be able to manipulate from a history list of recently zapped chars. emacs-version "24.0.92.1" From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 14 20:24:54 2012 Received: (at 10477) by debbugs.gnu.org; 15 Jan 2012 01:24:54 +0000 Received: from localhost ([127.0.0.1]:57757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmEq5-0005BU-Ss for submit@debbugs.gnu.org; Sat, 14 Jan 2012 20:24:54 -0500 Received: from rcsinet15.oracle.com ([148.87.113.117]:16989) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmEq3-0005BL-4B for 10477@debbugs.gnu.org; Sat, 14 Jan 2012 20:24:52 -0500 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id q0F1O3Zt015575 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 15 Jan 2012 01:24:04 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q0F1O2Sn003499 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 15 Jan 2012 01:24:03 GMT Received: from abhmt104.oracle.com (abhmt104.oracle.com [141.146.116.56]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q0F1O2cg031335; Sat, 14 Jan 2012 19:24:02 -0600 Received: from dradamslap1 (/10.159.37.184) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 14 Jan 2012 17:24:02 -0800 From: "Drew Adams" To: , <10477@debbugs.gnu.org> References: <87fwfmsytp.fsf@jidanni.org> Subject: RE: bug#10477: zap-to-char should allow picking from history Date: Sat, 14 Jan 2012 17:23:55 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87fwfmsytp.fsf@jidanni.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: AczQESAwgWTdFzx8Qt6GZiM8MMo/1ADAjrCg X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.4F122AB4.0094,ss=1,re=0.000,fgs=0 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 10477 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) > zap-to-char should allow typing e.g., the up arrow to pick a > recently used character, and then RET. > > Currently the only way is to type the actual character back in again! > Even if hard to type CKS! > > Currently one gets 'Non-character input-event'. > > It should work something like one can maneuver at M-x occur's 'List > lines matching regexp:' prompt. > So: if a-z etc. is pressed, then no RET should be required. > > If any 'Non-character input-event' is pressed, then we should > be able to manipulate from a history list of recently zapped chars. This sounds similar to bug #1580 (which jidanni also filed), though the emphasis seems a bit different. --- FWIW, in Icicles, command `icicle-zap-to-char' uses function `icicle-read-char-maybe-completing' interactively, which is like `read-char' unless you hit a completing key (e.g. `TAB') or you hit `C-q'. If you hit a completing key, you complete a character name against either the names of your previously entered Unicode chars (default behavior) or all Unicode char names (depends on an option setting). It is function `icicle-read-char-by-name', a replacement for `read-char-by-name', which does the completion. It also populates the Unicode-char history list used by `icicle-read-char-maybe-completing'. You can read (and zap to) a TAB char by hitting C-q first: `C-q TAB'. You can read (and zap to) a `C-q' char by hitting `C-q C-q'. The idea is to try to make it easier to zap to Unicode (e.g. Chinese) chars that you have already inserted. The tradeoff is that zapping to a TAB or C-q char requires you to hit `C-q' first. (I don't really know whether completing against a char name is necessarily easier than "to type the actual character back in again". Completing against a history list instead of all Unicode chars as candidates, the thought was that it might be. Dunno.) From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 14 20:39:20 2012 Received: (at 10477) by debbugs.gnu.org; 15 Jan 2012 01:39:20 +0000 Received: from localhost ([127.0.0.1]:57761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmF43-0005XS-7P for submit@debbugs.gnu.org; Sat, 14 Jan 2012 20:39:19 -0500 Received: from caiajhbdcagg.dreamhost.com ([208.97.132.66]:45532 helo=homiemail-a1.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmF3z-0005XJ-Lt for 10477@debbugs.gnu.org; Sat, 14 Jan 2012 20:39:17 -0500 Received: from homiemail-a1.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTP id 2FD0934806A; Sat, 14 Jan 2012 17:38:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:cc:subject :references:date:message-id:mime-version:content-type; q=dns; s= jidanni.org; b=gwZuPUAUYc1Wf65iuwfhT2BTbQlI7LZvCQshAv04Ad5q1tLcl 2DR2wuly/sbIOQx01R5tEcwLOJo/9xwz17uTGrrgam5Q29mPkko8iN36uPV0Y1kn qCtEAWU9XVj3iTDhLaaDkj684NREe7fLtM7ly2XVJuRJv4lTFMjeFRPsQQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=n6F5+JecOzY7mQILtSbIPqu8yqk=; b=lUMYUne4yuo6J HlIlH8WU5Y/QzUsZfA8sWeMOiFjTHXq2xU2jxHs7Dj3NkshdWYAS98KyqLuESsnS L3BXnAlMoQ3QDR3daMfxwFH5r0uBGGRTnaOyYtj7fXFgBvmZ6EFdNbCzYjKKAlqD pRNIkCEclL52UANhAtic4jTtm80/bA= Received: from jidanni.org (218-163-20-219.dynamic.hinet.net [218.163.20.219]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTPSA id BB65334806C; Sat, 14 Jan 2012 17:38:28 -0800 (PST) From: jidanni@jidanni.org To: drew.adams@oracle.com Subject: Re: bug#10477: zap-to-char should allow picking from history References: Date: Sun, 15 Jan 2012 09:38:26 +0800 Message-ID: <87boq5g2y5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10477 Cc: 10477@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >>>>> "DA" == Drew Adams writes: DA> The idea is to try to make it easier to zap to Unicode (e.g. Chinese) chars that DA> you have already inserted. The tradeoff is that zapping to a TAB or C-q char DA> requires you to hit `C-q' first. Well pros with embedded control characters probably have other means of zapping. DA> (I don't really know whether completing against a char name is necessarily DA> easier than "to type the actual character back in again". Completing against a DA> history list instead of all Unicode chars as candidates, the thought was that it DA> might be. Dunno.) I don't know if "completion" is relevant in the case of just one character. All I know is hitting one or two up arrows and then RET is what the user would like to do. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 14 22:48:40 2012 Received: (at 10477) by debbugs.gnu.org; 15 Jan 2012 03:48:40 +0000 Received: from localhost ([127.0.0.1]:57792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmH5E-0008RA-1P for submit@debbugs.gnu.org; Sat, 14 Jan 2012 22:48:40 -0500 Received: from acsinet15.oracle.com ([141.146.126.227]:19699) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmH57-0008Qz-Vt for 10477@debbugs.gnu.org; Sat, 14 Jan 2012 22:48:38 -0500 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id q0F3ljwP030364 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 15 Jan 2012 03:47:45 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q0F3lixL008195 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 15 Jan 2012 03:47:45 GMT Received: from abhmt111.oracle.com (abhmt111.oracle.com [141.146.116.63]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q0F3li1p011749; Sat, 14 Jan 2012 21:47:44 -0600 Received: from dradamslap1 (/10.159.45.121) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 14 Jan 2012 19:47:43 -0800 From: "Drew Adams" To: References: <87boq5g2y5.fsf@jidanni.org> Subject: RE: bug#10477: zap-to-char should allow picking from history Date: Sat, 14 Jan 2012 19:47:36 -0800 Message-ID: <8503B34E31CE404EB24434CAFAA96B25@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AczTJmOXO2m1xdl4ROuQEDhDgnifcwAEVe3Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 In-reply-to: <87boq5g2y5.fsf@jidanni.org> X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.4F124C62.0009,ss=1,re=0.000,fgs=0 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 10477 Cc: 10477@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) > DA> The idea is to try to make it easier to zap to Unicode > DA> (e.g. Chinese) chars that you have already inserted. > DA> The tradeoff is that zapping to a TAB or C-q char > DA> requires you to hit `C-q' first. > > Well pros with embedded control characters probably have > other means of zapping. > > DA> (I don't really know whether completing against a char > DA> name is necessarily easier than "to type the actual > DA> character back in again". Completing against a > DA> history list instead of all Unicode chars as candidates, > DA> the thought was that it might be. Dunno.) > > I don't know if "completion" is relevant in the case of just > one character. All I know is hitting one or two up arrows > and then RET is what the user would like to do. You can do that as well in Icicles during completion. You have the choice: type chars to match candidates (in this case, Unicode char names) or cycle using, e.g., arrow keys. E.g., you can do this: M-z TAB ... From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 13 23:11:49 2019 Received: (at 10477) by debbugs.gnu.org; 14 Oct 2019 03:11:49 +0000 Received: from localhost ([127.0.0.1]:37410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJqlw-0004lo-Ur for submit@debbugs.gnu.org; Sun, 13 Oct 2019 23:11:49 -0400 Received: from [80.91.231.51] (port=46334 helo=quimby.gnus.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJqlu-0004la-VU for 10477@debbugs.gnu.org; Sun, 13 Oct 2019 23:11:47 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJqlp-0000ew-LF; Mon, 14 Oct 2019 05:11:44 +0200 From: Lars Ingebrigtsen To: jidanni@jidanni.org Subject: Re: bug#10477: zap-to-char should allow picking from history References: <87fwfmsytp.fsf@jidanni.org> Date: Mon, 14 Oct 2019 05:11:41 +0200 In-Reply-To: <87fwfmsytp.fsf@jidanni.org> (jidanni@jidanni.org's message of "Wed, 11 Jan 2012 11:27:46 +0800") Message-ID: <87zhi4rpg2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: jidanni@jidanni.org writes: > zap-to-char should allow typing e.g., the up arrow to pick a recently used > character, and then RET. > > Currently the only way is to type the actual character back in again! > Even if hard to type [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: jidanni@jidanni.org writes: > zap-to-char should allow typing e.g., the up arrow to pick a recently used > character, and then RET. > > Currently the only way is to type the actual character back in again! > Even if hard to type [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 10477 Cc: 10477@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) jidanni@jidanni.org writes: > zap-to-char should allow typing e.g., the up arrow to pick a recently used > character, and then RET. > > Currently the only way is to type the actual character back in again! > Even if hard to type CKS! > > Currently one gets 'Non-character input-event'. I've now implemented this in Emacs 27 -- it was more code than expected, so perhaps simple.el isn't the right place for it. On the other hand, `zap-to-char' is there, so perhaps that's the right place for it? Or it could go to subr-x.el with an autoload -- `zap-to-char' probably isn't the most used command ever, anyway, and I'm not sure `read-char-with-history' has much utility outside that command. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 13 23:11:51 2019 Received: (at control) by debbugs.gnu.org; 14 Oct 2019 03:11:51 +0000 Received: from localhost ([127.0.0.1]:37413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJqlz-0004m3-9A for submit@debbugs.gnu.org; Sun, 13 Oct 2019 23:11:51 -0400 Received: from [80.91.231.51] (port=46348 helo=quimby.gnus.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJqly-0004lv-1g for control@debbugs.gnu.org; Sun, 13 Oct 2019 23:11:50 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJqlv-0000f4-Bh for control@debbugs.gnu.org; Mon, 14 Oct 2019 05:11:49 +0200 Date: Mon, 14 Oct 2019 05:11:47 +0200 Message-Id: <87y2xorpfw.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #10477 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 10477 fixed close 10477 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 10477 fixed close 10477 27.1 quit Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) tags 10477 fixed close 10477 27.1 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 27 18:02:53 2019 Received: (at 10477) by debbugs.gnu.org; 27 Oct 2019 22:02:53 +0000 Received: from localhost ([127.0.0.1]:43603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iOqcf-0004rE-JM for submit@debbugs.gnu.org; Sun, 27 Oct 2019 18:02:53 -0400 Received: from dormouse.ash.relay.mailchannels.net ([23.83.222.50]:17420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iOqcb-0004ql-Qb for 10477@debbugs.gnu.org; Sun, 27 Oct 2019 18:02:50 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id D35655012D8; Sun, 27 Oct 2019 22:02:45 +0000 (UTC) Received: from pdx1-sub0-mail-a38.g.dreamhost.com (100-96-14-244.trex.outbound.svc.cluster.local [100.96.14.244]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 1E2125000AE; Sun, 27 Oct 2019 22:02:45 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a38.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Sun, 27 Oct 2019 22:02:45 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Macabre-Attack: 2b7f596c4d1fc883_1572213765348_3199576001 X-MC-Loop-Signature: 1572213765348:2356669347 X-MC-Ingress-Time: 1572213765348 Received: from pdx1-sub0-mail-a38.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a38.g.dreamhost.com (Postfix) with ESMTP id 925238C0A4; Sun, 27 Oct 2019 15:02:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=pc6O9gr6a+4OO33Unemt6xAq8O4=; b= q+wBRPjo0hwXwxx72ZRRmXuPTrUZKVrz2xwk1XI7llaSgV4z3A2KLY0aS2aiOymf hzRAZgjlvo8AB/CisAqCNJDHVuLg/X0TXm1LxPaS/T3qPuVeMVM527FQxgvf/S9i /FnlwsqyExAEg1kfgGJMgj5l6GRL810bYOSSfc0NfxY= Received: from mail.jurta.org (m91-129-98-153.cust.tele2.ee [91.129.98.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a38.g.dreamhost.com (Postfix) with ESMTPSA id 89CCB8B46F; Sun, 27 Oct 2019 15:02:39 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a38 From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#10477: zap-to-char should allow picking from history Organization: LINKOV.NET References: <87fwfmsytp.fsf@jidanni.org> <87zhi4rpg2.fsf@gnus.org> Date: Sun, 27 Oct 2019 23:30:43 +0200 In-Reply-To: <87zhi4rpg2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 14 Oct 2019 05:11:41 +0200") Message-ID: <8736fe874s.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10477 Cc: 10477@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> zap-to-char should allow typing e.g., the up arrow to pick a recently used >> character, and then RET. >> >> Currently the only way is to type the actual character back in again! >> Even if hard to type CKS! >> >> Currently one gets 'Non-character input-event'. > > I've now implemented this in Emacs 27 -- it was more code than expected, > so perhaps simple.el isn't the right place for it. On the other hand, > `zap-to-char' is there, so perhaps that's the right place for it? I tried typing the up arrow, but it fails with the error "Non-character input-event". Is this intentional? > Or it could go to subr-x.el with an autoload -- `zap-to-char' probably > isn't the most used command ever, anyway, and I'm not sure > `read-char-with-history' has much utility outside that command. Indeed, subr-x.el looks like a more suitable place. Another variant is create a new file for commands reading input with a name like read-x.el (or maybe minibuffer-x.el or prompt-x.el). Then put here `read-char-with-history', also all functions from lisp/emacs-lisp/map-ynp.el and lisp/emacs-lisp/rmc.el, maybe also read-char-choice from subr.el. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 27 18:14:54 2019 Received: (at 10477) by debbugs.gnu.org; 27 Oct 2019 22:14:54 +0000 Received: from localhost ([127.0.0.1]:43613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iOqoI-0005BO-2O for submit@debbugs.gnu.org; Sun, 27 Oct 2019 18:14:54 -0400 Received: from quimby.gnus.org ([80.91.231.51]:58602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iOqoG-0005BG-Q9 for 10477@debbugs.gnu.org; Sun, 27 Oct 2019 18:14:53 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iOqoA-0003D9-SR; Sun, 27 Oct 2019 23:14:49 +0100 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#10477: zap-to-char should allow picking from history References: <87fwfmsytp.fsf@jidanni.org> <87zhi4rpg2.fsf@gnus.org> <8736fe874s.fsf@mail.linkov.net> Date: Sun, 27 Oct 2019 23:14:46 +0100 In-Reply-To: <8736fe874s.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 27 Oct 2019 23:30:43 +0200") Message-ID: <874kztdeeh.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: >> I've now implemented this in Emacs 27 -- it was more code than expected, >> so perhaps simple.el isn't the right place for it. On the other hand, >> `zap-to-char' is there, so perhaps that's the ri [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10477 Cc: 10477@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: >> I've now implemented this in Emacs 27 -- it was more code than expected, >> so perhaps simple.el isn't the right place for it. On the other hand, >> `zap-to-char' is there, so perhaps that's the right place for it? > > I tried typing the up arrow, but it fails with the error > "Non-character input-event". Is this intentional? That's the way the command has always worked, so I didn't change that. >> Or it could go to subr-x.el with an autoload -- `zap-to-char' probably >> isn't the most used command ever, anyway, and I'm not sure >> `read-char-with-history' has much utility outside that command. > > Indeed, subr-x.el looks like a more suitable place. > > Another variant is create a new file for commands reading input > with a name like read-x.el (or maybe minibuffer-x.el or prompt-x.el). > Then put here `read-char-with-history', also all functions from > lisp/emacs-lisp/map-ynp.el and lisp/emacs-lisp/rmc.el, > maybe also read-char-choice from subr.el. Makes sense to me. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 27 18:36:00 2019 Received: (at 10477) by debbugs.gnu.org; 27 Oct 2019 22:36:00 +0000 Received: from localhost ([127.0.0.1]:43633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iOr8i-0005oR-8F for submit@debbugs.gnu.org; Sun, 27 Oct 2019 18:36:00 -0400 Received: from eastern.ash.relay.mailchannels.net ([23.83.222.55]:59633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iOr8f-0005oA-Bi for 10477@debbugs.gnu.org; Sun, 27 Oct 2019 18:35:58 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7A4522C12C2; Sun, 27 Oct 2019 22:35:53 +0000 (UTC) Received: from pdx1-sub0-mail-a92.g.dreamhost.com (100-96-92-150.trex.outbound.svc.cluster.local [100.96.92.150]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 122D62C0D41; Sun, 27 Oct 2019 22:35:53 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a92.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Sun, 27 Oct 2019 22:35:53 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Drop-Left: 604dce330dd96c6e_1572215753319_3663316486 X-MC-Loop-Signature: 1572215753319:1078524783 X-MC-Ingress-Time: 1572215753318 Received: from pdx1-sub0-mail-a92.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a92.g.dreamhost.com (Postfix) with ESMTP id 21118873CC; Sun, 27 Oct 2019 15:35:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=B/ydk8lOep33vi178satqpYUNT0=; b= HKzAsrWIjqVBbPZ7MQ7cYJi2JrQI03TOnU7iy3TNNMiK3QGpQH1Y3gNL4vaGK4S8 mLD+mS9HTOiHJRU+b/zoyaIkA6BpDq5+9E0notMaC3cSJyc4CFx+2W4IXfyHf4J1 FeW7eLKA2FzrMOZ6XbBwyiQsupGGHXn8rNm0oZzcniw= Received: from mail.jurta.org (m91-129-98-153.cust.tele2.ee [91.129.98.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a92.g.dreamhost.com (Postfix) with ESMTPSA id 49ACB8791E; Sun, 27 Oct 2019 15:35:45 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a92 From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#10477: zap-to-char should allow picking from history Organization: LINKOV.NET References: <87fwfmsytp.fsf@jidanni.org> <87zhi4rpg2.fsf@gnus.org> <8736fe874s.fsf@mail.linkov.net> <874kztdeeh.fsf@gnus.org> Date: Mon, 28 Oct 2019 00:34:55 +0200 In-Reply-To: <874kztdeeh.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 27 Oct 2019 23:14:46 +0100") Message-ID: <87o8y124xc.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10477 Cc: 10477@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>> I've now implemented this in Emacs 27 -- it was more code than expected, >>> so perhaps simple.el isn't the right place for it. On the other hand, >>> `zap-to-char' is there, so perhaps that's the right place for it? >> >> I tried typing the up arrow, but it fails with the error >> "Non-character input-event". Is this intentional? > > That's the way the command has always worked, so I didn't change that. I tried the up arrow because this is what OP asked to implement: "zap-to-char should allow typing e.g., the up arrow to pick a recently used character, and then RET." Using read-from-minibuffer would allow this for free. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 06:48:38 2019 Received: (at 10477) by debbugs.gnu.org; 28 Oct 2019 10:48:38 +0000 Received: from localhost ([127.0.0.1]:43923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP2Zi-0003cx-IE for submit@debbugs.gnu.org; Mon, 28 Oct 2019 06:48:38 -0400 Received: from quimby.gnus.org ([80.91.231.51]:38566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP2Zg-0003cl-7x for 10477@debbugs.gnu.org; Mon, 28 Oct 2019 06:48:36 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iP2Za-0006AN-R4; Mon, 28 Oct 2019 11:48:33 +0100 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#10477: zap-to-char should allow picking from history References: <87fwfmsytp.fsf@jidanni.org> <87zhi4rpg2.fsf@gnus.org> <8736fe874s.fsf@mail.linkov.net> <874kztdeeh.fsf@gnus.org> <87o8y124xc.fsf@mail.linkov.net> Date: Mon, 28 Oct 2019 11:48:30 +0100 In-Reply-To: <87o8y124xc.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 28 Oct 2019 00:34:55 +0200") Message-ID: <87r22xb0xt.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > I tried the up arrow because this is what OP asked to implement: > > "zap-to-char should allow typing e.g., the up arrow to pick a recently used > character, and then RET." Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10477 Cc: 10477@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > I tried the up arrow because this is what OP asked to implement: > > "zap-to-char should allow typing e.g., the up arrow to pick a recently used > character, and then RET." I wasn't aware that traversed the history -- I've always used `M-p'. But, yes, should work in zap-to-char, too, then. > Using read-from-minibuffer would allow this for free. How would you implement read-char-with-history using read-from-minibuffer? Rebind self-insert-command? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 19:00:57 2019 Received: (at 10477) by debbugs.gnu.org; 28 Oct 2019 23:00:57 +0000 Received: from localhost ([127.0.0.1]:46554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPE0P-00047z-FK for submit@debbugs.gnu.org; Mon, 28 Oct 2019 19:00:57 -0400 Received: from camel.birch.relay.mailchannels.net ([23.83.209.29]:23686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPE0N-00047m-5P for 10477@debbugs.gnu.org; Mon, 28 Oct 2019 19:00:55 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 9781E580DF7; Mon, 28 Oct 2019 23:00:53 +0000 (UTC) Received: from pdx1-sub0-mail-a29.g.dreamhost.com (100-96-18-10.trex.outbound.svc.cluster.local [100.96.18.10]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 226D1580D4B; Mon, 28 Oct 2019 23:00:53 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a29.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Mon, 28 Oct 2019 23:00:53 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Scare-Turn: 36ff3f77617d5c93_1572303653361_3111284806 X-MC-Loop-Signature: 1572303653361:4246964510 X-MC-Ingress-Time: 1572303653361 Received: from pdx1-sub0-mail-a29.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a29.g.dreamhost.com (Postfix) with ESMTP id CF96D9967C; Mon, 28 Oct 2019 16:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=1bTsnEFcrmcBuOzTtKZgckV33Ys=; b= DNP55DPCaPMr9fx1bP3za2LOEDQElbN4umbcFiiGIqqVsAOAOMM1T/kreti5fG8Y TFhY4B/QZ5ApUdDoRrI+Tj+TCx3ofUSUb0Yq3v/v+A62H7etmocmcWSbfG4x22rb mpe7dTR7gzG04aJMjRTGObi5ljuxlXJg9qX/WTk+GIw= Received: from mail.jurta.org (m91-129-101-77.cust.tele2.ee [91.129.101.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a29.g.dreamhost.com (Postfix) with ESMTPSA id 5AD8F98F8E; Mon, 28 Oct 2019 16:00:45 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a29 From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#10477: zap-to-char should allow picking from history Organization: LINKOV.NET References: <87fwfmsytp.fsf@jidanni.org> <87zhi4rpg2.fsf@gnus.org> <8736fe874s.fsf@mail.linkov.net> <874kztdeeh.fsf@gnus.org> <87o8y124xc.fsf@mail.linkov.net> <87r22xb0xt.fsf@gnus.org> Date: Tue, 29 Oct 2019 00:17:56 +0200 In-Reply-To: <87r22xb0xt.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 28 Oct 2019 11:48:30 +0100") Message-ID: <87h83stsyz.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10477 Cc: 10477@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> Using read-from-minibuffer would allow this for free. > > How would you implement read-char-with-history using > read-from-minibuffer? Rebind self-insert-command? Exactly, by rebinding self-insert-command: (defvar read-char-from-minibuffer-map (let ((map (make-sparse-keymap))) (set-keymap-parent map minibuffer-local-map) (define-key map [remap self-insert-command] (lambda () (interactive) (delete-minibuffer-contents) (insert (event-basic-type last-command-event)) (exit-minibuffer))) map)) (defun read-char-from-minibuffer (prompt) (read-from-minibuffer prompt nil read-char-from-minibuffer-map nil 'read-char-from-minibuffer-history)) (read-char-from-minibuffer "Please type a character: ") From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 29 07:33:00 2019 Received: (at 10477) by debbugs.gnu.org; 29 Oct 2019 11:33:01 +0000 Received: from localhost ([127.0.0.1]:46959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPPkC-0006HH-Hy for submit@debbugs.gnu.org; Tue, 29 Oct 2019 07:33:00 -0400 Received: from quimby.gnus.org ([80.91.231.51]:55052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPPkA-0006H9-AI for 10477@debbugs.gnu.org; Tue, 29 Oct 2019 07:32:58 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPPk5-0007wX-91; Tue, 29 Oct 2019 12:32:55 +0100 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#10477: zap-to-char should allow picking from history References: <87fwfmsytp.fsf@jidanni.org> <87zhi4rpg2.fsf@gnus.org> <8736fe874s.fsf@mail.linkov.net> <874kztdeeh.fsf@gnus.org> <87o8y124xc.fsf@mail.linkov.net> <87r22xb0xt.fsf@gnus.org> <87h83stsyz.fsf@mail.linkov.net> Date: Tue, 29 Oct 2019 12:32:52 +0100 In-Reply-To: <87h83stsyz.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 29 Oct 2019 00:17:56 +0200") Message-ID: <87o8xz23dn.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: >>> Using read-from-minibuffer would allow this for free. >> >> How would you implement read-char-with-history using >> read-from-minibuffer? Rebind self-insert-command? > > Exactly, by rebinding self [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10477 Cc: 10477@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: >>> Using read-from-minibuffer would allow this for free. >> >> How would you implement read-char-with-history using >> read-from-minibuffer? Rebind self-insert-command? > > Exactly, by rebinding self-insert-command: > > (defvar read-char-from-minibuffer-map > (let ((map (make-sparse-keymap))) > (set-keymap-parent map minibuffer-local-map) > (define-key map [remap self-insert-command] > (lambda () > (interactive) > (delete-minibuffer-contents) > (insert (event-basic-type last-command-event)) > (exit-minibuffer))) > map)) > > (defun read-char-from-minibuffer (prompt) > (read-from-minibuffer prompt nil > read-char-from-minibuffer-map nil > 'read-char-from-minibuffer-history)) > > (read-char-from-minibuffer "Please type a character: ") Hm, interesting. That indeed seems a lot better than the current read-char-with-history. (Minor tweak -- this returns a string, but should return a char.) And this presumably works with "complicated" input methods, too? Xim etc. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 29 19:02:05 2019 Received: (at 10477) by debbugs.gnu.org; 29 Oct 2019 23:02:05 +0000 Received: from localhost ([127.0.0.1]:48728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPaV3-00013x-62 for submit@debbugs.gnu.org; Tue, 29 Oct 2019 19:02:05 -0400 Received: from quimby.gnus.org ([80.91.231.51]:45684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPaV1-00013n-CB for 10477@debbugs.gnu.org; Tue, 29 Oct 2019 19:02:04 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPaUw-0003Lo-2l; Wed, 30 Oct 2019 00:02:00 +0100 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#10477: zap-to-char should allow picking from history References: <87fwfmsytp.fsf@jidanni.org> <87zhi4rpg2.fsf@gnus.org> <8736fe874s.fsf@mail.linkov.net> <874kztdeeh.fsf@gnus.org> <87o8y124xc.fsf@mail.linkov.net> <87r22xb0xt.fsf@gnus.org> <87h83stsyz.fsf@mail.linkov.net> Date: Wed, 30 Oct 2019 00:01:57 +0100 In-Reply-To: <87h83stsyz.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 29 Oct 2019 00:17:56 +0200") Message-ID: <87v9s7xije.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > Exactly, by rebinding self-insert-command: OK; I've taken your code and tweaked it a bit and used it to replace read-char-with-history. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10477 Cc: 10477@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > Exactly, by rebinding self-insert-command: OK; I've taken your code and tweaked it a bit and used it to replace read-char-with-history. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 29 20:01:22 2019 Received: (at 10477) by debbugs.gnu.org; 30 Oct 2019 00:01:22 +0000 Received: from localhost ([127.0.0.1]:48767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPbQP-0004hX-Om for submit@debbugs.gnu.org; Tue, 29 Oct 2019 20:01:22 -0400 Received: from chocolate.birch.relay.mailchannels.net ([23.83.209.35]:34635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPbQN-0004hN-FI for 10477@debbugs.gnu.org; Tue, 29 Oct 2019 20:01:20 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 088222C1D8F; Wed, 30 Oct 2019 00:01:18 +0000 (UTC) Received: from pdx1-sub0-mail-a3.g.dreamhost.com (100-96-45-192.trex.outbound.svc.cluster.local [100.96.45.192]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 955C12C1D18; Wed, 30 Oct 2019 00:01:17 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a3.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Wed, 30 Oct 2019 00:01:17 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Daffy-Turn: 0e57930b29fe0c0a_1572393677848_1590703468 X-MC-Loop-Signature: 1572393677848:1942408758 X-MC-Ingress-Time: 1572393677848 Received: from pdx1-sub0-mail-a3.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a3.g.dreamhost.com (Postfix) with ESMTP id D5D33817F9; Tue, 29 Oct 2019 17:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=QWKwZzg3x+GrZio2kTpZkpasqlA=; b= OcCQWmrN0Q7P3r8jKO7kdDiS+yp+SHJgcpEtQWw21A/+e/pMrbvjn13S9wycTa4/ 5MAglhjQB4jPRWmScJcrn9EgOCZgpE3D0/VCIo//ePGQgaDrRjRvUtVPBHJbVmJ3 TLVD2ASWXA3rGgvhdCtrDnIL9uhBtVpFxGHltajESM8= Received: from mail.jurta.org (m91-129-101-77.cust.tele2.ee [91.129.101.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a3.g.dreamhost.com (Postfix) with ESMTPSA id CB47581800; Tue, 29 Oct 2019 17:01:10 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a3 From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#10477: zap-to-char should allow picking from history Organization: LINKOV.NET References: <87fwfmsytp.fsf@jidanni.org> <87zhi4rpg2.fsf@gnus.org> <8736fe874s.fsf@mail.linkov.net> <874kztdeeh.fsf@gnus.org> <87o8y124xc.fsf@mail.linkov.net> <87r22xb0xt.fsf@gnus.org> <87h83stsyz.fsf@mail.linkov.net> <87v9s7xije.fsf@gnus.org> Date: Wed, 30 Oct 2019 02:00:34 +0200 In-Reply-To: <87v9s7xije.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 30 Oct 2019 00:01:57 +0100") Message-ID: <871ruvcdb1.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10477 Cc: 10477@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> Exactly, by rebinding self-insert-command: > > OK; I've taken your code and tweaked it a bit and used it to replace > read-char-with-history. I also renamed it to a better name: by analogy with read-from-minibuffer, and to hint that it relies on, the new name is read-char-from-minibuffer. From unknown Mon Jun 23 22:05:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 27 Nov 2019 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator