aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Dominik2007-10-25 13:57:28 +0000
committerCarsten Dominik2007-10-25 13:57:28 +0000
commit613bf6a74fc576bf44e8d5645ec09cae25fec7c5 (patch)
treebfc82e57f8bf120cff3ed0f41fde5ef003bf215b
parent89be04afb57024012c6009fa38250eec868325c7 (diff)
downloademacs-613bf6a74fc576bf44e8d5645ec09cae25fec7c5.tar.gz
emacs-613bf6a74fc576bf44e8d5645ec09cae25fec7c5.zip
(org-todo): Save and restore match data.
-rw-r--r--lisp/textmodes/org.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el
index 0b113f08928..449e2604235 100644
--- a/lisp/textmodes/org.el
+++ b/lisp/textmodes/org.el
@@ -5,7 +5,7 @@
5;; Author: Carsten Dominik <carsten at orgmode dot org> 5;; Author: Carsten Dominik <carsten at orgmode dot org>
6;; Keywords: outlines, hypermedia, calendar, wp 6;; Keywords: outlines, hypermedia, calendar, wp
7;; Homepage: http://orgmode.org 7;; Homepage: http://orgmode.org
8;; Version: 5.13f 8;; Version: 5.13g
9;; 9;;
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11;; 11;;
@@ -83,7 +83,7 @@
83 83
84;;; Version 84;;; Version
85 85
86(defconst org-version "5.13f" 86(defconst org-version "5.13g"
87 "The version number of the file org.el.") 87 "The version number of the file org.el.")
88(defun org-version () 88(defun org-version ()
89 (interactive) 89 (interactive)
@@ -13412,7 +13412,8 @@ For calling through lisp, arg is also interpreted in the following way:
13412 (if (looking-at outline-regexp) (goto-char (1- (match-end 0)))) 13412 (if (looking-at outline-regexp) (goto-char (1- (match-end 0))))
13413 (or (looking-at (concat " +" org-todo-regexp " *")) 13413 (or (looking-at (concat " +" org-todo-regexp " *"))
13414 (looking-at " *")) 13414 (looking-at " *"))
13415 (let* ((startpos (line-beginning-position)) 13415 (let* ((match-data (match-data))
13416 (startpos (line-beginning-position))
13416 (logging (save-match-data (org-entry-get nil "LOGGING" t))) 13417 (logging (save-match-data (org-entry-get nil "LOGGING" t)))
13417 (org-log-done (org-parse-local-options logging 'org-log-done)) 13418 (org-log-done (org-parse-local-options logging 'org-log-done))
13418 (org-log-repeat (org-parse-local-options logging 'org-log-repeat)) 13419 (org-log-repeat (org-parse-local-options logging 'org-log-repeat))
@@ -13496,6 +13497,7 @@ For calling through lisp, arg is also interpreted in the following way:
13496 ;; fail silently 13497 ;; fail silently
13497 (message "TODO state change from %s to %s blocked" this state) 13498 (message "TODO state change from %s to %s blocked" this state)
13498 (throw 'exit nil)))) 13499 (throw 'exit nil))))
13500 (store-match-data match-data)
13499 (replace-match next t t) 13501 (replace-match next t t)
13500 (unless (pos-visible-in-window-p hl-pos) 13502 (unless (pos-visible-in-window-p hl-pos)
13501 (message "TODO state changed to %s" (org-trim next))) 13503 (message "TODO state changed to %s" (org-trim next)))