Browse Source

Fix bug in org-pcomplete.el.

* org-pcomplete.el (org-thing-at-point): Also match line
options like LATEX_CLASS when pcompleting from LATEX_.
Bastien Guerry 13 years ago
parent
commit
dbd8745c29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-pcomplete.el

+ 1 - 1
lisp/org-pcomplete.el

@@ -69,7 +69,7 @@ The return value is a string naming the thing at point."
 	(re-search-backward "^[ \t]*#\\+\\([A-Z_]+\\):.*"
 			    (line-beginning-position) t))
       (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))
      ((equal (char-before beg) ?\[)
       (cons "link" nil))