bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47665: elisp-completion-at-point doesn't work when no characters typ


From: Stefan Monnier
Subject: bug#47665: elisp-completion-at-point doesn't work when no characters typed
Date: Thu, 08 Apr 2021 22:38:12 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> This patch seems to fix it:
>
> diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
> index 8ade718640..203712f45d 100644
> --- a/lisp/progmodes/elisp-mode.el
> +++ b/lisp/progmodes/elisp-mode.el
> @@ -496,7 +496,7 @@ elisp-completion-at-point
>          (end
>           (unless (or (eq beg (point-max))
>                       (member (char-syntax (char-after beg))
> -                                '(?\s ?\" ?\( ?\))))
> +                                '(?\" ?\()))
>             (condition-case nil
>                 (save-excursion
>                   (goto-char beg)
>
>
> But I'm not sure why those elements were there in the first place.

I don't think there was a deep reason.
More of a desire to be on the safe side and only provide completion when
there was some evidence that we were indeed in the presence of an identifier.


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]