From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Adamsky Newsgroups: gmane.emacs.bugs Subject: bug#9387: [PATCH] new standard keybindings for recentf-dialog Date: Sat, 27 Aug 2011 21:35:21 +0200 Message-ID: <20110827213521.2c10279e@asmara> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/v.wGhu7uKP=gEmqrezAk1dc" X-Trace: dough.gmane.org 1314478665 23768 80.91.229.12 (27 Aug 2011 20:57:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 27 Aug 2011 20:57:45 +0000 (UTC) To: 9387@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 27 22:57:41 2011 Return-path: Envelope-to: geb-bug-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 1QxPwg-0007ta-LV for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Aug 2011 22:57:38 +0200 Original-Received: from localhost ([::1]:60070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxPwf-00060m-Kb for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Aug 2011 16:57:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxPnY-0005Gg-4v for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 16:48:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxPnX-0000lu-3M for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 16:48:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxPnW-0000lq-Vd for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 16:48:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QxPqI-0000nH-JH; Sat, 27 Aug 2011 16:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Florian Adamsky Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Aug 2011 20:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9387 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.13144782333015 (code B ref -1); Sat, 27 Aug 2011 20:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Aug 2011 20:50:33 +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 1QxPpo-0000mZ-SJ for submit@debbugs.gnu.org; Sat, 27 Aug 2011 16:50:33 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QxPJL-00076K-Qi for submit@debbugs.gnu.org; Sat, 27 Aug 2011 16:17:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxPGY-0004GR-Ok for submit@debbugs.gnu.org; Sat, 27 Aug 2011 16:14:07 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:49157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxPGY-0004GN-Kw for submit@debbugs.gnu.org; Sat, 27 Aug 2011 16:14:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxPGX-0002qe-Qt for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 16:14:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxPGW-0004Fy-N0 for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 16:14:05 -0400 Original-Received: from static.109.81.47.78.clients.your-server.de ([78.47.81.109]:54353 helo=haktar.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxPGW-0004F3-HX for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2011 16:14:04 -0400 Original-Received: by haktar.org (Postfix, from userid 1002) id 6F412260257C; Sat, 27 Aug 2011 21:35:24 +0200 (CEST) Original-Received: from asmara (p57ACF238.dip.t-dialin.net [87.172.242.56]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: cit) by haktar.org (Postfix) with ESMTPSA id 31E5D260257A for ; Sat, 27 Aug 2011 21:35:23 +0200 (CEST) X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-pc-linux-gnu) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sat, 27 Aug 2011 16:50:32 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 27 Aug 2011 16:51:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Sat, 27 Aug 2011 16:57:36 -0400 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50380 Archived-At: --MP_/v.wGhu7uKP=gEmqrezAk1dc Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline ** 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.") --MP_/v.wGhu7uKP=gEmqrezAk1dc Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=recentf.el.diff 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.") --MP_/v.wGhu7uKP=gEmqrezAk1dc--