unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* query-replace-regexp: Can't use \0 in TO-STRING
@ 2017-05-06  0:48 zhanghj
  2017-05-06  5:04 ` Tino Calancha
  0 siblings, 1 reply; 11+ messages in thread
From: zhanghj @ 2017-05-06  0:48 UTC (permalink / raw)
  To: emacs-devel

The doc says:
In TO-STRING, ‘\&’ or ‘\0’ stands for whatever matched the whole of
REGEXP, and ‘\N’ (where N is a digit) stands for whatever matched
the Nth ‘\(...\)’ (1-based) in REGEXP.  The ‘\(...\)’ groups are
counted from 1.

But when using \0, emacs gives the following error message: 
match-substitute-replacement: Invalid use of ‘\’ in replacement text

Using \& is OK.



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

end of thread, other threads:[~2017-05-19  8:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-06  0:48 query-replace-regexp: Can't use \0 in TO-STRING zhanghj
2017-05-06  5:04 ` Tino Calancha
2017-05-06  8:09   ` Eli Zaretskii
2017-05-06 10:34     ` Tino Calancha
2017-05-07  3:48     ` zhanghj
2017-05-19  8:13       ` Eli Zaretskii
2017-05-06 12:28   ` zhanghj
2017-05-06 12:39     ` Tino Calancha
2017-05-07  3:55       ` zhanghj
2017-05-07 14:48         ` Eli Zaretskii
2017-05-09 22:02           ` Juri Linkov

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).