From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#24379: [PATCH] lisp/bindings.el: Bind (yank-pop -1) to M-Y Date: Tue, 6 Sep 2016 07:33:50 -0700 (PDT) Message-ID: <301ed440-5d6e-4fc9-9fb9-c1991ed9c457@default> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473174121 23032 195.159.176.226 (6 Sep 2016 15:02:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2016 15:02:01 +0000 (UTC) To: Nils Berg , 24379@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 06 17:01:57 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhHsm-0004we-Im for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Sep 2016 17:01:52 +0200 Original-Received: from localhost ([::1]:34174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhHsk-00020a-G7 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Sep 2016 11:01:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhHSt-0004Nl-1A for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 10:35:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhHSo-0007sC-VI for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 10:35:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhHSo-0007s5-RK for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 10:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bhHSo-0007Yw-F5 for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 10:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Sep 2016 14:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24379 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 24379-submit@debbugs.gnu.org id=B24379.147317245028999 (code B ref 24379); Tue, 06 Sep 2016 14:35:02 +0000 Original-Received: (at 24379) by debbugs.gnu.org; 6 Sep 2016 14:34:10 +0000 Original-Received: from localhost ([127.0.0.1]:51400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhHRt-0007XZ-O7 for submit@debbugs.gnu.org; Tue, 06 Sep 2016 10:34:10 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:25951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhHRn-0007X0-4E for 24379@debbugs.gnu.org; Tue, 06 Sep 2016 10:34:04 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u86EXqS6005103 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 6 Sep 2016 14:33:53 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u86EXqUD020655 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 6 Sep 2016 14:33:52 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u86EXplW029432; Tue, 6 Sep 2016 14:33:51 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6753.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122996 Archived-At: > It's extremely useful to be able to traverse the kill ring > in both directions, especially when there's many entries in it. It may be. But users already have several ways to do this. > M-Y was the most intuitive binding for this to me, but one > could also argue in favor of C-M-y. FWIW, I hope that neither such binding is added by default. It is trivial for any user to add such a binding, if desired. Many users already have their own yanking (or other) commands bound to such keys. (Just google `emacs "C-M-y"' and `emacs "M-y"'.) In my case, for example, `M-y' is `icicle-yank-pop-commands', and `C-M-y' is `secondary-dwim'. ____ icicle-yank-pop-commands is an interactive compiled Lisp function in `icicles-cmd1.el'. It is bound to M-insert, M-y. (icicle-yank-pop-commands &optional ARG) For more information check the manuals. `yank-pop', `yank-pop-secondary', or `icicle-completing-yank'. Which of these is used depends on the previous command, as follows: * If the previous command was a yank-secondary command, then `yank-pop-secondary'. * Else if the previous command was a yank command (i.e. using the kill ring), then `yank-pop'. * Else `icicle-completing-yank'. In the last case (`icicle-completing-yank'), during completion you can use: * `C-,' to sort the candidates to yank in different ways (repeat) * `S-delete' to remove a candidate entry from the selection ring * `C-S-return' to copy a candidate to the other selection ring ____ secondary-dwim is an interactive compiled Lisp function in `second-sel.el'. It is bound to C-M-y, menu-bar edit secondary-dwim. (secondary-dwim ARG) For more information check the manuals. Do-What-I-Mean with the secondary selection. Prefix arg: None: Yank secondary. Zero: Select secondary as region. > 0: Move secondary to region. < 0: Swap region and secondary. Details: No prefix arg: Yank the secondary selection at point. Move point to the end of the inserted text. Leave mark where it was. Zero arg: Select the secondary selection and pop to its buffer. Non-zero arg: Move the secondary selection to this buffer's region. Negative arg: Also go to where the secondary selection was and select it as the region. That is, swap the region and the secondary selection.