From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: isearch semantics, 23 vs 24 Date: Sun, 27 Nov 2011 09:35:30 -0800 Message-ID: <89C062A511614ED78C346BA5DC3DF0A3@us.oracle.com> References: <87zkfh1oo4.fsf@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322415357 29384 80.91.229.12 (27 Nov 2011 17:35:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2011 17:35:57 +0000 (UTC) To: , "'Tom Roche'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 27 18:35:53 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 1RUidt-0002pU-DA for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Nov 2011 18:35:53 +0100 Original-Received: from localhost ([::1]:41324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUidt-0003Er-0g for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Nov 2011 12:35:53 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUidn-0003EJ-Hq for help-gnu-emacs@gnu.org; Sun, 27 Nov 2011 12:35:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUidl-0005n3-RX for help-gnu-emacs@gnu.org; Sun, 27 Nov 2011 12:35:47 -0500 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:26669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUidl-0005mE-MI for help-gnu-emacs@gnu.org; Sun, 27 Nov 2011 12:35:45 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pARHZfXZ021988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 27 Nov 2011 17:35:42 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pARHZfgB001656 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 27 Nov 2011 17:35:41 GMT Original-Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pARHZZxT005212; Sun, 27 Nov 2011 11:35:35 -0600 Original-Received: from dradamslap1 (/10.159.43.72) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 27 Nov 2011 09:35:35 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87zkfh1oo4.fsf@pobox.com> Thread-Index: AcytJn+3fL1CLTjBQpiF3hKWwbNbhgAA192g X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4ED274EE.0050,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 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:83067 Archived-At: > In emacs 23 ... if I then did C-s C-y C-s > I would get a search for the entire first line... But in > emacs 24, C-s C-y C-s ... search for whatever was last killed; > instead, to get the desired behavior, I must do C-s M-s C-e C-s > how best/easiest to restore the old behavior? (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 code. Or 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', as you noticed).