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

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

bug#18265: 24.3.92; lisp-completion-at-point should return nil in commen


From: Dmitry Gutov
Subject: bug#18265: 24.3.92; lisp-completion-at-point should return nil in comments, unless after `
Date: Fri, 19 Sep 2014 21:45:52 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1

On 09/19/2014 06:49 PM, Stefan Monnier wrote:

If the completion function gets to decide that, it would be harder for users
to customize.

It might be textually a bit more verbose, but other than that it
shouldn't be harder.  I'm thinking of something like

   (add-hook 'completion-at-point-functions
             (completion-table-merge
              ghc-completion-table dabbrev-completion-table)
             nil t)

The users might find it harder to modify these new c-a-p-f values if some packages add them during initialization, but otherwise this direction is quite in line with what we already do in Company.

And it's different from the `:merge-with-rest' property which you suggested earlier (a good thing, IMO).





reply via email to

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