]> code.delx.au - gnu-emacs-elpa/commitdiff
Don't offer empty string as let-bound variable.
authorNikolaj Schumacher <git@nschum.de>
Sat, 28 Mar 2009 18:50:24 +0000 (19:50 +0100)
committerNikolaj Schumacher <git@nschum.de>
Sun, 5 Apr 2009 10:43:45 +0000 (12:43 +0200)
company-elisp.el

index 9c10d136eb72cec6b9ce49e412334ea183f4a1df..e9ca8fd60a4a01232381cce1a22d7133e0bfb093 100644 (file)
@@ -49,7 +49,7 @@ Functions are offered for completion only after ' and \(."
           "\\*?"))
 
 (defun company-elisp-parse-local (prefix vars)
-  (let ((regexp (concat "[ \t\n]*\\(" (regexp-quote prefix)
+  (let ((regexp (concat "[ \t\n]*\\(\\_<" (regexp-quote prefix)
                         "\\(?:\\sw\\|\\s_\\)*\\_>\\)")))
     (ignore-errors
       (save-excursion