diff options
author | Bastien Guerry <bzg@altern.org> | 2013-11-28 06:27:57 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-11-28 06:27:57 +0100 |
commit | c811bb0ea5aeeafce5dbb79a6d57abd56c9f8667 (patch) | |
tree | 3dace66f9fa7d88432123748e7c0bbbb4b7220db | |
parent | e655e664bff9fb6e98478682f03e713f990acba5 (diff) | |
download | org-mode-c811bb0ea5aeeafce5dbb79a6d57abd56c9f8667.tar.gz |
org.el (org-cycle-hide-drawers): Fix bug about re-searching at the wrong side of point
* org.el (org-cycle-hide-drawers): Fix bug about re-searching
at the wrong side of point.
The bug was introduced by this commit:
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=e8bafd
And reported here:
http://article.gmane.org/gmane.emacs.orgmode/79282
-rw-r--r-- | lisp/org.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 4e8bd9c..c0c51c4 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7118,7 +7118,7 @@ specifying which drawers should not be hidden." (save-excursion (outline-next-heading) (point)) (org-end-of-subtree t))))) (goto-char beg) - (while (re-search-forward org-drawer-regexp end t) + (while (re-search-forward org-drawer-regexp (max end (point)) t) (unless (member-ignore-case (match-string 1) exceptions) (let ((drawer (org-element-at-point))) (when (memq (org-element-type drawer) '(drawer property-drawer)) |