bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: query-replace-regexp


From: Kevin Rodgers
Subject: Re: query-replace-regexp
Date: Mon, 01 Oct 2001 09:57:32 -0600

Roland Winkler wrote:
> Frankly speaking, I've got used to all these backslashes. My point
> is simply that I am always fooled by the fact that `\n' doesn't
> work with query-replace-regexp.

It's because \n (2 characters) is translated by the Lisp reader into C-j
(1 character) by the Emacs Lisp `read' function when your .el file is loaded.
But arguments that you specify interactively to Emacs commands are read
directly from the minibuffer without being interpreted as Lisp objects;
that's why you can specify \1 (2 characters) to query-replace-regexp instead
of having to type \\1.

> I don't know: If this happens only
> to me, I don't want to complain anymore.

-- 
Kevin Rodgers <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]