[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gnu-emacs] (no subject)
From: |
Kai Großjohann |
Subject: |
Re: [Help-gnu-emacs] (no subject) |
Date: |
21 Sep 2000 09:19:49 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.0.90 |
On Wed, 20 Sep 2000, Sean McAfee wrote:
> I can only guess that the C-u I use to invoke query-replace-regexp
> is getting propagated to it somehow and altering its behavior. Can
> someone tell me 1) how this happens, and 2) how to avoid it?
>From the documentation of query-replace-regexp:
/----
| Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace
| only matches surrounded by word boundaries.
\----
Klugy solution: set current-prefix-arg to nil before invoking
query-replace-regexp.
Better solution: have your function read the arguments itself, then
call the right function normally, rather than via call-interactively.
kai
--
I like BOTH kinds of music.