GNU bug report logs - #6232
Suggestion for isearch: in backward search yank to front of search string

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Thu, 20 May 2010 16:10:03 UTC

Severity: wishlist

Tags: wontfix

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Leo <sdl.web <at> gmail.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: Lennart Borgman <lennart.borgman <at> gmail.com>, 6232 <at> debbugs.gnu.org
Subject: bug#6232: Suggestion for isearch: in backward search yank to front of search string
Date: Fri, 21 May 2010 10:54:36 +0100
On 2010-05-21 09:27 +0100, Andreas Schwab wrote:
> Lennart Borgman <lennart.borgman <at> gmail.com> writes:
>
>> 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?
>
> Such a feature should definitely be on a separate key.
>
> Andreas.

C-y is almost useless to me so I have done something like this:

(define-key isearch-mode-map [remap isearch-yank-line] 'isearch-yank-sexp)

(defun isearch-yank-sexp ()
  "Pull the sexp at point into search string."
  (interactive)
  (if (and isearch-just-started (bounds-of-thing-at-point 'sexp))
      (progn (goto-char (car (bounds-of-thing-at-point 'sexp)))
             (isearch-yank-string (thing-at-point 'sexp)))
    (isearch-yank-internal
     (lambda () (ignore-errors (forward-sexp 1)) (point)))))

Leo




This bug report was last modified 13 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.