From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Request for Enhancement: C-y in Isearch mode should yank to next EOL. Date: Sun, 26 Sep 2004 09:24:04 +0000 (GMT) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1096190574 14440 80.91.229.6 (26 Sep 2004 09:22:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Sep 2004 09:22:54 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 26 11:22:44 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CBVEy-0001m1-00 for ; Sun, 26 Sep 2004 11:22:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CBVL8-00011B-Io for ged-emacs-devel@m.gmane.org; Sun, 26 Sep 2004 05:29:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CBVKu-00010F-KP for emacs-devel@gnu.org; Sun, 26 Sep 2004 05:28:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CBVKr-0000x7-Hr for emacs-devel@gnu.org; Sun, 26 Sep 2004 05:28:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CBVKp-0000ws-OV for emacs-devel@gnu.org; Sun, 26 Sep 2004 05:28:49 -0400 Original-Received: from [193.149.49.134] (helo=acm.acm) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CBVEI-0005fm-HX for emacs-devel@gnu.org; Sun, 26 Sep 2004 05:22:03 -0400 Original-Received: from localhost (root@localhost) by acm.acm (8.8.8/8.8.8) with SMTP id JAA00516 for ; Sun, 26 Sep 2004 09:24:06 GMT X-Sender: root@acm.acm Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27577 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27577 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 * 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 ()