emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Miro Bezjak <bezjak.miro@gmail.com>
To: emacs-orgmode@gnu.org
Subject: disable org-replace-disputed-keys for org-read-date
Date: Wed, 15 May 2013 11:37:01 +0200	[thread overview]
Message-ID: <CAMJqDfM7wDsAb1KYFAOgN-CjV6enLA7qi0pGY2Lc3kvDOL3byg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1041 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1284 bytes --]

             reply	other threads:[~2013-05-15  9:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-15  9:37 Miro Bezjak [this message]
2013-08-09  9:47 ` disable org-replace-disputed-keys for org-read-date Carsten Dominik
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=CAMJqDfM7wDsAb1KYFAOgN-CjV6enLA7qi0pGY2Lc3kvDOL3byg@mail.gmail.com \
    --to=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).