From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nils Berg Newsgroups: gmane.emacs.bugs Subject: bug#24379: [PATCH] lisp/bindings.el: Bind (yank-pop -1) to M-Y Date: Tue, 6 Sep 2016 15:28:40 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114a845a67db2f053bd6c6f9 X-Trace: blaine.gmane.org 1473169802 2645 195.159.176.226 (6 Sep 2016 13:50:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2016 13:50:02 +0000 (UTC) To: 24379@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 06 15:49:58 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 1bhGl7-00081z-EB for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Sep 2016 15:49:53 +0200 Original-Received: from localhost ([::1]:33550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhGl5-00070m-5c for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Sep 2016 09:49:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhGQz-0005sR-1z for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 09:29:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhGQx-0006Dd-5e for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 09:29:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhGQx-0006DY-2K for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 09:29:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bhGQw-0005oD-VI for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 09:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nils Berg Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Sep 2016 13:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24379 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147316853422295 (code B ref -1); Tue, 06 Sep 2016 13:29:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Sep 2016 13:28:54 +0000 Original-Received: from localhost ([127.0.0.1]:50986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhGQo-0005nX-6b for submit@debbugs.gnu.org; Tue, 06 Sep 2016 09:28:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhGQm-0005nH-MC for submit@debbugs.gnu.org; Tue, 06 Sep 2016 09:28:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhGQg-0006A0-Rc for submit@debbugs.gnu.org; Tue, 06 Sep 2016 09:28:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhGQg-00069p-OU for submit@debbugs.gnu.org; Tue, 06 Sep 2016 09:28:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhGQe-0005YR-BY for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 09:28:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhGQc-00068S-Dy for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 09:28:43 -0400 Original-Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:33801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhGQc-000685-9Q for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 09:28:42 -0400 Original-Received: by mail-qk0-x229.google.com with SMTP id t7so217094292qkh.1 for ; Tue, 06 Sep 2016 06:28:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=4wyaIs//epDtBZaPU3LeApvAO7tKM2NsIfKKiBMOHI0=; b=HYRYS8JH5xXq8O4sVU2mVdMNDsxarEaOUqteZAtUr77xLi8PBlhFbOQqnCAl2Q9Ut1 Nc/bAm9zCjPLGWpcxlNH4dR+nQx8uaUJyA6ObYHtxVAqVPQ4IEgA/jEIhjm/tfnDPo+X d9vM2r431fwu4WdqZysMcvSinAbsy7/0eRogoAMmByrCTsNcgI7raQmyKBQb6iGUb99b iF7yXFMTfH/zo5AmLaEdEw5fuTB5/TyEzP3lY88qNBSIreybh1OMVYrt1RK8lFCJ1Sno 71iWPmFqDLap694qMX4WB/fq7pHdU255ZUEYozYBx68vOsJWCj27/GkYZExdbbSZ/J2H 6jtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4wyaIs//epDtBZaPU3LeApvAO7tKM2NsIfKKiBMOHI0=; b=EWLWdwt8qj5WK0Y1ZzBovpGKfsLlxWpKPT0t69+GDu1+yez3dFWeIdY6tzg+78h1Sm 6I0gsEleAHSkcXd1y7ZnwEALo2oL3u0v9Qn7mKS+uD4I/DDcF1tNsRRscnNqT95xd/Bv XK0aMQE++GsoNzZZzkKE7POeLbNguK/aOBv4eWPhpDBXwfsigYz1bOBMY1fEFVGS3a9o ddZ4o4oPVG0cFNy5kE2EP/21gsDOtlgoQ/bBOxMnjIwjFtkMPdM2MiXMpJjaFvT8ZI2c nMdeGs5bjVrvsG6S11PK5xyo/am0AxjGITv+MUNzhWgmdfoyao9t0qAPqs4TGTf/WZx9 ZlLQ== X-Gm-Message-State: AE9vXwOn70zMIzG3ZsBeatg91np+t2LVrXTJGpmoAuAmAV43QQva5S/p7B9zzb5KY31Fyu26ejHjUA7BelmePqSO X-Received: by 10.55.82.4 with SMTP id g4mr47265289qkb.220.1473168521259; Tue, 06 Sep 2016 06:28:41 -0700 (PDT) Original-Received: by 10.237.37.103 with HTTP; Tue, 6 Sep 2016 06:28:40 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:122988 Archived-At: --001a114a845a67db2f053bd6c6f9 Content-Type: text/plain; charset=UTF-8 It's extremely useful to be able to traverse the kill ring in both directions, especially when there's many entries in it. M-Y was the most intuitive binding for this to me, but one could also argue in favor of C-M-y. --- lisp/bindings.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/bindings.el b/lisp/bindings.el index c13f4b1..42efd05 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el @@ -889,6 +889,7 @@ if `inhibit-field-text-motion' is non-nil." (define-key esc-map "\C-w" 'append-next-kill) (define-key global-map "\C-y" 'yank) (define-key esc-map "y" 'yank-pop) +(define-key esc-map "Y" (lambda () (interactive) (yank-pop -1))) ;; (define-key ctl-x-map "a" 'append-to-buffer) --001a114a845a67db2f053bd6c6f9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It's extremely useful to be able to traverse the = kill ring in both
directions, especially when there's many en= tries in it.

M-Y was the most intuitive binding fo= r this to me, but one
could also argue in favor of C-M-y.

---
=C2=A0lisp/bindings.el | 1 +
=C2= =A01 file changed, 1 insertion(+)

diff --git a/lis= p/bindings.el b/lisp/bindings.el
index c13f4b1..42efd05 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@= @ -889,6 +889,7 @@ if `inhibit-field-text-motion' is non-nil."
=C2=A0(define-key esc-map "\C-w" 'append-next-kill)
=C2=A0(define-key global-map "\C-y" 'yank)
= =C2=A0(define-key esc-map "y" 'yank-pop)
+(define-k= ey esc-map "Y" (lambda () (interactive) (yank-pop -1)))
=C2=A0
=C2=A0;; (define-key ctl-x-map "a" 'append-= to-buffer)
=C2=A0
--001a114a845a67db2f053bd6c6f9--