GNU bug report logs - #10654
24.0.93; isearch-yank-line moved from C-y

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: "Aaron S. Hawley" <aaron.s.hawley@HIDDEN>; dated Mon, 30 Jan 2012 15:17:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 10654 <at> debbugs.gnu.org:


Received: (at 10654) by debbugs.gnu.org; 4 Feb 2012 01:06:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 03 20:06:46 2012
Received: from localhost ([127.0.0.1]:52942 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RtU5W-00022r-As
	for submit <at> debbugs.gnu.org; Fri, 03 Feb 2012 20:06:46 -0500
Received: from ps18281.dreamhost.com ([69.163.218.105]:59097
	helo=ps18281.dreamhostps.com)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <juri@HIDDEN>) id 1RtU5U-00022e-TH
	for 10654 <at> debbugs.gnu.org; Fri, 03 Feb 2012 20:06:45 -0500
Received: from localhost (ps18281.dreamhostps.com [69.163.218.105])
	by ps18281.dreamhostps.com (Postfix) with ESMTP id 4C1C6451C826;
	Fri,  3 Feb 2012 17:04:50 -0800 (PST)
From: Juri Linkov <juri@HIDDEN>
To: Kevin Rodgers <kevin.d.rodgers@HIDDEN>
Subject: Re: bug#10654: 24.0.93; isearch-yank-line moved from C-y
Organization: JURTA
References: <CAFw1JJ6QAeB0+yrNW7M2RyO0KoVBzMFd2PDv7DHJo1tKA1_9OA@HIDDEN>
	<1a8vkp9g2v.fsf@HIDDEN>
	<CAFw1JJ4LQU8chmJ7pXEQQ5megAzFaeeG+ASoAMkpqkUwbQOxDA@HIDDEN>
	<jgh6jl$vlq$1@HIDDEN>
Date: Sat, 04 Feb 2012 02:17:55 +0200
In-Reply-To: <jgh6jl$vlq$1@HIDDEN> (Kevin Rodgers's message of "Fri, 
	03 Feb 2012 10:48:29 -0700")
Message-ID: <87liojxvi0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 10654
Cc: 10654 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

> That approach would be a little less onerous if additional words or characters
> could be added to the search string by additional M-f and C-f without prefixing
> each with M-s.

If `C-k' for `isearch-yank-line' is not under consideration,
then I recommend to allow `M-s C-e C-e C-e ...' in 24.1
because `M-s C-e M-s C-e M-s C-e ...' is unusable.

This can be achieved with the patch below.

Other repeating key sequences `M-s M-f M-f M-f ...' and `M-s C-f C-f C-f ...'
could be implemented as well, but there is no urgent need for them now.

=== modified file 'lisp/isearch.el'
--- lisp/isearch.el	2012-02-01 00:21:17 +0000
+++ lisp/isearch.el	2012-02-04 00:17:07 +0000
@@ -533,6 +533,9 @@ (defvar minibuffer-local-isearch-map
     map)
   "Keymap for editing Isearch strings in the minibuffer.")
 
+(defvar isearch-repeat-key nil)
+(defvar isearch-repeat-command nil)
+
 ;; Internal variables declared globally for byte-compiler.
 ;; These are all set with setq while isearching
 ;; and bound locally while editing the search string.
@@ -1662,6 +1665,8 @@
 (defun isearch-yank-line ()
   "Pull rest of line from buffer into search string."
   (interactive)
+  (setq isearch-repeat-key last-input-event
+	isearch-repeat-command 'isearch-yank-line)
   (isearch-yank-internal
    (lambda () (let ((inhibit-field-text-motion t))
 		(line-end-position (if (eolp) 2 1))))))
@@ -1962,8 +1967,13 @@ (defun isearch-other-meta-char (&optiona
                 (this-command-keys)))
 	 (main-event (aref key 0))
 	 (keylist (listify-key-sequence key))
+	 (repeat-key isearch-repeat-key)
          scroll-command isearch-point)
