From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: disable org-replace-disputed-keys for org-read-date Date: Mon, 2 Sep 2013 07:50:23 +0200 Message-ID: <048E0E03-33C0-42F4-9359-733A463C17A4@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGNrP-000673-AD for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 02:43:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGNrG-0007ap-PH for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 02:43:39 -0400 Received: from mail-ea0-x236.google.com ([2a00:1450:4013:c01::236]:46751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGNrG-0007ac-IJ for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 02:43:30 -0400 Received: by mail-ea0-f182.google.com with SMTP id o10so2140661eaj.13 for ; Sun, 01 Sep 2013 23:43:29 -0700 (PDT) In-Reply-To: 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: Miro Bezjak Cc: emacs-orgmode@gnu.org Hi Miro, I have implemented this. Please test and make sure it works. Regards - Carsten On 15.5.2013, at 11:37, Miro Bezjak wrote: > Hi all, >=20 > for orgmode 7.9.x I had the following defadvice. >=20 > ---- > (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)) > ---- >=20 > 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. >=20 > In 8.0.x, this advice no longer works since = `org-read-date-minibuffer-local-map' is being used. >=20 > 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. >=20 > Does anyone have any suggestion how I can achieve that in 8.0.x = without patching org.el? >=20 > 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? >=20 > Kind Regards, > Miro >=20