emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Miro Bezjak <bezjak.miro@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: disable org-replace-disputed-keys for org-read-date
Date: Fri, 9 Aug 2013 11:47:01 +0200	[thread overview]
Message-ID: <E7003CAF-8D33-4869-B3A3-9E7C99D6EEFD@gmail.com> (raw)
In-Reply-To: <CAMJqDfM7wDsAb1KYFAOgN-CjV6enLA7qi0pGY2Lc3kvDOL3byg@mail.gmail.com>


On 15.5.2013, at 11:37, Miro Bezjak <bezjak.miro@gmail.com> wrote:

> 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?

I think I would even accept a patch that ignored disputed keys entirely when setting up this special map.
Or has this issue been solved in another way I am not aware of? (Sorry, I am trying to catch up...)

- Carsten

> 
> Kind Regards,
> Miro
> 

  reply	other threads:[~2013-08-09  9:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-15  9:37 disable org-replace-disputed-keys for org-read-date Miro Bezjak
2013-08-09  9:47 ` Carsten Dominik [this message]
2013-09-02  5:50 ` Carsten Dominik
2013-09-07 20:22   ` Miro Bezjak
2013-09-07 21:39     ` Miro Bezjak
2013-09-08  5:34       ` Carsten Dominik

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.orgmode.org/

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

  git send-email \
    --in-reply-to=E7003CAF-8D33-4869-B3A3-9E7C99D6EEFD@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=bezjak.miro@gmail.com \
    --cc=emacs-orgmode@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/org-mode.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).