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

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

Re: query-replace-regexp


From: Roland Winkler
Subject: Re: query-replace-regexp
Date: 01 Oct 2001 17:05:34 +0200

"Stefan Monnier" <monnier+gnu.emacs.bug/news/@RUM.cs.yale.edu> writes:

> >>>>> "Roland" == Roland Winkler writes:
> > For a function like re-search-forward the newline character is `\n'.
> 
> Note that ^J works there as well ;-).

Thanks, I didn't know that. But when I look through the emacs lisp
files, it seems to me that I am not the only one who is always
using `\n' for re-search-forward but never `^J'.

> > Is it possible to modify query-replace-regexp such that it
> > understands both `^J' and `\n'?
> 
> Of course, you can modify it to do that.  But that will basically
> mean that you need to double your backslashes in other cases like
> \\(blkbl\\).

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. I don't know: If this happens only
to me, I don't want to complain anymore.

Roland



reply via email to

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