From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#20687: 25.0.50; `perform-replace' should invoke a key that you have bound in `query-replace-map' Date: Tue, 2 Jun 2015 21:39:32 -0700 (PDT) Message-ID: References: <890ac68c-1c71-49c7-9e60-45afba90d74a@default> <87zj4hsr90.fsf_-_@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1433306430 23273 80.91.229.3 (3 Jun 2015 04:40:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2015 04:40:30 +0000 (UTC) Cc: 20687@debbugs.gnu.org To: Kaushal , Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 03 06:40:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z00TN-00087e-0Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jun 2015 06:40:13 +0200 Original-Received: from localhost ([::1]:33445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z00TM-000647-Ge for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jun 2015 00:40:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z00TI-00063z-Vk for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 00:40:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z00TE-0001nN-Sx for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 00:40:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z00TE-0001mn-QF for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 00:40:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z00TE-0003Op-6C for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 00:40:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Jun 2015 04:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20687-submit@debbugs.gnu.org id=B20687.143330638213035 (code B ref 20687); Wed, 03 Jun 2015 04:40:03 +0000 Original-Received: (at 20687) by debbugs.gnu.org; 3 Jun 2015 04:39:42 +0000 Original-Received: from localhost ([127.0.0.1]:38115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z00Sr-0003OB-Pa for submit@debbugs.gnu.org; Wed, 03 Jun 2015 00:39:42 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:17294) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z00Sp-0003Nu-JC for 20687@debbugs.gnu.org; Wed, 03 Jun 2015 00:39:40 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t534dXjM012468 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 3 Jun 2015 04:39:33 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t534dXGV024204 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 3 Jun 2015 04:39:33 GMT Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t534dX2L008484; Wed, 3 Jun 2015 04:39:33 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103530 Archived-At: > I tested this out and the M-c and M-r bindings work great. It now > also gives clear info on what the user should expect after that > binding is used. Please give it a try. I have still kept this line >=20 > =A0(def (call-interactively def)) ; User-defined key, invoke it. >=20 > as it could be useful to bind any other function from outside > that does not need internal variables. 1. I'm OK with whatever you guys come up with. Thanks for working on this. 2. I tried it only a little. When I tried `M-r': * If the replacement string had uppercase chars then I always got the same message, which was very long - too long to read in the short time it was displayed. Could we shorten that message, please? And could we maybe have it logged to *Messages*, so that if someone doesn't have time to read it s?he can look it up? * If the replacement string had no uppercase chars then I always got the same message (about case-fold-search being nil). What is `M-r' really supposed to do? I don't see how it is a toggle, if repeating it always gives the same message, given the same replacement string. Can you describe what the toggling or cycling among states is supposed to do/mean? 3. Wrt this:=20 I have still kept this line (def (call-interactively def)) ; User-defined key, invoke it. as it could be useful to bind any other function from outside that does not need internal variables. I think Juri is right, that it should be the following, because `lookup-key' can return a number if the key is too long: ((commandp def t) ; User-defined key, invoke it. (call-interactively def)) 4. If one of you could replace the paragraphs of the doc that I mentioned by just a statement that search is controlled by `case-fold-search', that would be good. You could then add that you can toggle this using `M-c' etc. IOW, (1) those paragraphs are useless, and (2) now we have something more to say about case sensitivity.