unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Toggling query-replace(-regexp) case-sensitivity
Date: Tue, 12 Jun 2007 23:46:04 -0600	[thread overview]
Message-ID: <f4o0a9$q8$1@sea.gmane.org> (raw)
In-Reply-To: <1180103509.269412.169020@o5g2000hsb.googlegroups.com>

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

      parent reply	other threads:[~2007-06-13  5:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='f4o0a9$q8$1@sea.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).