Browse Source

Reset start position for finding new changes in org-mobile.el

Carsten Dominik 15 years ago
parent
commit
d48d06eec8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/org-mobile.el

+ 2 - 1
lisp/org-mobile.el

@@ -526,13 +526,14 @@ If BEG and END are given, only do this in that region."
   (require 'org-archive)
   (setq org-mobile-last-flagged-files nil)
   (setq beg (or beg (point-min)) end (or end (point-max)))
-  (goto-char beg)
 
   ;; Remove all Note IDs
+  (goto-char beg)
   (while (re-search-forward "^\\*\\* Note ID: [-0-9A-F]+[ \t]*\n" nil t)
     (replace-match ""))
 
   ;; Find all the referenced entries, without making any changes yet
+  (goto-char beg)
   (let ((marker (make-marker))
 	(bos-marker (make-marker))
 	(end (move-marker (make-marker) end))