فهرست منبع

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.
Bastien Guerry 12 سال پیش
والد
کامیت
240d645dbb
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      lisp/org.el

+ 3 - 1
lisp/org.el

@@ -16074,7 +16074,9 @@ So these are more for recording a certain time/date."
     (set-keymap-parent map minibuffer-local-map)
     (set-keymap-parent map minibuffer-local-map)
     (org-defkey map (kbd ".")
     (org-defkey map (kbd ".")
                 (lambda () (interactive)
                 (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)]
     (org-defkey map [(meta shift left)]
                 (lambda () (interactive)
                 (lambda () (interactive)
                   (org-eval-in-calendar '(calendar-backward-month 1))))
                   (org-eval-in-calendar '(calendar-backward-month 1))))