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: Sat, 2 Jan 2021 17:05:57 -0800 Message-ID: <000001d6e16c$984bcb70$c8e36250$@net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01D6E129.8A288B70" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6791"; mail-complaints-to="usenet@ciao.gmane.io" To: 45617@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 03 02:07:11 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 1kvrrT-0001fU-3j for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Jan 2021 02:07:11 +0100 Original-Received: from localhost ([::1]:50998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kvrrR-0001l6-O8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Jan 2021 20:07:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvrrK-0001ki-Li for bug-gnu-emacs@gnu.org; Sat, 02 Jan 2021 20:07:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kvrrK-0003H4-Ec for bug-gnu-emacs@gnu.org; Sat, 02 Jan 2021 20:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kvrrK-00028G-95 for bug-gnu-emacs@gnu.org; Sat, 02 Jan 2021 20:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Bob Floyd" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Jan 2021 01:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45617 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.16096359738138 (code B ref -1); Sun, 03 Jan 2021 01:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jan 2021 01:06:13 +0000 Original-Received: from localhost ([127.0.0.1]:33001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kvrqX-00027C-I3 for submit@debbugs.gnu.org; Sat, 02 Jan 2021 20:06:13 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:45128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kvrqV-00026y-BC for submit@debbugs.gnu.org; Sat, 02 Jan 2021 20:06:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvrqT-0001hH-1B for bug-gnu-emacs@gnu.org; Sat, 02 Jan 2021 20:06:10 -0500 Original-Received: from resqmta-po-04v.sys.comcast.net ([2001:558:fe16:19:96:114:154:163]:52120) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvrqL-0002yS-FQ for bug-gnu-emacs@gnu.org; Sat, 02 Jan 2021 20:06:07 -0500 Original-Received: from resomta-po-04v.sys.comcast.net ([96.114.154.228]) by resqmta-po-04v.sys.comcast.net with ESMTP id vrCFkMxU6bVMMvrqIkFeIV; Sun, 03 Jan 2021 01:05:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1609635958; bh=Qr6En1d+MpBa0JwRDzo5XmiRzh2oFcHFR3JU1cObxYQ=; h=Received:Received:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type; b=BBaS9OAFjo0YS0jhdKzWtoMPwGCvVHl8q+62mzlsTfnPFSIJzkkNadZTMx8rEJHTY 1WVaFk342LUi/Y0eCFHamlMa1vOBcSqBQwKj5Tjev+QZR6A1OjyMIIjVmCch8gMi51 OeGs3BcH/ggQYGnyo3tgLFuJ0NZgnH4m/RiHitpF9/G1t+CHA+gJW5yVbylsUmAeng WFYikCD9+6xA5h+QJ5/xnpvhsev/QWdYPIyCHLrXZGTE8P5QK5q4Yviz8BtnVARxNr eHUvDdt7zK1c0Y96wEToe99I1gstWv7jhBcVaedwNNkxrjjZZcBU4RztIqhOKb0Auy 2bqjN0YHvkHIg== Original-Received: from Cache ([IPv6:2601:647:6100:1480::9c05]) by resomta-po-04v.sys.comcast.net with ESMTPA id vrqGku1Iu5JK7vrqHkk3Rp; Sun, 03 Jan 2021 01:05:57 +0000 X-Xfinity-VMeta: sc=0.00;st=legit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdbhbJec5NV9sym9Qp+0CZ2+osTB3g== Content-Language: en-us Received-SPF: pass client-ip=2001:558:fe16:19:96:114:154:163; envelope-from=bobfloyd@comcast.net; helo=resqmta-po-04v.sys.comcast.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:197233 Archived-At: This is a multi-part message in MIME format. ------=_NextPart_000_0001_01D6E129.8A288B70 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Use this c++ test: main() { int _xx; _xx = _xx + 2; return _xx; } "query-replace" loses the edit region. Works in Emacs 23.3. Broke in GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29 1. Select region from line 2 '{' to line 8 '}' 2. Do "query-replace" to begin "Query replace in region" 3. Do Double-click left mouse to select '_xx' on line 3 -or- "mouse-drag-region" to select '_xx' on line 3 4. In "Query replace in region:" window do "mouse-yank-at-click" to insert '_xx'. 5. Via keyboard hit "Enter" key, now you see: "Query replace in region _xx with:" 6. Via keyboard type '_yy' and 'enter' "Query replace in region _xx with: _yy" 7. Nothing happens because the region in step (1) has been lost. It should ask to replace 4 '_xx's in the region. ------=_NextPart_000_0001_01D6E129.8A288B70 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Use this c++ = test:

main()

{

  = int         = _xx;

 

  _xx =3D _xx + 2;

 

  = return _xx;

}

 

"query-replace" loses the edit region. =

Works in Emacs 23.3. Broke in GNU = Emacs 26.3 (build 1, x86_64-w64-mingw32)

of 2019-08-29

 

1. Select = region from line 2 '{' to line 8 '}'

 

2. Do = "query-replace" to begin "Query replace in = region"

 

3. Do Double-click left mouse to select '_xx' on line = 3

   -or-

   <down-mouse-one> = "mouse-drag-region" to select '_xx' on line 3

 

4. In = "Query replace in region:" window do <mouse-2> = "mouse-yank-at-click"

   to insert '_xx'.

 

5. Via = keyboard hit "Enter" key, now you see:

   "Query replace in region _xx = with:"

 

6. Via keyboard type '_yy' and = 'enter'

"Query replace in region = _xx with: _yy"

 

7. Nothing = happens because the region in step (1) has been lost.

    It should ask to replace 4 = ‘_xx’s in the region.

------=_NextPart_000_0001_01D6E129.8A288B70--