From: Alan Mackenzie <acm@muc.de>
Cc: emacs-devel@gnu.org
Subject: Re: isearch-yank-char
Date: Fri, 30 Apr 2004 08:31:32 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.3.96.1040430081120.566B-100000@acm.acm> (raw)
In-Reply-To: <87n04u77z8.fsf@floss.red-bean.com>
On 29 Apr 2004, Karl Fogel wrote:
>This thread hasn't actually arrived at a decision yet; let's see if we
>can reach one. Proposal:
> 1. Bind C-f in isearch-mode to 'isearch-yank-char'.
> (And while we're at it, fix isearch-yank-char's doc string to
> say "char" instead of "letter".)
Excellent idea! Let's do it!
> 2. Bind C-b in isearch-mode to a function (name TBD) that loses
> one char from the search string.
NOT SO FAST! Tell me, where does point get left after a C-b? Normally,
one character backwards. No problem. But....
Where does point get left in a regexp-search after C-b? Suppose that the
last character entered into the regexp search string was a closing
parenthesis (or whatever) that caused the the regexp search to backtrack,
moving point to an earlier position? I can think of several ideas for
handling this, e.g.:
(i) Point moves _forward_ to where it was before the ] was entered, i.e.
C-b works just like <del> in this case; However, the search string might
just have been extended by several characters at once (with M-y). This
looks like getting hairy;
(ii) C-b only works in normal (non-regexp) search;
(iii) C-b is disallowed in regexp-search for quirky characters like );
(iv) C-b is disallowed in regexp-search whenever it would cause point to
jump forward;
(v) Point is left where it was, and the currently highlighted "match" is
no longer a match at all;
(vi) C-b in such circumstances acts like M-e, leaving the user directly
editing the search string.
I think it would be a good idea to resolve this issue before implementing
a C-b. I'm not sure whether I'd rather do without C-b here than have
some ugly inconsistency, even if that inconsistency only appears in
marginal circumstances.
>Retreats into the night, watching, waiting,...
>-Karl
--
Alan Mackenzie (Munich, Germany)
next prev parent reply other threads:[~2004-04-30 8:31 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-26 4:42 isearch-yank-char Juri Linkov
2004-04-25 23:03 ` isearch-yank-char Karl Fogel
2004-04-25 23:17 ` isearch-yank-char Karl Fogel
2004-04-26 6:15 ` isearch-yank-char Juri Linkov
2004-04-26 14:10 ` isearch-yank-char Richard Stallman
2004-04-26 22:42 ` isearch-yank-char Stefan Monnier
2004-04-26 23:03 ` isearch-yank-char Miles Bader
2004-04-26 22:48 ` isearch-yank-char Karl Fogel
2004-04-27 8:09 ` isearch-yank-char Juri Linkov
2004-04-27 9:11 ` isearch-yank-char Juri Linkov
2004-04-27 9:41 ` isearch-yank-char David Kastrup
2004-04-27 22:49 ` isearch-yank-char Karl Fogel
2004-04-28 5:04 ` isearch-yank-char Juri Linkov
2004-04-29 22:08 ` isearch-yank-char Karl Fogel
2004-04-30 4:48 ` isearch-yank-char Juri Linkov
2004-04-29 22:53 ` isearch-yank-char Karl Fogel
2004-04-30 8:27 ` isearch-yank-char Juri Linkov
2004-04-30 11:23 ` isearch-yank-char Romain Francoise
2004-04-30 13:47 ` isearch-yank-char Karl Fogel
2004-04-30 20:55 ` isearch-yank-char Juri Linkov
2004-04-30 17:34 ` isearch-yank-char Karl Fogel
2004-05-01 0:15 ` isearch-yank-char Juri Linkov
2004-04-30 18:57 ` isearch-yank-char Karl Fogel
2004-05-01 1:04 ` isearch-yank-char Juri Linkov
2004-05-01 20:02 ` isearch-yank-char Kim F. Storm
2004-05-02 11:32 ` isearch-yank-char Juri Linkov
2004-05-03 12:40 ` isearch-yank-char Robert J. Chassell
2004-05-02 11:19 ` isearch-yank-char Richard Stallman
2004-05-03 19:24 ` isearch-yank-char Karl Fogel
2004-05-04 20:08 ` isearch-yank-char Richard Stallman
2004-04-30 8:31 ` Alan Mackenzie [this message]
2004-04-30 9:52 ` isearch-yank-char Juri Linkov
2004-04-30 10:12 ` isearch-yank-char Miles Bader
2004-04-30 13:58 ` isearch-yank-char Karl Fogel
2004-04-27 9:36 ` isearch-yank-char Kim F. Storm
2004-04-28 5:02 ` isearch-yank-char Juri Linkov
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=Pine.LNX.3.96.1040430081120.566B-100000@acm.acm \
--to=acm@muc.de \
--cc=emacs-devel@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.