unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
Subject: Request for Enhancement: C-y in Isearch mode should yank to next EOL.
Date: Sun, 26 Sep 2004 09:24:04 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.3.96.1040926090233.494A-100000@acm.acm> (raw)

Hi, Emacs!

In Isearch mode, C-y yanks the text up to the end of the current line.
If point is already at EOL (e.g., you've just done a C-y), C-y does
nothing.  This is not useful.

I propose that C-y should instead yank to the next EOL, so that repeated
`C-y's yank succesive lines.  Here is a patch which does this:


2004-09-26  Alan Mackenzie  <acm@muc.de>

	* isearch.el (isearch-yank-line): C-y yanks to next EOL, not end
	of current line.

*** isearch-1.240.el	Sun Sep 26 08:03:05 2004
--- isearch-1.240.acm.el	Sun Sep 26 09:16:52 2004
***************
*** 1253,1259 ****
  (defun isearch-yank-line ()
    "Pull rest of line from buffer into search string."
    (interactive)
!   (isearch-yank-internal 'line-end-position))
  
  
  (defun isearch-search-and-update ()
--- 1253,1260 ----
  (defun isearch-yank-line ()
    "Pull rest of line from buffer into search string."
    (interactive)
!   (isearch-yank-internal
!    (lambda () (line-end-position (if (eolp) 2 1)))))
  
  
  (defun isearch-search-and-update ()

             reply	other threads:[~2004-09-26  9:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-26  9:24 Alan Mackenzie [this message]
2004-09-27  7:38 ` Request for Enhancement: C-y in Isearch mode should yank to next EOL Richard Stallman
2004-09-27 20:49 ` Alan Mackenzie

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=Pine.LNX.3.96.1040926090233.494A-100000@acm.acm \
    --to=acm@muc.de \
    /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).