all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#20975: Replacing text add also the comma
@ 2015-07-03 22:15 Angelo Graziosi
  2015-07-04 21:07 ` Juri Linkov
  0 siblings, 1 reply; 7+ messages in thread
From: Angelo Graziosi @ 2015-07-03 22:15 UTC (permalink / raw)
  To: 20975

Suppose one has a file with this text

$ cat foo.log
abcd r8 efg
foo(a_r8,b_r8,c_r8)

Try to replace 'r8' with 'DP', i.e. in the minibuffer,

M-% <RETURN>
Query replace:
r8 <RETURN>
Query replace r8 with: DP

The 'r8' on the first row is replaced correctly while on the second row 
also the comma is added to the text 'r8' to be replaced.

foo.log becomes

$ cat foo.log
abcd DP efg
foo(a_DPb_DPc_DP)


Soppose, now, that foo(a_r8,b_r8,c_r8) is a Fortran/C/C++ routine...

Is this intentional or a bug?

I discovered this with recent (master) builds on MSYS2-MINGW64 (64bit 
Windows native). I suspect this also regards the builds on other systems..

Angelo





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-07-05 21:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-03 22:15 bug#20975: Replacing text add also the comma Angelo Graziosi
2015-07-04 21:07 ` Juri Linkov
2015-07-04 21:31   ` Artur Malabarba
2015-07-05  2:46     ` Eli Zaretskii
2015-07-05 15:47       ` Artur Malabarba
2015-07-05 21:07         ` Angelo Graziosi
2015-07-05 21:32           ` Artur Malabarba

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.