unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Toggling query-replace(-regexp) case-sensitivity
@ 2007-05-25 14:31 Nordlöw
  2007-05-26 16:57 ` Alan
  2007-06-13  5:46 ` Kevin Rodgers
  0 siblings, 2 replies; 3+ messages in thread
From: Nordlöw @ 2007-05-25 14:31 UTC (permalink / raw)
  To: help-gnu-emacs

Hey again, hackers!

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

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().


/Nordlöw

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

* Re: Toggling query-replace(-regexp) case-sensitivity
  2007-05-25 14:31 Toggling query-replace(-regexp) case-sensitivity Nordlöw
@ 2007-05-26 16:57 ` Alan
  2007-06-13  5:46 ` Kevin Rodgers
  1 sibling, 0 replies; 3+ messages in thread
From: Alan @ 2007-05-26 16:57 UTC (permalink / raw)
  To: help-gnu-emacs

(describe-variable 'case-fold-search) will produce something like the
following:

`case-fold-search' is a built-in buffer-local variable.

Value: t

This value is specific to the current buffer.

Documentation:
*Non-nil if searches should ignore case.
Automatically becomes buffer-local when set in any fashion.

On May 25, 9:31 am, Nordlöw <per.nord...@gmail.com> wrote:
> Hey again, hackers!
>
> How do I change case-sensitivity during query-replace or query-replace-
> regexp?
>
> 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().
>
> /Nordlöw

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

* Re: Toggling query-replace(-regexp) case-sensitivity
  2007-05-25 14:31 Toggling query-replace(-regexp) case-sensitivity Nordlöw
  2007-05-26 16:57 ` Alan
@ 2007-06-13  5:46 ` Kevin Rodgers
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2007-06-13  5:46 UTC (permalink / raw)
  To: help-gnu-emacs

Nordlöw wrote:
> Hey again, hackers!
> 
> How do I change case-sensitivity during query-replace or query-replace-
> regexp?
> 
> 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

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

end of thread, other threads:[~2007-06-13  5:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-25 14:31 Toggling query-replace(-regexp) case-sensitivity Nordlöw
2007-05-26 16:57 ` Alan
2007-06-13  5:46 ` Kevin Rodgers

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).