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

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

bug#12898: 24.2.50.1; Completion is not passed further on in emacs-lisp,


From: Stefan Monnier
Subject: bug#12898: 24.2.50.1; Completion is not passed further on in emacs-lisp, org-mode etc.
Date: Tue, 20 Nov 2012 08:42:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>>> In elisp mode completion-at-point-functions is set to
>>> (lisp-completion-at-point t).  If I set it to (t), filename completion
>>> works as expected.  So, it's the lisp-completion-at-point that is not
>>> handing the completion over.
SM> Indeed, lisp-completion-at-point should return nil when it determines
SM> that it cannot provide completion information for the text around point.
SM> Problem is: how should it determine that?
> There is an inbuilt facility (:exclusive 'no).  Why is that not the default?

Because it only works for prefix-completion, so it's a crutch.
The right way to do it is for lisp-completion-at-point function to
determine whether the data at point should/can be a Lisp name or a file
name or both (if it's both, it could use the :exclusive crutch, or it
could combine the completion tables with completion-table-in-turn).


        Stefan





reply via email to

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