unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Juri Linkov <juri@jurta.org>
Cc: 6232@debbugs.gnu.org
Subject: bug#6232: Suggestion for isearch: in backward search yank to front of search string
Date: Fri, 21 May 2010 03:18:19 +0200	[thread overview]
Message-ID: <AANLkTik1TIGgfLwZosswVK0JuS4OOWJl8toz_xeeT8u6@mail.gmail.com> (raw)
In-Reply-To: <87sk5myv0i.fsf@mail.jurta.org>

On Fri, May 21, 2010 at 2:09 AM, Juri Linkov <juri@jurta.org> wrote:
>> Yanking to the end of the search string in isearh (i.e. C-w etc.) is
>> very practical. However I miss yanking to the front of the search
>> string.
>>
>> My suggestion is to change the semantics a bit and yank to the front
>> of the search string when searching backwards. What do you think?
>
> I think this would be wrong to do because C-w and all other yanking commands
> always yank in the forward direction.

My suggestion to use the normal key bindings but let them act in the
reverse direction is based on reasoning like this:

1) There is a lack of key bindings in isearch-mode.

2) Using the same keybindings make them easy to remember.

3) It does seem rather logical that the yanking is done at the other
end when search direction is reversed.

4) Maybe more important: The marker in isearch that shows the
direction will be at the position where the yanking is done. Or at
least nearly. So the semantics is in a sense the same since yanking is
done forward from that marker.





  reply	other threads:[~2010-05-21  1:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-20 16:09 bug#6232: Suggestion for isearch: in backward search yank to front of search string Lennart Borgman
2010-05-21  0:09 ` Juri Linkov
2010-05-21  1:18   ` Lennart Borgman [this message]
2010-05-21  8:34     ` Andreas Schwab
2010-05-21 18:31       ` Lennart Borgman
2012-02-22  2:40       ` Glenn Morris
2010-05-21 21:09     ` Richard Stallman
2010-05-21 21:19       ` Lennart Borgman
2010-05-21  8:27 ` Andreas Schwab
2010-05-21  9:54   ` Leo

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=AANLkTik1TIGgfLwZosswVK0JuS4OOWJl8toz_xeeT8u6@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=6232@debbugs.gnu.org \
    --cc=juri@jurta.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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