-    (cond ((and (= (length key) 1)
+    (setq isearch-repeat-key nil)
+    (cond ((and (eq main-event repeat-key) isearch-repeat-command)
+	   (setq isearch-repeat-key main-event)
+	   (command-execute isearch-repeat-command))
+	  ((and (= (length key) 1)
 		(let ((lookup (lookup-key local-function-key-map key)))
 		  (not (or (null lookup) (integerp lookup)
 			   (keymapp lookup)))))





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10654; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Feb 2012 17:48:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 03 12:48:33 2012
Received: from localhost ([127.0.0.1]:52533 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RtNFQ-0007Mr-Mt
	for submit <at> debbugs.gnu.org; Fri, 03 Feb 2012 12:48:33 -0500
Received: from eggs.gnu.org ([140.186.70.92]:37091)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1RtNFO-0007Mg-Qa
	for submit <at> debbugs.gnu.org; Fri, 03 Feb 2012 12:48:31 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1RtNEk-000746-Ho
	for submit <at> debbugs.gnu.org; Fri, 03 Feb 2012 12:47:51 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([140.186.70.17]:43656)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1RtNEk-000742-GQ
	for submit <at> debbugs.gnu.org; Fri, 03 Feb 2012 12:47:50 -0500
Received: from eggs.gnu.org ([140.186.70.92]:43794)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1RtNEj-0003pi-FF
	for bug-gnu-emacs@HIDDEN; Fri, 03 Feb 2012 12:47:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1RtNEf-00073D-F7
	for bug-gnu-emacs@HIDDEN; Fri, 03 Feb 2012 12:47:49 -0500
Received: from plane.gmane.org ([80.91.229.3]:53728)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1RtNEf-00072s-9x
	for bug-gnu-emacs@HIDDEN; Fri, 03 Feb 2012 12:47:45 -0500
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1RtNEd-0005Z7-VT
	for bug-gnu-emacs@HIDDEN; Fri, 03 Feb 2012 18:47:43 +0100
Received: from c-71-237-25-24.hsd1.co.comcast.net ([71.237.25.24])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Fri, 03 Feb 2012 18:47:43 +0100
Received: from kevin.d.rodgers by c-71-237-25-24.hsd1.co.comcast.net with
	local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Fri, 03 Feb 2012 18:47:43 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: bug-gnu-emacs@HIDDEN
From: Kevin Rodgers <kevin.d.rodgers@HIDDEN>
Subject: Re: bug#10654: 24.0.93; isearch-yank-line moved from C-y
Date: Fri, 03 Feb 2012 10:48:29 -0700
Lines: 19
Message-ID: <jgh6jl$vlq$1@HIDDEN>
References: <CAFw1JJ6QAeB0+yrNW7M2RyO0KoVBzMFd2PDv7DHJo1tKA1_9OA@HIDDEN>	<1a8vkp9g2v.fsf@HIDDEN>
	<CAFw1JJ4LQU8chmJ7pXEQQ5megAzFaeeG+ASoAMkpqkUwbQOxDA@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@HIDDEN
X-Gmane-NNTP-Posting-Host: c-71-237-25-24.hsd1.co.comcast.net
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US;
	rv:1.9.2.26) Gecko/20120129 Thunderbird/3.1.18
In-Reply-To: <CAFw1JJ4LQU8chmJ7pXEQQ5megAzFaeeG+ASoAMkpqkUwbQOxDA@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

On 1/30/12 1:19 PM, Aaron S. Hawley wrote:

> It would seem the binding for hitting C-y in Isearch to yank the rest
> of the line existed ever since Daniel LaLiberte wrote Isearch 20 years
> ago.  I guess its time has come.  This means hitting C-k C-/ C-s C-y
> rather than C-s C-y.  I can relinquish that C-y in Isearch wasn't
> consistent with global C-y in Emacs, but if word and character yanking
> are on C-w and C-M-y, respectively, it seems like line-yanking should
> be on a better binding than M-s C-e.

Or word and character yanking could be bound consistently: M-s M-f and M-s C-f

That approach would be a little less onerous if additional words or characters
could be added to the search string by additional M-f and C-f without prefixing
each with M-s.

-- 
Kevin Rodgers
Denver, Colorado, USA





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10654; Package emacs. Full text available.

Message received at 10654 <at> debbugs.gnu.org:


Received: (at 10654) by debbugs.gnu.org; 30 Jan 2012 23:10:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 30 18:10:15 2012
Received: from localhost ([127.0.0.1]:45803 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Rs0MY-0000Qx-7B
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2012 18:10:14 -0500
Received: from ps18281.dreamhost.com ([69.163.218.105]:43250
	helo=ps18281.dreamhostps.com)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <juri@HIDDEN>) id 1Rs0MV-0000Qo-Ie
	for 10654 <at> debbugs.gnu.org; Mon, 30 Jan 2012 18:10:12 -0500
Received: from localhost (ps18281.dreamhostps.com [69.163.218.105])
	by ps18281.dreamhostps.com (Postfix) with ESMTP id CAE31451C817;
	Mon, 30 Jan 2012 15:08:48 -0800 (PST)
From: Juri Linkov <juri@HIDDEN>
To: "Aaron S. Hawley" <aaron.s.hawley@HIDDEN>
Subject: Re: bug#10654: 24.0.93; isearch-yank-line moved from C-y
Organization: JURTA
References: <CAFw1JJ6QAeB0+yrNW7M2RyO0KoVBzMFd2PDv7DHJo1tKA1_9OA@HIDDEN>
Date: Tue, 31 Jan 2012 00:59:53 +0200
In-Reply-To: <CAFw1JJ6QAeB0+yrNW7M2RyO0KoVBzMFd2PDv7DHJo1tKA1_9OA@HIDDEN>
	(Aaron S. Hawley's message of "Mon, 30 Jan 2012 10:16:06 -0500")
Message-ID: <87liookd92.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 10654
Cc: 10654 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

> (define-key isearch-mode-map "\C-k" 'isearch-yank-line)

To tell the truth, this is exactly what I currently use in .emacs.

`C-k' is a very convenient binding for `isearch-yank-line',
but I hesitated to propose it for adding to isearch.el
because I expect the opposition to that.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10654; Package emacs. Full text available.

Message received at 10654 <at> debbugs.gnu.org:


Received: (at 10654) by debbugs.gnu.org; 30 Jan 2012 20:19:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 30 15:19:49 2012
Received: from localhost ([127.0.0.1]:45661 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Rrxhc-00049b-Qq
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2012 15:19:49 -0500
Received: from mail-bk0-f44.google.com ([209.85.214.44]:65343)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <aaron.s.hawley@HIDDEN>) id 1Rrxha-00049O-Ht
	for 10654 <at> debbugs.gnu.org; Mon, 30 Jan 2012 15:19:47 -0500
Received: by bkbzt4 with SMTP id zt4so3619824bkb.3
	for <10654 <at> debbugs.gnu.org>; Mon, 30 Jan 2012 12:19:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=FBO/ZLWSJWSnOOVAKeeddtmemtUEOtUTgEpaxzeFQOs=;
	b=FDjYUCdW2PTUsYSHsxIwp5+D5pv77kMGaCOaNV9IgPscbt+qmc9nsqS5+TsxFwFYO+
	IOc+fTJ/p/7knCV+ofGVeb7117/E+z3RigulBJGBnNvr1QhFEA8lEPoE3ma7A9pC1MtD
	FUj5AIZFs9MmLEXTovhrqwKVHZgEyDlnDVOYM=
MIME-Version: 1.0
Received: by 10.204.151.196 with SMTP id d4mr9373039bkw.29.1327954769313; Mon,
	30 Jan 2012 12:19:29 -0800 (PST)
Received: by 10.204.188.8 with HTTP; Mon, 30 Jan 2012 12:19:29 -0800 (PST)
In-Reply-To: <1a8vkp9g2v.fsf@HIDDEN>
References: <CAFw1JJ6QAeB0+yrNW7M2RyO0KoVBzMFd2PDv7DHJo1tKA1_9OA@HIDDEN>
	<1a8vkp9g2v.fsf@HIDDEN>
Date: Mon, 30 Jan 2012 15:19:29 -0500
Message-ID: <CAFw1JJ4LQU8chmJ7pXEQQ5megAzFaeeG+ASoAMkpqkUwbQOxDA@HIDDEN>
Subject: Re: bug#10654: 24.0.93; isearch-yank-line moved from C-y
From: "Aaron S. Hawley" <aaron.s.hawley@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 10654
Cc: 10654 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

On 1/30/12, Glenn Morris <rgm@HIDDEN> wrote:
> "Aaron S. Hawley" wrote:
>
>> I don't have any data to support that C-y is popular.
>
> The weight of opinion seems to be against you.

This is what I expected.

Thanks for tracking down the threads, Glenn.

It would seem the binding for hitting C-y in Isearch to yank the rest
of the line existed ever since Daniel LaLiberte wrote Isearch 20 years
ago.  I guess its time has come.  This means hitting C-k C-/ C-s C-y
rather than C-s C-y.  I can relinquish that C-y in Isearch wasn't
consistent with global C-y in Emacs, but if word and character yanking
are on C-w and C-M-y, respectively, it seems like line-yanking should
be on a better binding than M-s C-e.

Thanks again,
aaron

> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7700#11
>   I've always found the C-y binding in isearch "useless" and
>   counter-intuitive. I'd much rather make C-y and M-y behave like they
>   do in the minibuffer.
>
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8183#5
>   While I'm sure there's someone in the world who has a use for
>   searching for the entire next line, there are many, many more people
>   who find it useful to search for items from the kill ring.
>
> http://lists.gnu.org/archive/html/emacs-devel/2008-11/msg00687.html
>   I was reluctant about it in the first place.
>
>> I can confirm that putting `isearch-yank-line' to the `M-s C-e'
>> binding is unsatisfying (M-s C-k makes more sense).
>
> Here is the motivation:
> http://lists.gnu.org/archive/html/emacs-devel/2008-11/msg00606.html
>    bind `isearch-yank-line' to `M-s C-e' because `move-end-of-line' is
>    on `C-e'.

-- 
In general, we reserve the right to have a poor
memory--the computer, however, is supposed to
remember!  Poor computer.  -- Guy Lewis Steele Jr.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10654; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 10654 <at> debbugs.gnu.org:


Received: (at 10654) by debbugs.gnu.org; 30 Jan 2012 18:54:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 30 13:54:30 2012
Received: from localhost ([127.0.0.1]:45560 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrwN4-0001IW-4J
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2012 13:54:30 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:57653 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1RrwN2-0001IO-A8
	for 10654 <at> debbugs.gnu.org; Mon, 30 Jan 2012 13:54:29 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1RrwMq-0002zh-Q7; Mon, 30 Jan 2012 13:54:16 -0500
From: Glenn Morris <rgm@HIDDEN>
To: "Aaron S. Hawley" <aaron.s.hawley@HIDDEN>
Subject: Re: bug#10654: 24.0.93; isearch-yank-line moved from C-y
References: <CAFw1JJ6QAeB0+yrNW7M2RyO0KoVBzMFd2PDv7DHJo1tKA1_9OA@HIDDEN>
X-Spook: pre-emptive United Nations passwd Capricorn Gazprom asset
X-Ran: [YI2OI|?j|Q-MuUX%f(.VVI=k}|mtbv[MJ;,/GWl}`vF57E(5G*B5pM1IGA-ua7/;{)]),
X-Hue: green
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Mon, 30 Jan 2012 13:54:16 -0500
In-Reply-To: <CAFw1JJ6QAeB0+yrNW7M2RyO0KoVBzMFd2PDv7DHJo1tKA1_9OA@HIDDEN>
	(Aaron S. Hawley's message of "Mon, 30 Jan 2012 10:16:06 -0500")
Message-ID: <1a8vkp9g2v.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 10654
Cc: 10654 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

"Aaron S. Hawley" wrote:

> I don't have any data to support that C-y is popular.

The weight of opinion seems to be against you.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7700#11
  I've always found the C-y binding in isearch "useless" and
  counter-intuitive. I'd much rather make C-y and M-y behave like they
  do in the minibuffer.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8183#5
  While I'm sure there's someone in the world who has a use for
  searching for the entire next line, there are many, many more people
  who find it useful to search for items from the kill ring.

http://lists.gnu.org/archive/html/emacs-devel/2008-11/msg00687.html
  I was reluctant about it in the first place.

> I can confirm that putting `isearch-yank-line' to the `M-s C-e'
> binding is unsatisfying (M-s C-k makes more sense). 

Here is the motivation:
http://lists.gnu.org/archive/html/emacs-devel/2008-11/msg00606.html
   bind `isearch-yank-line' to `M-s C-e' because `move-end-of-line' is
   on `C-e'.

> Though, without any data maybe I'm the only person who uses it and
> needs a short key binding?
[...]
> How about the shorter (and obvious) key binding of C-k?
[...]
> (define-key isearch-mode-map "\C-k" 'isearch-yank-line)

Personally I have no opinion.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10654; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Jan 2012 15:16:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 30 10:16:49 2012
Received: from localhost ([127.0.0.1]:45314 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrsyP-0004X7-76
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2012 10:16:49 -0500
Received: from eggs.gnu.org ([140.186.70.92]:34231)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <aaron.s.hawley@HIDDEN>) id 1RrsyJ-0004Ws-Vl
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2012 10:16:47 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <aaron.s.hawley@HIDDEN>) id 1Rrsy0-00027t-GW
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2012 10:16:28 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([140.186.70.17]:34708)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aaron.s.hawley@HIDDEN>) id 1Rrsy0-00027p-F3
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2012 10:16:24 -0500
Received: from eggs.gnu.org ([140.186.70.92]:34261)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aaron.s.hawley@HIDDEN>) id 1Rrsxr-0006RL-GF
	for bug-gnu-emacs@HIDDEN; Mon, 30 Jan 2012 10:16:24 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <aaron.s.hawley@HIDDEN>) id 1Rrsxl-00024r-Ml
	for bug-gnu-emacs@HIDDEN; Mon, 30 Jan 2012 10:16:15 -0500
Received: from mail-bk0-f41.google.com ([209.85.214.41]:50442)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aaron.s.hawley@HIDDEN>) id 1Rrsxl-00024Z-0M
	for bug-gnu-emacs@HIDDEN; Mon, 30 Jan 2012 10:16:09 -0500
Received: by bkbzs2 with SMTP id zs2so2814283bkb.0
	for <bug-gnu-emacs@HIDDEN>; Mon, 30 Jan 2012 07:16:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=jZVK2YHZ5DKwwXnEAHm6u/EacLR65UVCkAnPcFc/8ZU=;
	b=FFyNywWZEIN0C8dT6u5DG7yTqmuN3h/iZLVIPfunSlHEXwOjEdn0zxBovxZuG0fxnB
	+QtTgPAJRdR+xDgo1d+dw6/aboMDR2vbMSaErR9u3PV6pWTYIxF6lRpu+ap8omMFcGyW
	H5kNIc/J+WTPFdNNdyclubwsyuD3OdbNRlRdw=
MIME-Version: 1.0
Received: by 10.204.143.131 with SMTP id v3mr8949067bku.83.1327936566916; Mon,
	30 Jan 2012 07:16:06 -0800 (PST)
Received: by 10.204.188.8 with HTTP; Mon, 30 Jan 2012 07:16:06 -0800 (PST)
Date: Mon, 30 Jan 2012 10:16:06 -0500
Message-ID: <CAFw1JJ6QAeB0+yrNW7M2RyO0KoVBzMFd2PDv7DHJo1tKA1_9OA@HIDDEN>
Subject: 24.0.93; isearch-yank-line moved from C-y
From: "Aaron S. Hawley" <aaron.s.hawley@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -3.4 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.4 (---)

I appreciate the new behavior of M-y in Isearch Mode.  I find it more
satisfying, and less frustrating, to be able to access the full kill
ring.

I was surprised that the previously unsatisfying command M-y overwrote
the behavior of C-y in Isearch Mode.  C-y had held the very useful
command of yanking the rest of the line into Isearch.  I eat and
breathe Diff output and line-oriented source code, so I would use the
C-y command often to search similar text or compare text in the buffer
or across buffers.  I use M-x diff or M-x compare-windows but Isearch
Mode can get the job done quicker in some cases.

I don't have any data to support that C-y is popular.  I won't suggest
that the bindings for Isearch Mode are anywhere near sane.  I recall I
was flummoxed by them at first.  The bindings are diabolical for
beginners in most ways, but how did I learn them if they weren't
coherent?  However, the new change is disruptive for existing users of
Emacs and after trying it for two weeks, I can confirm that putting
`isearch-yank-line' to the `M-s C-e' binding is unsatisfying (M-s C-k
makes more sense).  Though, without any data maybe I'm the only person
who uses it and needs a short key binding?

The proposed bindings for 24.1 are:

(define-key isearch-mode-map "\C-y" 'isearch-yank-kill)
(define-key isearch-mode-map "\M-y" 'isearch-yank-pop)
(define-key isearch-mode-map "\M-s\C-e" 'isearch-yank-line)

I'd prefer to revert partially to:

(define-key isearch-mode-map "\C-y" 'isearch-yank-line)
(define-key isearch-mode-map "\M-y" 'isearch-yank-pop)

Or keep the proposed new bindings, but at least give a better binding
than M-s C-e  for the old C-y.  How about the shorter (and obvious)
key binding of C-k?

(define-key isearch-mode-map "\C-y" 'isearch-yank-kill)
(define-key isearch-mode-map "\M-y" 'isearch-yank-pop)
(define-key isearch-mode-map "\C-k" 'isearch-yank-line)

Thanks for Emacs,
aaron

-- 
In general, we reserve the right to have a poor
memory--the computer, however, is supposed to
remember!  Poor computer.  -- Guy Lewis Steele Jr.




Acknowledgement sent to "Aaron S. Hawley" <aaron.s.hawley@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#10654; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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