From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miro Bezjak Subject: disable org-replace-disputed-keys for org-read-date Date: Wed, 15 May 2013 11:37:01 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf307f319e4fd54604dcbe805f Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcY9Y-0005bG-J3 for emacs-orgmode@gnu.org; Wed, 15 May 2013 05:37:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcY9W-00032r-D1 for emacs-orgmode@gnu.org; Wed, 15 May 2013 05:37:44 -0400 Received: from mail-vb0-x22f.google.com ([2607:f8b0:400c:c02::22f]:55806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcY9W-00032h-7S for emacs-orgmode@gnu.org; Wed, 15 May 2013 05:37:42 -0400 Received: by mail-vb0-f47.google.com with SMTP id x14so263822vbb.6 for ; Wed, 15 May 2013 02:37:41 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --20cf307f319e4fd54604dcbe805f Content-Type: text/plain; charset=UTF-8 Hi all, for orgmode 7.9.x I had the following defadvice. ---- (defadvice org-read-date (around my-no-disputed-keys activate) "Ignore org-replace-disputed-keys when calendar is active." (let ((org-replace-disputed-keys nil)) ad-do-it)) ---- Contrary to the `org-replace-disputed-keys' documentation (only being relevant at load-time), the advice worked because in 7.9.x `org-read-date' used `org-defkey' to add the relevant keybindings each time it was called. In 8.0.x, this advice no longer works since `org-read-date-minibuffer-local-map' is being used. Basically, I'm trying to use windmove keys, but not when I'm entering dates through calendar. In calendar, shift + arrow keys are really handy and calendar is not active for a long time. Does anyone have any suggestion how I can achieve that in 8.0.x without patching org.el? Should I make a patch to introduce defcustom that will ignore disputed keys while setting up `org-read-date-minibuffer-local-map'? Anyone else interested in this besides me? Kind Regards, Miro --20cf307f319e4fd54604dcbe805f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

for orgmode 7.9.x= I had the following defadvice.

----
(defadvice org-read-date (ar= ound my-no-disputed-keys activate)
=C2=A0 "Ignore org-replace-dispu= ted-keys when calendar is active."
=C2=A0 (let ((org-replace-disputed-keys nil))
=C2=A0=C2=A0=C2=A0 ad-do-i= t))
----

Contrary to the `org-replace-disputed-keys' do= cumentation (only being relevant at load-time), the advice worked because i= n 7.9.x `org-read-date' used `org-defkey' to add the relevant keybi= ndings each time it was called.

In 8.0.x, this advice no longer works since `org-read-date-minibu= ffer-local-map' is being used.

Basically, I'm try= ing to use windmove keys, but not when I'm entering dates through calen= dar. In calendar, shift + arrow keys are really handy and calendar is not a= ctive for a long time.

Does anyone have any suggestion how I can achieve that in 8.= 0.x without patching org.el?

Should I make a patch to int= roduce defcustom that will ignore disputed keys while setting up `org-read-= date-minibuffer-local-map'? Anyone else interested in this besides me?<= br>

Kind Regards,
Miro

--20cf307f319e4fd54604dcbe805f--