Explorar el Código

Merge branch 'maint'

Nicolas Goaziou hace 8 años
padre
commit
1ac8e29605
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      lisp/org.el

+ 2 - 1
lisp/org.el

@@ -8911,7 +8911,8 @@ with the original repeater."
     (let* ((end (point))
 	   (template (buffer-substring beg end))
 	   (shift-n (and doshift (string-to-number (match-string 1 shift))))
-	   (shift-what (pcase (match-string 2 shift)
+	   (shift-what (pcase (and doshift (match-string 2 shift))
+			 (`nil nil)
 			 ("d" 'day)
 			 ("w" (setq shift-n (* 7 shift-n)) 'day)
 			 ("m" 'month)