GNU bug report logs - #20425
24.5; completion-at-point not working with prefix starting with '(:'

Previous Next

Package: emacs;

Reported by: Alexander Miller <alexanderm <at> web.de>

Date: Sat, 25 Apr 2015 23:13:02 UTC

Severity: normal

Merged with 19529

Found in versions 24.3, 24.5

Fixed in version 25.1

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


Message #18 received at 20425 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>,
 Alexander Miller <alexanderm <at> web.de>
Cc: 20425 <at> debbugs.gnu.org
Subject: Re: bug#20425: 24.5; completion-at-point not working with
 prefix starting with '(:'
Date: Tue, 28 Apr 2015 06:25:39 +0300
On 04/27/2015 03:50 PM, Stefan Monnier wrote:

> Thanks.  Indeed, M-TAB at the end of the previous line incorrectly claims
> there's no completion, even that this "(:backg" is not a "function
> call", so it should complete against "anything we can find".

As a first pass, this patch seems to help (here and in bug#19529, which 
is apparently a duplicate). It'll also make things worse for macro 
writers, but the existing `elisp--form-quoted-p' usage doesn't exactly 
cater to them either.

I should really revisit the "macroexpand all the things for completion" 
discussion.


diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index ad35c48..ca6042a 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -480,7 +480,7 @@ It can be quoted, or be inside a quoted form."
       (when (and end (or (not (nth 8 (syntax-ppss)))
                          (eq (char-before beg) ?`)))
         (let ((table-etc
-               (if (not funpos)
+               (if (or (not funpos) (elisp--form-quoted-p beg))
                    ;; FIXME: We could look at the first element of the 
list and
                    ;; use it to provide a more specific completion 
table in some
                    ;; cases.  E.g. filter out keywords that are not 
understood by






This bug report was last modified 10 years and 72 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.