GNU bug report logs - #48421
28.0.50; Edit region for query-replace gets lost

Previous Next

Package: emacs;

Reported by: "Bob Floyd" <bobfloyd <at> comcast.net>

Date: Fri, 14 May 2021 16:54:01 UTC

Severity: normal

Tags: moreinfo

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48421 in the body.
You can then email your comments to 48421 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#48421; Package emacs. (Fri, 14 May 2021 16:54:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Bob Floyd" <bobfloyd <at> comcast.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 14 May 2021 16:54:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Bob Floyd" <bobfloyd <at> comcast.net>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 28.0.50; Edit region for query-replace gets lost
Date: Fri, 14 May 2021 09:53:45 -0700
[Message part 1 (text/plain, inline)]
Put in a cpp file:

----------------------------------------------------------------------------
---------------

extern "C" void*

NuVmodelPopulator( vpiHandle _parameterHndl, void* _cktVoid, int* _err )

{

  CKTcircuit* _ckt = (CKTcircuit*)_cktVoid;

 

  std::string          _nmPrm

  ( vpi_get_str( ft_sim->NuVbridge, vpiName, _parameterHndl ) );

 

  vpiHandle          _paramsetHndl

  ( vpi_handle( ft_sim->NuVbridge, vpiParamset, _parameterHndl ) );

 

  std::string          _nmPrmset

  ( vpi_get_str( ft_sim->NuVbridge, vpiName, _paramsetHndl ) );

 

  vpi_release_handle( ft_sim->NuVbridge, _paramsetHndl );

 

  std::transform

  ( _nmPrmset.begin(), _nmPrmset.end(), _nmPrmset.begin(), ::tolower );

  std::transform

  ( _nmPrmset.begin(), _nmPrmset.end(), _nmPrmset.begin(), ::tolower );

}

----------------------------------------------------------------------------
--------------

 

1,2,3    => selects region for query-replace.

5,6,7,8 => sequence causes region to be lost.

 

1. C-a (move-beginning-of-line) on the next to the last line:

-->  ( _nmPrmset.begin(), _nmPrmset.end(), _nmPrmset.begin(), ::tolower );

     }

2. C-SPC (set-mark-command)

3. C-e (move-end-of-line)

4. M-% (query-replace)

     The replace region is the next to the last line:

     ( _nmPrmset.begin(), _nmPrmset.end(), _nmPrmset.begin(), ::tolower );

5. Double-click left mouse on the "_" of "_nmPrm" on the next to the last
line

at column 5 to select "_nmPrm".

6. Middle mouse click then enter to insert in query replace:

    Query replace in region: _nmPrmset

7. Double-click left mouse on the "_" of "_nmPrm" on line 6 to select
"_nmPrm"

8. Middle mouse click then enter:

   Query replace in region _nmPrmset with: _nmPrm

 

Note the edit region of 1,2,3 is lost.

 

 

---------------------------------------------------------------------

In GNU Emacs 28.0.50 (build 1, x86_64-w64-mingw32)

of 2021-01-15 built on CIRROCUMULUS

Repository revision: f45be48ddbde00610e1e08fca6590dcf24a4e1b5

Repository branch: master

Windowing system distributor 'Microsoft Corp.', version 10.0.19042

System Description: Microsoft Windows 10 Enterprise (v10.0.2009.19042.928)

 

Configured using:

'configure --without-dbus --without-compress-install -C 'CFLAGS=-O2

-static -g3' PKG_CONFIG_PATH=/mingw64/lib/pkgconfig'

 

Configured features:

ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY

W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM

ZLIB

 

Important settings:

  value of $LANG: ENU

  locale-coding-system: cp1252

 

Major mode: C++//la

 

Minor modes in effect:

  shell-dirtrack-mode: t

  show-paren-mode: t

  tooltip-mode: t

  global-eldoc-mode: t

  electric-indent-mode: t

  mouse-wheel-mode: t

  menu-bar-mode: t

  file-name-shadow-mode: t

  global-font-lock-mode: t

  font-lock-mode: t

  blink-cursor-mode: t

  auto-composition-mode: t

  auto-encryption-mode: t

  auto-compression-mode: t

  line-number-mode: t

  transient-mark-mode: t

  abbrev-mode: t

 

Load-path shadows:

None found.

 

Features:

