From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Bob Floyd" Newsgroups: gmane.emacs.bugs Subject: bug#45617: loses the edit region. Works in 23.3, broke in 26.3 Date: Thu, 28 Jan 2021 13:32:00 -0800 Message-ID: <004e01d6f5bd$09ab8cb0$1d02a610$@net> References: <000001d6e16c$984bcb70$c8e36250$@net> <87k0sgirr0.fsf@mail.linkov.net> <002101d6eadc$e816a070$b843e150$@net> <87k0sezj07.fsf@mail.linkov.net> <000c01d6eb68$f3f675f0$dbe361d0$@net> <877do8eull.fsf@mail.linkov.net> <000401d6ef83$32407e50$96c17af0$@net> <87czxyy5sz.fsf@mail.linkov.net> <009c01d6f0e4$7cdaeba0$7690c2e0$@net> <874kj7d1kd.fsf@mail.linkov.net> <002e01d6f1b2$1f2290c0$5d67b240$@net> <87eeiba4jo.fsf@mail.linkov.net> <006101d6f291$2b537dc0$81fa7940$@net> <87ft2p1fcl.fsf@mail.linkov.net> <006c01d6f345$c82aa7e0$587ff7a0$@net> <87im7ku9t2.fsf@mail.linkov.net> <000301d6f351$1275aa10$3760fe30$@net> <875z3ku75k.fsf@mail.linkov.net> <000c01d6f37b$0b1ec060$215c4120$@net> <87blda7ljp.fsf@mail.linkov.net> <005401d6f593$1845e600$48d1b200$@net> <87bld9c6ym.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15501"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45617@debbugs.gnu.org To: "'Juri Linkov'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 28 22:34:32 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5Evv-0003rX-JB for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 22:34:31 +0100 Original-Received: from localhost ([::1]:39108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5Evu-000529-Gw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jan 2021 16:34:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5EuU-0004Ya-CI for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 16:33:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5EuU-0003Hi-3o for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 16:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5EuT-0005DW-RF for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 16:33:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Bob Floyd" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jan 2021 21:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45617 X-GNU-PR-Package: emacs Original-Received: via spool by 45617-submit@debbugs.gnu.org id=B45617.161186954320010 (code B ref 45617); Thu, 28 Jan 2021 21:33:01 +0000 Original-Received: (at 45617) by debbugs.gnu.org; 28 Jan 2021 21:32:23 +0000 Original-Received: from localhost ([127.0.0.1]:50458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5Etr-0005Cg-I7 for submit@debbugs.gnu.org; Thu, 28 Jan 2021 16:32:23 -0500 Original-Received: from resqmta-po-06v.sys.comcast.net ([96.114.154.165]:34382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5Etp-0005CT-9i for 45617@debbugs.gnu.org; Thu, 28 Jan 2021 16:32:22 -0500 Original-Received: from resomta-po-10v.sys.comcast.net ([96.114.154.234]) by resqmta-po-06v.sys.comcast.net with ESMTP id 5Ao1lZEx6p9M95EtjluMcl; Thu, 28 Jan 2021 21:32:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1611869535; bh=BSM8u2JvoUKg3y3h4aDmEkIhWZZVjytMIapND2AYJaI=; h=Received:Received:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type; b=qyx4cZmpD4JbbhjdEffaypw3sz5/b/s2BUWsV4ICZG7zHH1abeRHbXfIaI6OBF8PP zgN6FRwl9ztNw03RBxlc7ln8Nr1lg886ztJcW4RKV/T3eNnpQOsM5LVwkqV2yuF6br eIocRmlbTkAZSSSgMtniOcjEKRzW6IhA7jigALm5KWUMw0uDD8T9HjBcUUz6BNw9sB sSjDzEBS2WmuAltg2OILQmjM3X9rVNclQ9tjhWTZiXXM6VMB1GA+TcmUP4QmRz/8kS DyNYu1q5C8NSnaJ2R0xdGOCrmD4hktsXCfSj75KGj4Z+ptPQ/YH7qxpJIzkX7jFnUc FjDeURz6eAI+A== Original-Received: from Cache ([IPv6:2601:647:6100:3b1c::87]) by resomta-po-10v.sys.comcast.net with ESMTPA id 5EtXlSaeJJ75U5EthlSJlB; Thu, 28 Jan 2021 21:32:14 +0000 X-Xfinity-VMeta: sc=-100.00;st=legit In-Reply-To: <87bld9c6ym.fsf@mail.linkov.net> X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us Thread-Index: Adb1p16hcaDVXdv3T8ikxpng2hRQJQAE/IaA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198826 Archived-At: I added query-replace-read-argsX to my .emacs file and changed the caller. Several trys and it appears to be working! *Messages*: Mark set region: 6336 6582 Mark set Replaced 3 occurrences Mark set region: 6337 6582 Mark set Replaced 3 occurrences Mark set region: 6343 6582 Mark set Replaced 3 occurrences Mark set region: 6336 6582 Mark set Replaced 3 occurrences So it looks to me like the problem has something to do with 'c:/Program Files/Emacs-26.3/share/emacs/26.3/lisp/replace.elc' not being loaded, even when I run '"C:\Program Files\Emacs-26.3\bin\runemacs.exe" -Q'. Correct? -----Original Message----- From: Juri Linkov [mailto:juri@linkov.net] Sent: Thursday, January 28, 2021 10:42 AM To: Bob Floyd Cc: 'Eli Zaretskii'; 45617@debbugs.gnu.org Subject: Re: bug#45617: loses the edit region. Works in 23.3, broke in 26.3 > Good idea. I placed this query-replaceX in my .emacs: Thanks. > Here is the *Messages* buffer beginning with the (1) select region: > > Mark set > region: 6576 6582 This means that the fixed function query-replace-read-args is not loaded. > Mark set > Replaced 1 occurrence > Auto-saving...done > Mark set > > What would you like me to do next? I'd recommend you to place the fixed function query-replace-read-args in your .emacs the same way as you placed query-replaceX. If you want, you can rename it, then the caller should be renamed as well. Or you could try to place it in .emacs without renaming: (defun query-replace-read-args (prompt regexp-flag &optional noerror) (unless noerror (barf-if-buffer-read-only)) (save-mark-and-excursion (let* ((from (query-replace-read-from prompt regexp-flag)) (to (if (consp from) (prog1 (cdr from) (setq from (car from))) (query-replace-read-to from prompt regexp-flag)))) (list from to (or (and current-prefix-arg (not (eq current-prefix-arg '-))) (and (plist-member (text-properties-at 0 from) 'isearch-regexp-function) (get-text-property 0 'isearch-regexp-function from))) (and current-prefix-arg (eq current-prefix-arg '-))))))