]> git.eshelyaron.com Git - emacs.git/commitdiff
org-element: use correct function
authorMattias Engdegård <mattiase@acm.org>
Thu, 30 Sep 2021 15:10:41 +0000 (17:10 +0200)
committerMattias Engdegård <mattiase@acm.org>
Thu, 30 Sep 2021 15:16:25 +0000 (17:16 +0200)
* lisp/org/org-element.el (org-element-headline-parser):
Pretty sure this one should be `skip-chars-backward`, not
`skip-syntax-backward`, since \t isn't a valid syntax code.

lisp/org/org-element.el

index 1c971b2f8a4fc105f382b529334eba4131f0b47a..ed684df17bf645745005d7fa77228657de594edd 100644 (file)
@@ -1024,7 +1024,7 @@ Assume point is at beginning of the headline."
           (title-start (prog1 (point)
                           (unless (or todo priority commentedp)
                             ;; Headline like "* :tag:"
-                            (skip-syntax-backward " \t"))))
+                            (skip-chars-backward " \t"))))
           (tags (when (re-search-forward
                        "[ \t]+\\(:[[:alnum:]_@#%:]+:\\)[ \t]*$"
                        (line-end-position)