From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: gnu.emacs.bug@wongs.net Newsgroups: gmane.emacs.bugs Subject: bug#8183: isearch yanking Date: Sat, 5 Mar 2011 16:03:52 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1299370133 11657 80.91.229.12 (6 Mar 2011 00:08:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Mar 2011 00:08:53 +0000 (UTC) To: 8183@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 06 01:08:48 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pw1Wh-0002fl-VW for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Mar 2011 01:08:48 +0100 Original-Received: from localhost ([127.0.0.1]:35646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pw1Wh-0000Bf-2Z for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Mar 2011 19:08:47 -0500 Original-Received: from [140.186.70.92] (port=50191 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pw1Us-0008F5-9k for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 19:06:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pw1Uq-00050b-OP for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 19:06:54 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pw1Uq-00050X-LD for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 19:06:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pw1U2-000413-KA; Sat, 05 Mar 2011 19:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: gnu.emacs.bug@wongs.net Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Mar 2011 00:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8183 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.129936996115428 (code B ref -1); Sun, 06 Mar 2011 00:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Mar 2011 00:06:01 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pw1U0-00040m-Lx for submit@debbugs.gnu.org; Sat, 05 Mar 2011 19:06:01 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pw1S6-0003xm-PC for submit@debbugs.gnu.org; Sat, 05 Mar 2011 19:04:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pw1S0-0004eG-DW for submit@debbugs.gnu.org; Sat, 05 Mar 2011 19:03:57 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:57233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pw1S0-0004eC-BS for submit@debbugs.gnu.org; Sat, 05 Mar 2011 19:03:56 -0500 Original-Received: from [140.186.70.92] (port=46228 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pw1Rz-0007NH-Cn for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 19:03:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pw1Ry-0004du-Ab for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 19:03:55 -0500 Original-Received: from mail-gx0-f169.google.com ([209.85.161.169]:62142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pw1Ry-0004do-84 for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 19:03:54 -0500 Original-Received: by gxk2 with SMTP id 2so1575050gxk.0 for ; Sat, 05 Mar 2011 16:03:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=Pq5PbyBAH/2khY3lO8WH/HQmU9y6ZW8RfQm9TLVKcmk=; b=qnmupGva6jJ7Djybae0f/JDGEQnPTXBz0qTSsEsTjh58561yZ/Q6/jp1r/AIs1bV5s frQbOsmUVKf3u00ExkIezM3I1JP2elIAzqTD0RMywrU619OdSaima/rafDVBSctCgCw6 eycZ+boSFRFo+4i2jW2WOliGKoE6tcIP3KHD0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=f9PSi5vTGO6DREHggRbF3GvpVdcMptCRdGKG+/usyGM1wzdA0SXu63vGTEx684oEJa QVScyx8XNpqfvE7VfFIQxrbvkujYO4KYQw+A1uynUHLuURIN+ZivXURfC6vuPh/CwcFi 31/P8sDtLW8vaMAx/vXWa+TxNVD7xctVy3s2g= Original-Received: by 10.236.191.39 with SMTP id f27mr606175yhn.47.1299369832852; Sat, 05 Mar 2011 16:03:52 -0800 (PST) Original-Received: by 10.236.105.170 with HTTP; Sat, 5 Mar 2011 16:03:52 -0800 (PST) X-Google-Sender-Auth: Ukurh16RX7YEKnIc_DdC-fcVlS4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sat, 05 Mar 2011 19:05:59 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 05 Mar 2011 19:06:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Sat, 05 Mar 2011 19:08:43 -0500 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44675 Archived-At: Hello! I just spent a while trying to track down a bug in isearch.el that turned out to be a "feature". C-y has been hijacked to do some weird thing where it pastes the entire next line of the buffer instead of the kill ring. (Wacky!) Please change it so that C-y works normally. 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. Additionally, the way isearch is remapping the C-y key breaks Emacs's consistency. One of the wonderful things about Emacs is that it is not modal. The basic keys always work the same regardless of what "mode" you are in. If you are not convinced, please consider that cut and paste is fundamental to Emacs. C-y is so basic to how Emacs functions that it's been listed in the Emacs tutorial (C-h t) for a quarter century. The keybindings mentioned in the tutorial shouldn't be altered lightly. And finally, think about what a pain it is to teach people new to Emacs that C-y works as yank and M-y is yank-pop, EXCEPT when doing a search where M-y is yank and there is no way to do a yank-pop. This one small quirk has added work not only on to people who are trying to learn Emacs, but on to the people teaching Emacs and trying to write easy to understand documentation and tutorials. Fortunately, the fix for this is easy. In isearch.el, just change the line that defines C-y as isearch-yank-line to isearch-yank-kill. - (define-key map "\C-y" 'isearch-yank-line) + (define-key map "\C-y" 'isearch-yank-kill) Thank you, --B. Wong