emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] org-end-of-meta-data-and-drawers


From: Eric Abrahamsen
Subject: [O] [PATCH] org-end-of-meta-data-and-drawers
Date: Wed, 08 Jun 2011 15:47:22 -0700
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux)

Currently, this function goes to a lot of trouble to concatenate a
complicated regexp to find metadata and drawers, and then doesn't use
it. As it stands, if you put point in a headline that has a property
drawer and then call =(org-end-of-meta-data-and-drawers)=, point moves
to the *beginning* of the property drawer -- obviously not what you
want.

Eric


diff --git a/lisp/org.el b/lisp/org.el
index 777850a..e7f9f89 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -19992,7 +19992,7 @@ clocking lines, and drawers."
                    "\\|"
                    "\\([ \t]*\\(" org-keyword-time-regexp "\\)\\)")))
     (forward-line 1)
-    (while (looking-at (concat "[ \t]*\\(" org-keyword-time-regexp "\\)"))
+    (while (looking-at (concat "[ \t]*\\(" re "\\)"))
       (if (not (match-end 1))
          ;; empty or planning line
          (forward-line 1)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]