(pp shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs

rfc822 mml mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs

text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231

mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums

mm-util mail-prsvr mail-utils misearch multi-isearch two-column

help-mode time-date web-mode advice derived edmacro kmacro shell

pcomplete comint ansi-color ring printing ps-print ps-print-loaddefs

ps-def lpr paren cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles

cc-align cc-engine cc-vars cc-defs finder-inf tex-site info package

easymenu browse-url url url-proxy url-privacy url-expand url-methods

url-history url-cookie url-domsuf url-util mailcap url-handlers

url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs

password-cache json subr-x map url-vars seq byte-opt gv bytecomp

byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc electric

uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp

disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd

fontset image regexp-opt fringe tabulated-list replace newcomment

text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar

rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock

syntax facemenu font-core term/tty-colors frame minibuffer cl-generic

cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao

korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech

european ethiopic indian cyrillic chinese composite charscript charprop

case-table epa-hook jka-cmpr-hook help simple abbrev obarray

cl-preloaded nadvice button loaddefs faces cus-face macroexp files

window text-properties overlay sha1 md5 base64 format env code-pages

mule custom widget hashtable-print-readable backquote threads w32notify

w32 lcms2 multi-tty make-network-process emacs)

 

Memory information:

((conses 16 190653 13405)

(symbols 48 14109 5)

(strings 32 48550 3158)

(string-bytes 1 1555849)

(vectors 16 22314)

(vector-slots 8 381834 16818)

(floats 8 268 260)

(intervals 56 3394 0)

(buffers 984 18))

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48421; Package emacs. (Fri, 14 May 2021 18:29:03 GMT) Full text and rfc822 format available.

Message #8 received at 48421 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: "Bob Floyd" <bobfloyd <at> comcast.net>
Cc: 48421 <at> debbugs.gnu.org
Subject: Re: bug#48421: 28.0.50; Edit region for query-replace gets lost
Date: Fri, 14 May 2021 21:13:59 +0300
> Note the edit region of 1,2,3 is lost.

Actually, the region is not lost.  We fixed this in bug#45617 recently,
so now query-replace operates on the correct region boundaries.

But during replacement the region is deactivated deliberately.
If you could confirm that query-replace preforms replacements
only in the selected region (although the region is deactivated
during replacement), then everything is correct.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48421; Package emacs. (Fri, 14 May 2021 23:55:02 GMT) Full text and rfc822 format available.

Message #11 received at 48421 <at> debbugs.gnu.org (full text, mbox):

From: "Bob Floyd" <bobfloyd <at> comcast.net>
To: "'Juri Linkov'" <juri <at> linkov.net>
Cc: 48421 <at> debbugs.gnu.org
Subject: RE: bug#48421: 28.0.50; Edit region for query-replace gets lost
Date: Fri, 14 May 2021 16:54:25 -0700
Yes, I know you fixed it in bug#45617 as it was I who reported it, and thank
you!

However, it has resurfaced in the development version I'm using - perhaps
the fix was not put into the repository?

The query-replace incorrectly selects all of the `_nmPrmset`s and not just
those in the edit region.

-----Original Message-----
From: Juri Linkov [mailto:juri <at> linkov.net] 
Sent: Friday, May 14, 2021 11:14 AM
To: Bob Floyd
Cc: 48421 <at> debbugs.gnu.org
Subject: Re: bug#48421: 28.0.50; Edit region for query-replace gets lost

> Note the edit region of 1,2,3 is lost.

Actually, the region is not lost.  We fixed this in bug#45617 recently,
so now query-replace operates on the correct region boundaries.

But during replacement the region is deactivated deliberately.
If you could confirm that query-replace preforms replacements
only in the selected region (although the region is deactivated
during replacement), then everything is correct.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48421; Package emacs. (Sat, 15 May 2021 09:46:02 GMT) Full text and rfc822 format available.

Message #14 received at 48421 <at> debbugs.gnu.org (full text, mbox):

From: Gregory Heytings <gregory <at> heytings.org>
To: Bob Floyd <bobfloyd <at> comcast.net>
Cc: 48421 <at> debbugs.gnu.org, 'Juri Linkov' <juri <at> linkov.net>
Subject: Re: bug#48421: 28.0.50; Edit region for query-replace gets lost
Date: Sat, 15 May 2021 09:45:52 +0000
>
> Yes, I know you fixed it in bug#45617 as it was I who reported it, and 
> thank you!
>
> However, it has resurfaced in the development version I'm using - 
> perhaps the fix was not put into the repository?
>

That's because bug#45617 was fixed in the trunk on Jan 29th, and the Emacs 
version you have is from Jan 15th.  Currently there is no build of a later 
development version available, but you should regularly check 
https://alpha.gnu.org/gnu/emacs/pretest/windows/emacs-28/ .




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48421; Package emacs. (Mon, 17 May 2021 15:57:01 GMT) Full text and rfc822 format available.

Message #17 received at 48421 <at> debbugs.gnu.org (full text, mbox):

From: "Bob Floyd" <bobfloyd <at> comcast.net>
To: "'Gregory Heytings'" <gregory <at> heytings.org>
Cc: 48421 <at> debbugs.gnu.org, 'Juri Linkov' <juri <at> linkov.net>
Subject: RE: bug#48421: 28.0.50; Edit region for query-replace gets lost
Date: Mon, 17 May 2021 08:56:00 -0700
Understood, thanks.

