From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Roche Newsgroups: gmane.emacs.help Subject: Re: isearch semantics, 23 vs 24 Date: Sun, 27 Nov 2011 13:52:58 -0500 Message-ID: <87y5v1tn1x.fsf@pobox.com> References: <89C062A511614ED78C346BA5DC3DF0A3@us.oracle.com> <87zkfh1oo4.fsf@pobox.com> Reply-To: help-gnu-emacs@gnu.org, Tom Roche NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322419865 26180 80.91.229.12 (27 Nov 2011 18:51:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2011 18:51:05 +0000 (UTC) To: help-gnu-emacs@gnu.org, Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 27 19:51:01 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RUjoV-0002Iu-EV for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Nov 2011 19:50:56 +0100 Original-Received: from localhost ([::1]:46580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUjoU-0002eQ-Pb for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Nov 2011 13:50:54 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUjoP-0002eL-N0 for help-gnu-emacs@gnu.org; Sun, 27 Nov 2011 13:50:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUjoO-00018m-I8 for help-gnu-emacs@gnu.org; Sun, 27 Nov 2011 13:50:49 -0500 Original-Received: from b-pb-sasl-quonix.pobox.com ([208.72.237.35]:51021 helo=smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUjoO-00018i-EN for help-gnu-emacs@gnu.org; Sun, 27 Nov 2011 13:50:48 -0500 Original-Received: from smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 8034D50E4; Sun, 27 Nov 2011 13:50:47 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:in-reply-to:references:reply-to:date:message-id :mime-version:content-type; s=sasl; bh=s5oiJTBYdWi5l/r2+NlW/0mdz Dk=; b=Y+NDeJsJoAThKzKaPXEsvybyNa+YVHVTgsGZWS80/puACMS1SKuqt2jm3 2DgqnywVd7W7Zf5L2RzZ3otVckSR7/t/Hc2gWZxVDetfxUij45oKX0GXdY6l4V7F 6lIPyVsFBBJmjEZbhLRGaTg1PVP2IdSnZd7VGHkQAb98leOJiM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :in-reply-to:references:reply-to:date:message-id:mime-version :content-type; q=dns; s=sasl; b=T6+2b/Omb79DX42lI+oNz9MI9Zq0480w tLRLHI/25F6yq7DaeOkrCaL0vCIhA8jyTpU+I9zhqtt9qoMC9lOO3Rou5LDLwY9n EKc9aUV0oGU9kUp71VNPhj59BpWfG8obpakZkGTst1sXbMIxLJPksQhrIhOQbZj8 1sf/I+kG/nM= Original-Received: from b-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 7880450E3; Sun, 27 Nov 2011 13:50:47 -0500 (EST) Original-Received: from tlrPanP5.pobox.com (unknown [24.225.70.135]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by b-sasl-quonix.pobox.com (Postfix) with ESMTPSA id E843B50E2; Sun, 27 Nov 2011 13:50:46 -0500 (EST) In-Reply-To: <89C062A511614ED78C346BA5DC3DF0A3@us.oracle.com> User-Agent: GNU Emacs 24.0.91.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) X-Pobox-Relay-ID: B7D4E97E-1928-11E1-A069-9DB42E706CDE-07218935!b-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 208.72.237.35 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83070 Archived-At: Tom Roche Sun, Nov 27, 2011 at 12:05 PM >> In emacs 23 (and for as long as I can remember before that), if I >> then did >> C-s C-y C-s >> I would get a search for the entire first line (of '-'): point >> would be at the end of the second separator, which would be >> found/highlighted--this I expect, know (certainly my fingers know >> this :-), and prefer. But in emacs 24, >> C-s C-y C-s >> causes a (usually failing) search for whatever was last killed; >> instead, to get the desired behavior, I must do >> C-s M-s C-e C-s >> Is there an easy way to make my init.el (aka .emacs) tell emacs 24 >> that I want the old semantics Drew Adams Sun, 27 Nov 2011 09:35:30 -0800 > (define-key isearch-mode-map (kbd "C-y") 'isearch-yank-line) > How to find that out easily on your own? Look in the isearch.el Right, but then I need to find that. Much more conveniently: > ask Emacs itself, like this: > 1. Load this library: > http://www.emacswiki.org/emacs/download/help-fns%2b.el > 2. C-h M-k isearch-mode-map > Do that in Emacs 23, and you see that `C-y' is bound to > `isearch-yank-line'. > Do it in Emacs 24, and you see that `C-y' is bound to > `isearch-yank-kill' (and `isearch-yank-line' is bound to `M-s C-e', Yes indeed! help-fns+.el works as advertised, just 0 Download help-fns+.el to a directory in your load-path. 1 I byte-compile-file'd it in emacs 23, per emacs-version interoperability instructions in file. 2 Add (load "help-fns+") to your init.el or helper file. 3 Restart emacs. thanks, Tom Roche