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
This commit is contained in:
Bastien Guerry 2013-11-28 06:27:57 +01:00
parent e655e664bf
commit c811bb0ea5
1 changed files with 1 additions and 1 deletions

View File

@ -7118,7 +7118,7 @@ specifying which drawers should not be hidden."
(save-excursion (outline-next-heading) (point)) (save-excursion (outline-next-heading) (point))
(org-end-of-subtree t))))) (org-end-of-subtree t)))))
(goto-char beg) (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) (unless (member-ignore-case (match-string 1) exceptions)
(let ((drawer (org-element-at-point))) (let ((drawer (org-element-at-point)))
(when (memq (org-element-type drawer) '(drawer property-drawer)) (when (memq (org-element-type drawer) '(drawer property-drawer))