unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: @#$! new behavior of C-b & C-f in i-search
Date: Mon, 24 May 2004 11:48:55 +0300	[thread overview]
Message-ID: <87k6z2jjm5.fsf@mail.jurta.org> (raw)
In-Reply-To: uhduaoo8s.fsf@swbell.net

Peter Lee <pete_lee@swbell.net> writes:
>>>>> David Kastrup writes:
>     David> While multiple keypresses of that still require much more
>     David> action than C-f and C-b, I guess I could live with that.
>
> I wouldn't find this useful if it's more than a single keypress.
> Otherwise it becomes more efficient to simply M-e and edit the string.

M-e is a good method to delete characters from the search string,
but it can't append characters from the buffer where isearch is active.

But it's possible to use something like below.  When C-f is typed
in the end of the isearch minibuffer (activated by M-e) it could append
characters from the isearch buffer to the search string in the minibuffer.

(define-key minibuffer-local-isearch-map "\C-f"  'isearch-yank-char-in-minibuffer)
(define-key minibuffer-local-isearch-map [right] 'isearch-yank-char-in-minibuffer)

(defun isearch-yank-char-in-minibuffer ()
  "Pull next character from isearch buffer into end of search string in minibuffer."
  (interactive "p")
  (if (eobp)
      (insert
       (save-excursion
         (set-buffer (cadr (buffer-list)))
         (buffer-substring-no-properties
          (point) (progn (forward-char 1) (point)))))
    (forward-char 1)))

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2004-05-24  8:48 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-18  4:51 @#$! new behavior of C-b & C-f in i-search Miles Bader
2004-05-18  0:15 ` Karl Fogel
2004-05-18  6:05 ` Juri Linkov
2004-05-18  7:06 ` Kai Grossjohann
2004-05-18  7:16   ` David Kastrup
2004-05-19  5:22   ` Karl Eichwalder
2004-05-20  6:03     ` Juri Linkov
2004-05-20  7:29       ` David Kastrup
2004-05-20  8:35         ` Kenichi Handa
2004-05-20 10:48           ` David Kastrup
2004-05-20 11:31             ` Kenichi Handa
2004-05-20 17:34         ` Kevin Rodgers
2004-05-20 18:02           ` David Kastrup
2004-05-20 20:08             ` Peter Lee
2004-05-24  8:48               ` Juri Linkov [this message]
2004-06-07  6:43                 ` Juri Linkov
2004-06-07 19:17                   ` Richard Stallman
2004-06-11  8:17                     ` Juri Linkov
2004-06-11  8:35                       ` Kim F. Storm
2004-06-11  8:48                       ` Alan Mackenzie
2004-06-12  1:50                       ` Richard Stallman
2004-05-18 12:27 ` Robert J. Chassell
2004-05-19  1:26 ` Richard Stallman
2004-05-19  6:32   ` @#$! new behavior of C-b & C-f in i-searchi Alan Mackenzie
2004-05-19  8:33   ` @#$! new behavior of C-b & C-f in i-search Juri Linkov
2004-05-19  9:06     ` Miles Bader
2004-05-19  9:32       ` 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

  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=87k6z2jjm5.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --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 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).