From: "R. Diez" <rdiezmail-emacs@yahoo.de>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: isearch-repeat-forward not compatible with delete-selection-mode
Date: Wed, 2 Feb 2022 08:46:16 +0100 [thread overview]
Message-ID: <4cec4a1d-ad43-7b50-231e-641caf8a574e@yahoo.de> (raw)
In-Reply-To: 4cec4a1d-ad43-7b50-231e-641caf8a574e.ref@yahoo.de
Hi all:
I am using cua-mode, which includes delete-selection-mode.
When I repeat an incremental search with isearch-repeat-forward, Emacs highlights all matches around in blue, and the current match in magenta.
Normally, if I type (or paste) some text, the currently-selected text is replaced. This is what I am used to when using other text editors. However, isearch's highlighting of the current match is apparently not what is considered to be the 'selection'.
That is bugging me, because I am used to quickly search the next match with F3, and then typing o pasting something to replace the current match. I know that I can automate text replacing, but I often want to manually check each match before replacing it.
Is there a way to tell isearch-repeat-forward and isearch-repeat-backward to set the selection to the current match?
Failing that, I could wrap isearch-repeat-forward and isearch-repeat-backward with my own Lisp routines in order to set the current selection whenever the next/previous match is found (if any). Could somebody help me with such a routine?
My Lisp skills are somewhat limited. But if you give me some pointers, I could probably find my way out with some trial and error.
Thanks in advance,
rdiez
parent reply other threads:[~2022-02-02 7:46 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <4cec4a1d-ad43-7b50-231e-641caf8a574e.ref@yahoo.de>]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4cec4a1d-ad43-7b50-231e-641caf8a574e@yahoo.de \
--to=rdiezmail-emacs@yahoo.de \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.