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#48421: 28.0.50; Edit region for query-replace gets lost Date: Fri, 14 May 2021 09:53:45 -0700 Message-ID: <001201d748e1$b47580c0$1d608240$@net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01D748A7.0816A8C0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17211"; mail-complaints-to="usenet@ciao.gmane.io" To: 48421@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 14 19:35:14 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 1lhbiU-0004K6-Hh for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 19:35:14 +0200 Original-Received: from localhost ([::1]:58684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhbiT-0001TA-HI for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 May 2021 13:35:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhb4c-0005FC-BD for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 12:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35403) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhb4b-0001L7-Vl for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 12:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhb4b-0005Qs-V0 for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 12:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Bob Floyd" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 May 2021 16:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48421 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.162101123720870 (code B ref -1); Fri, 14 May 2021 16:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 May 2021 16:53:57 +0000 Original-Received: from localhost ([127.0.0.1]:46949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhb4W-0005QW-Da for submit@debbugs.gnu.org; Fri, 14 May 2021 12:53:57 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhb4U-0005QO-5T for submit@debbugs.gnu.org; Fri, 14 May 2021 12:53:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhb4T-0004uI-Mu for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 12:53:53 -0400 Original-Received: from resqmta-po-12v.sys.comcast.net ([2001:558:fe16:19:96:114:154:171]:44402) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhb4Q-0001EL-E3 for bug-gnu-emacs@gnu.org; Fri, 14 May 2021 12:53:52 -0400 Original-Received: from resomta-po-17v.sys.comcast.net ([96.114.154.241]) by resqmta-po-12v.sys.comcast.net with ESMTP id hYdQlRzjSfSZqhb4Nlj2yM; Fri, 14 May 2021 16:53:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1621011227; bh=Q7bWQ9tHwoV+BYqWLSvcYsTcvORFC9Z6Zp2ADUuwTpc=; h=Received:Received:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type; b=znYRxO9XyWV8oA+qXZ9oRZ3l/ZgKTKU0iQZZsVlcXl3tRbEF6MVtPltXgzKBardL3 Lh0Gq7P+6JIxJg6NtX//9xXsB68YWeuK2N0KUJ8UA9OlCB1UdX8QYzkJJKh5yEhUOv VMte10UFQMXUzKHCUo7Tb3HhpYLIA39qXrmikavnT4gf6TUyiL72O/VFiFwSO8GWZe vEqK8OqW78MubtzPmpLk6Hi3O6xW8pXl6HlmWLuur5wSMmKcRqEXOTwt0LiTjBUK5y M3RTqRIrSfKRkJrcwowkM2V+n6ez2qUwcXi5rRSRO7hik2eE4aQMnk9jCOfvhg/IYN x5ewyd5kCUmWA== Original-Received: from Cache ([IPv6:2601:647:6100:3b1c::87]) by resomta-po-17v.sys.comcast.net with ESMTPA id hb4MljjD00a1Yhb4MlFKrf; Fri, 14 May 2021 16:53:47 +0000 X-Xfinity-VMeta: sc=0.00;st=legit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AddI4bPgcyfzYyKMSm+vRZM1LYtb4Q== Content-Language: en-us Received-SPF: pass client-ip=2001:558:fe16:19:96:114:154:171; envelope-from=bobfloyd@comcast.net; helo=resqmta-po-12v.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:206542 Archived-At: This is a multi-part message in MIME format. ------=_NextPart_000_0013_01D748A7.0816A8C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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)) ------=_NextPart_000_0013_01D748A7.0816A8C0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Put in a = cpp file:

-------------------------------------------------------= ------------------------------------

extern "C" void*

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

{

  = CKTcircuit* _ckt =3D (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 =    =3D> selects region for = query-replace.

5,6,7,8 =3D> = 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=3D-O2

-static -g3' = PKG_CONFIG_PATH=3D/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))

------=_NextPart_000_0013_01D748A7.0816A8C0--