From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Redefine "M-p" key binding in org-agenda-mode Date: Mon, 29 Oct 2007 16:07:38 +0000 Message-ID: <87ejfdrjjp.fsf@bzg.ath.cx> References: <4725EE92.4060902@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImXGE-0003Jm-12 for emacs-orgmode@gnu.org; Mon, 29 Oct 2007 12:14:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImXGD-0003Io-27 for emacs-orgmode@gnu.org; Mon, 29 Oct 2007 12:14:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImXGC-0003Ih-Sl for emacs-orgmode@gnu.org; Mon, 29 Oct 2007 12:14:40 -0400 Received: from mu-out-0910.google.com ([209.85.134.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ImWDS-0008VZ-L5 for emacs-orgmode@gnu.org; Mon, 29 Oct 2007 11:07:46 -0400 Received: by mu-out-0910.google.com with SMTP id g7so2123699muf for ; Mon, 29 Oct 2007 08:07:45 -0700 (PDT) In-Reply-To: <4725EE92.4060902@gmail.com> (Wanrong Lin's message of "Mon, 29 Oct 2007 09:30:42 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Wanrong Lin writes: > In my org-mode configuration, I bind globally "M-p" to "org-agenda" I think that binding `M-p' *globally* is a bad idea. `M-p' is the default keybinding in GNU Emacs when you need to navigate thru minibuffer history. In Org, it is used for example when you want to see the previous link in stored links. > (define-key org-agenda-mode-map (kbd "M-p") 'org-agenda) > > But the above key binding only works when the cursor is on a date line, > not a task line. On a task line, the old "priority-up" binding is still > effective. What version of Org are you using? AFAIK (kbd "M-p") is not associated to any keymap in latest Org. -- Bastien