소스 검색

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

Carsten Dominik 16 년 전
부모
커밋
d48d06eec8
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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))