Merge branch 'maint'

This commit is contained in:
Marco Wahl 2017-01-29 16:14:29 +01:00
commit 195151a153
2 changed files with 11 additions and 2 deletions

View File

@ -13373,7 +13373,7 @@ TYPE is either `deadline' or `scheduled'. See `org-deadline' or
(string-match org-repeat-re time)
(match-string 1 time))
(and (org-string-nw-p old-date)
(string-match "\\([.+-]+[0-9]+ [hdwmy]\
(string-match "\\([.+-]+[0-9]+[hdwmy]\
\\(?:[/ ][-+]?[0-9]+[hdwmy]\\)?\\)"
old-date)
(match-string 1 old-date)))))

View File

@ -4304,7 +4304,16 @@ Paragraph<point>"
(goto-char (point-max))
(org-schedule nil "2012-03-29"))
(replace-regexp-in-string
"\\( [.A-Za-z]+\\)>" "" (buffer-string) nil nil 1)))))
"\\( [.A-Za-z]+\\)>" "" (buffer-string) nil nil 1))))
(should
;; check if a repeater survives re-scheduling.
(string-match-p
"\\* H\nSCHEDULED: <2017-02-01 [.A-Za-z]* \\+\\+7d>\n"
(org-test-with-temp-text "* H\nSCHEDULED: <2017-01-19 ++7d>\n"
(let ((org-adapt-indentation nil)
(org-last-inserted-timestamp nil))
(org-schedule nil "2017-02-01"))
(buffer-string)))))
;;; Property API