forked from mirrors/org-mode
Fix bug in org-pcomplete.el.
* org-pcomplete.el (org-thing-at-point): Also match line options like LATEX_CLASS when pcompleting from LATEX_.
This commit is contained in:
parent
bfe8ec1fce
commit
dbd8745c29
|
@ -69,7 +69,7 @@ The return value is a string naming the thing at point."
|
||||||
(re-search-backward "^[ \t]*#\\+\\([A-Z_]+\\):.*"
|
(re-search-backward "^[ \t]*#\\+\\([A-Z_]+\\):.*"
|
||||||
(line-beginning-position) t))
|
(line-beginning-position) t))
|
||||||
(cons "file-option" (match-string-no-properties 1)))
|
(cons "file-option" (match-string-no-properties 1)))
|
||||||
((string-match "\\`[ \t]*#\\+[a-zA-Z]*\\'" line-to-here)
|
((string-match "\\`[ \t]*#\\+[a-zA-Z_]*\\'" line-to-here)
|
||||||
(cons "file-option" nil))
|
(cons "file-option" nil))
|
||||||
((equal (char-before beg) ?\[)
|
((equal (char-before beg) ?\[)
|
||||||
(cons "link" nil))
|
(cons "link" nil))
|
||||||
|
|
Loading…
Reference in a new issue