From: Bastien Guerry Date: Wed, 24 Apr 2013 08:05:36 +0000 (+0200) Subject: org.el (org-read-date-minibuffer-local-map): Call `calendar-goto-today' only if there... X-Git-Tag: release_8.0.2~14 X-Git-Url: https://repo.or.cz/w/org-mode.git/commitdiff_plain/240d645dbb2d7d8968162d9d36058ea406ad4b67 org.el (org-read-date-minibuffer-local-map): Call `calendar-goto-today' only if there is a space before point in the minibuffer prompt * org.el (org-read-date-minibuffer-local-map): Call `calendar-goto-today' only if there is a space before point in the minibuffer prompt. Thanks to Michael Brand and others who asked for this regression to be fixed. --- diff --git a/lisp/org.el b/lisp/org.el index 849e34cc8..0d8865445 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -16074,7 +16074,9 @@ So these are more for recording a certain time/date." (set-keymap-parent map minibuffer-local-map) (org-defkey map (kbd ".") (lambda () (interactive) - (org-eval-in-calendar '(calendar-goto-today)))) + (if (= (char-before) 32) + (org-eval-in-calendar '(calendar-goto-today)) + (insert ".")))) (org-defkey map [(meta shift left)] (lambda () (interactive) (org-eval-in-calendar '(calendar-backward-month 1))))