branch: elpa/helm commit fb3d127a85d88635c1c2eb48968d8919f0818824 Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Search backward further than 2 char --- helm-elisp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helm-elisp.el b/helm-elisp.el index c2f9b0ac3c..0dedda2cbb 100644 --- a/helm-elisp.el +++ b/helm-elisp.el @@ -316,7 +316,8 @@ Return a cons (beg . end)." (end (point)) (pred (and beg (helm-lisp-completion--predicate-at-point beg))) (re-class-p (and (eq 'string (syntax-ppss-context (syntax-ppss (point)))) - (looking-back "\\[:" 2))) + (save-excursion + (re-search-backward "\\[:[[:alpha:]]*" (pos-bol) t)))) (loc-vars (and (fboundp 'elisp--local-variables) (ignore-errors (mapcar #'symbol-name (elisp--local-variables)))))