From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25482: 26.0.50; Allow setting `query-replace-from-to-separator` to nil Date: Fri, 20 Jan 2017 15:06:59 +0200 Message-ID: <8337gd7udo.fsf@gnu.org> References: <871svzzcn4.fsf@gmail.com> <83lgu76nuf.fsf@gnu.org> <87vatac0a2.fsf@gmail.com> <83a8am6u6q.fsf@gnu.org> <87y3y6ezge.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1484917724 15439 195.159.176.226 (20 Jan 2017 13:08:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2017 13:08:44 +0000 (UTC) Cc: 25482@debbugs.gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 20 14:08:40 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 1cUYvJ-0001BE-K1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jan 2017 14:08:09 +0100 Original-Received: from localhost ([::1]:54625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUYvO-0000h3-Gf for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jan 2017 08:08:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUYvE-0000ft-Uc for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2017 08:08:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUYvC-0001fa-Fb for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2017 08:08:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37911) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cUYvC-0001fV-Bw for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2017 08:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cUYvC-00069j-6j for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2017 08:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Jan 2017 13:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25482 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25482-submit@debbugs.gnu.org id=B25482.148491764623614 (code B ref 25482); Fri, 20 Jan 2017 13:08:02 +0000 Original-Received: (at 25482) by debbugs.gnu.org; 20 Jan 2017 13:07:26 +0000 Original-Received: from localhost ([127.0.0.1]:36110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUYuc-00068n-Ad for submit@debbugs.gnu.org; Fri, 20 Jan 2017 08:07:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUYua-00068c-W3 for 25482@debbugs.gnu.org; Fri, 20 Jan 2017 08:07:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUYuP-00019M-Vr for 25482@debbugs.gnu.org; Fri, 20 Jan 2017 08:07:19 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUYuP-00019G-SX; Fri, 20 Jan 2017 08:07:13 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3987 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cUYuO-0001FV-0J; Fri, 20 Jan 2017 08:07:13 -0500 In-reply-to: <87y3y6ezge.fsf@gmail.com> (message from Thierry Volpiatto on Fri, 20 Jan 2017 12:35:29 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:128274 Archived-At: > From: Thierry Volpiatto > Cc: 25482@debbugs.gnu.org > Date: Fri, 20 Jan 2017 12:35:29 +0100 > > With actual code: > > 1) Using (setq query-replace-from-to-separator " -> ") > is not working. > > 2) Using (customize-set-variable query-replace-from-to-separator " -> ") > is working but " -> " will not be a plain ascii string and will be added > to history. > > 3) Setting query-replace-from-to-separator to nil is not possible, apart perhaps > using a sexp that evaluate to nil, which is not obvious and in which > case do not add a prompt with a default value like in 24.5 (regression). > > With the patch: > > 1) and 2) are working and preserve the actual behavior, which is adding > "fromto" to history. > > 3) Is working and provide the exact behavior as 24.5, that is use a > plain ascii string " -> " as separator and do not add > "fromto" to history. > > The default setting is the same as the actual code, no change. Yes, I understand. I'm asking whether the (fixed) behavior, whereby using setq to change the value to " -> " would add the ASCII string " -> " to the minibuffer history, would be acceptable. If not, please tell why. Thanks.