Explorar o código

Merge branch 'maint'

Bastien Guerry %!s(int64=12) %!d(string=hai) anos
pai
achega
e87dc9df1a
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      lisp/org.el

+ 5 - 1
lisp/org.el

@@ -16075,9 +16075,13 @@ So these are more for recording a certain time/date."
     (set-keymap-parent map minibuffer-local-map)
     (org-defkey map (kbd ".")
                 (lambda () (interactive)
-		  (if (= (char-before) 32)
+		  ;; Are we at the beginning of the prompt?
+		  (if (looking-back "^[^:]+: ")
 		      (org-eval-in-calendar '(calendar-goto-today))
 		    (insert "."))))
+    (org-defkey map (kbd "C-.")
+                (lambda () (interactive)
+		  (org-eval-in-calendar '(calendar-goto-today))))
     (org-defkey map [(meta shift left)]
                 (lambda () (interactive)
                   (org-eval-in-calendar '(calendar-backward-month 1))))