BTW, While #48107 is fixed in the development version I continue to have the
problem as I work - tags-query fails to find all occurrences. Hope I can pay
enough attention to my keystrokes to reproduce it in a simple test. 

-----Original Message-----
From: Gregory Heytings [mailto:gregory <at> heytings.org] 
Sent: Saturday, May 15, 2021 2:46 AM
To: Bob Floyd
Cc: 'Juri Linkov'; 48421 <at> debbugs.gnu.org
Subject: Re: bug#48421: 28.0.50; Edit region for query-replace gets lost


>
> Yes, I know you fixed it in bug#45617 as it was I who reported it, and 
> thank you!
>
> However, it has resurfaced in the development version I'm using - 
> perhaps the fix was not put into the repository?
>

That's because bug#45617 was fixed in the trunk on Jan 29th, and the Emacs 
version you have is from Jan 15th.  Currently there is no build of a later 
development version available, but you should regularly check 
https://alpha.gnu.org/gnu/emacs/pretest/windows/emacs-28/ .





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48421; Package emacs. (Wed, 13 Jul 2022 01:48:01 GMT) Full text and rfc822 format available.

Message #20 received at 48421 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Bob Floyd" <bobfloyd <at> comcast.net>
Cc: 48421 <at> debbugs.gnu.org, 'Gregory Heytings' <gregory <at> heytings.org>,
 'Juri Linkov' <juri <at> linkov.net>
Subject: Re: bug#48421: 28.0.50; Edit region for query-replace gets lost
Date: Wed, 13 Jul 2022 03:47:27 +0200
"Bob Floyd" <bobfloyd <at> comcast.net> writes:

> BTW, While #48107 is fixed in the development version I continue to have the
> problem as I work - tags-query fails to find all occurrences. Hope I can pay
> enough attention to my keystrokes to reproduce it in a simple test. 

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Skimming this bug report, it's not clear whether the reported problem
has been fixed or not.

Do you still see this problem in recent Emacs versions?  (I didn't try
to reproduce the problem myself.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 13 Jul 2022 01:48:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48421; Package emacs. (Wed, 13 Jul 2022 16:02:01 GMT) Full text and rfc822 format available.

Message #25 received at 48421 <at> debbugs.gnu.org (full text, mbox):

From: "Bob Floyd" <bobfloyd <at> comcast.net>
To: "'Lars Ingebrigtsen'" <larsi <at> gnus.org>
Cc: 48421 <at> debbugs.gnu.org, 'Gregory Heytings' <gregory <at> heytings.org>,
 'Juri Linkov' <juri <at> linkov.net>
Subject: RE: bug#48421: 28.0.50; Edit region for query-replace gets lost
Date: Wed, 13 Jul 2022 09:00:27 -0700
I do not see this in GNU Emacs 28.0.50 (build 1, x86_64-w64-mingw32) that I
am using.
Thanks!

-----Original Message-----
From: Lars Ingebrigtsen [mailto:larsi <at> gnus.org] 
Sent: Tuesday, July 12, 2022 6:47 PM
To: Bob Floyd
Cc: 'Gregory Heytings'; 48421 <at> debbugs.gnu.org; 'Juri Linkov'
Subject: Re: bug#48421: 28.0.50; Edit region for query-replace gets lost

"Bob Floyd" <bobfloyd <at> comcast.net> writes:

> BTW, While #48107 is fixed in the development version I continue to have
the
> problem as I work - tags-query fails to find all occurrences. Hope I can
pay
> enough attention to my keystrokes to reproduce it in a simple test. 

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Skimming this bug report, it's not clear whether the reported problem
has been fixed or not.

Do you still see this problem in recent Emacs versions?  (I didn't try
to reproduce the problem myself.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48421; Package emacs. (Thu, 14 Jul 2022 17:06:01 GMT) Full text and rfc822 format available.

Message #28 received at 48421 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Bob Floyd" <bobfloyd <at> comcast.net>
Cc: 48421 <at> debbugs.gnu.org, 'Gregory Heytings' <gregory <at> heytings.org>,
 'Juri Linkov' <juri <at> linkov.net>
Subject: Re: bug#48421: 28.0.50; Edit region for query-replace gets lost
Date: Thu, 14 Jul 2022 19:05:32 +0200
"Bob Floyd" <bobfloyd <at> comcast.net> writes:

> I do not see this in GNU Emacs 28.0.50 (build 1, x86_64-w64-mingw32) that I
> am using.

Thanks for checking; I'm closing this bug report, then.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 48421 <at> debbugs.gnu.org and "Bob Floyd" <bobfloyd <at> comcast.net> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 14 Jul 2022 17:06:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 12 Aug 2022 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 307 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.