diff options
author | Bastien Guerry <bzg@altern.org> | 2014-02-06 00:25:16 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2014-02-06 00:25:16 +0100 |
commit | d7bbf362da92b9db5b766b355d76258d6fc1de72 (patch) | |
tree | a4f9de6f4da00ed47b01a3e91d15f8f914ab2942 | |
parent | a6f81047a47737b3450081e324c33ef00e681d36 (diff) | |
download | org-mode-d7bbf362da92b9db5b766b355d76258d6fc1de72.tar.gz |
Revert "org.el (org-agenda-prepare-buffers): Restore the point position"
This reverts commit fe3379bda6ca23474639b114592958bf14431c88.
-rw-r--r-- | lisp/org.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/org.el b/lisp/org.el index a28589c..2d58198 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -18057,10 +18057,10 @@ When a buffer is unmodified, it is just killed. When modified, it is saved (inhibit-read-only t) (org-inhibit-startup org-agenda-inhibit-startup) (rea (concat ":" org-archive-tag ":")) - file re pos) + file re) (setq org-tag-alist-for-agenda nil org-tag-groups-alist-for-agenda nil) - (save-window-excursion + (save-excursion (save-restriction (while (setq file (pop files)) (catch 'nextfile @@ -18070,7 +18070,6 @@ When a buffer is unmodified, it is just killed. When modified, it is saved (set-buffer (org-get-agenda-file-buffer file))) (widen) (org-set-regexps-and-options-for-tags) - (setq pos (point)) (goto-char (point-min)) (let ((case-fold-search t)) (when (search-forward "#+setupfile" nil t) @@ -18114,8 +18113,7 @@ When a buffer is unmodified, it is just killed. When modified, it is saved org-comment-string)) (while (re-search-forward re nil t) (add-text-properties - (match-beginning 0) (org-end-of-subtree t) pc)))) - (goto-char pos))))) + (match-beginning 0) (org-end-of-subtree t) pc)))))))) (setq org-todo-keywords-for-agenda (org-uniquify org-todo-keywords-for-agenda)) (setq org-todo-keyword-alist-for-agenda |