0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-26 04:02:52 +00:00

Merge branch 'master' of orgmode.org:org-mode

This commit is contained in:
Bastien Guerry 2013-03-26 16:00:56 +01:00
commit aa7b1e0b39

View file

@ -6493,12 +6493,15 @@ Any match of REMOVE-RE will be removed from TXT."
(match-string 2 txt)) (match-string 2 txt))
t t txt)))) t t txt))))
(when (derived-mode-p 'org-mode) (when (derived-mode-p 'org-mode)
(setq effort (ignore-errors (get-text-property 0 'org-effort txt))) (setq effort (ignore-errors (get-text-property 0 'org-effort txt))))
(if effort
(setq neffort (org-duration-string-to-minutes effort) ;; org-agenda-add-time-grid-maybe calls us with *Agenda* as
effort (setq effort (concat "[" effort "]"))) ;; current buffer, so move this check outside of above
;; prevent erroring out with %e format when there is no effort (if effort
(setq effort ""))) (setq neffort (org-duration-string-to-minutes effort)
effort (setq effort (concat "[" effort "]")))
;; prevent erroring out with %e format when there is no effort
(setq effort ""))
(when remove-re (when remove-re
(while (string-match remove-re txt) (while (string-match remove-re txt)