unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Florian Adamsky <florian@adamsky.it>
To: 9387@debbugs.gnu.org
Subject: bug#9387: [PATCH] new standard keybindings for recentf-dialog
Date: Sat, 27 Aug 2011 21:35:21 +0200	[thread overview]
Message-ID: <20110827213521.2c10279e@asmara> (raw)

[-- Attachment #1: Type: text/plain, Size: 944 bytes --]

** Description

I added two new keybindings to recentf-dialog for next-line (kbd "n")
and previous-line (kbd "p") in order to make it more consistent with
other major-modes like dired, ibuffer or org-mode.

** ChangeLog

2011-09-27 Florian Adamsky (florian@adamsky.it)

       * recentf.el (recentf-dialog-mode-map): Added two keybindings
         for next-line "n" and previous-line "p" in order to make
         recentf more consistent with ibuffer, dired or org-mode.

** The patch itself

index fc9b788..01efecf 100644
--- a/lisp/recentf.el
+++ b/lisp/recentf.el
@@ -1061,6 +1061,8 @@ Go to the beginning of buffer if not found."
   (let ((km (copy-keymap recentf--shortcuts-keymap)))
     (set-keymap-parent km widget-keymap)
     (define-key km "q" 'recentf-cancel-dialog)
+    (define-key km "n" 'next-line)
+    (define-key km "p" 'previous-line)
     (define-key km [follow-link] "\C-m")
     km)
   "Keymap used in recentf dialogs.")

[-- Attachment #2: recentf.el.diff --]
[-- Type: text/x-patch, Size: 498 bytes --]

diff --git a/lisp/recentf.el b/lisp/recentf.el
index fc9b788..01efecf 100644
--- a/lisp/recentf.el
+++ b/lisp/recentf.el
@@ -1061,6 +1061,8 @@ Go to the beginning of buffer if not found."
   (let ((km (copy-keymap recentf--shortcuts-keymap)))
     (set-keymap-parent km widget-keymap)
     (define-key km "q" 'recentf-cancel-dialog)
+    (define-key km "n" 'next-line)
+    (define-key km "p" 'previous-line)
     (define-key km [follow-link] "\C-m")
     km)
   "Keymap used in recentf dialogs.")

             reply	other threads:[~2011-08-27 19:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-27 19:35 Florian Adamsky [this message]
2011-09-11  2:15 ` bug#9387: [PATCH] new standard keybindings for recentf-dialog Lars Magne Ingebrigtsen
2012-04-10  2:45   ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110827213521.2c10279e@asmara \
    --to=florian@adamsky.it \
    --cc=9387@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).