[Top][All Lists]

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

Re: Toggling query-replace(-regexp) case-sensitivity

From: Kevin Rodgers
Subject: Re: Toggling query-replace(-regexp) case-sensitivity
Date: Tue, 12 Jun 2007 23:46:04 -0600
User-agent: Thunderbird (Macintosh/20070509)

Nordlöw wrote:
Hey again, hackers!

How do I change case-sensitivity during query-replace or query-replace-

If such a function exists how do I use it? If not how do I create it?

I rellay expected M-c to do this job, but it didn't. How can I have it
bound to M-c like in isearch-forward/backward().

The behavior of the query-replace commands is controlled by
query-replace-map, which is not a true keymap (unlike isearch-mode-map,
which controls the behavior of the isearch commands).  So you can't
bind M-c in query-replace-map to an arbitrary command that does what
you want (cf. isearch-toggle-case-fold).

The only thing I can think of to do in the middle of query-replace is:

C-r     ; recursive-edit
M-: (setq case-fold-search (not case-fold-search)) RET
C-M-c   ; exit-recursive-edit

Kevin Rodgers
Denver, Colorado, USA

reply via email to

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