From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 47665@debbugs.gnu.org
Subject: bug#47665: elisp-completion-at-point doesn't work when no characters typed
Date: Thu, 08 Apr 2021 22:38:12 -0400 [thread overview]
Message-ID: <jwvmtu82nhc.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <ba77505c-ba8c-6930-ef1c-93d469b8d2e9@yandex.ru> (Dmitry Gutov's message of "Fri, 9 Apr 2021 02:53:29 +0300")
> 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
next prev parent reply other threads:[~2021-04-09 2:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-08 23:53 bug#47665: elisp-completion-at-point doesn't work when no characters typed Dmitry Gutov
2021-04-09 2:38 ` Stefan Monnier [this message]
2021-04-09 22:52 ` Dmitry Gutov
2021-04-09 22:57 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvmtu82nhc.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=47665@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.