Re: (Resent) completion-at-point in non-semantic buffer
Eric Ludlam <[email protected]> Sun, 18 Oct 2015 11:23:50 -0400
| Newsgroups | gmane.emacs.semantic |
|---|---|
| Message-ID | <[email protected]> |
I tried out your patch and verified it works in my cases so I pushed this.
Thanks!
Eric
On 09/02/2015 07:38 AM, Dmitry Cherkassov wrote:
> [Sorry, resending in plain-text]
>
> Hi. I use cedet from git:26cd107a7a67d85696f019be4383db9931cc7c44
> and load it as said in docs:
>
> (load-file "~/.emacs.d/vendor/cedet/cedet-devel-load.el")
> ...
> (semantic-mode 1)
>
> The problem:
>
> When calling `company-complete' in buffer with no semantic minor mode
> it fails with a stacktrace:
> error("Cannot analyze buffers not supported by Semantic")
> semantic-analyze-current-context()
> semantic-analyze-completion-at-point-function()
> ...
>
> I've looked at `completion-at-point-functions' variable and
> `semantic-analyze-completion-at-point-function' is indeed there.
>
> Is this a bug? completion-at-point clearly expects either `nil' or a
> list of completions when evaling `completion-at-point-functions' list.
>
> I've devised a small patch that checks wheter semantic is active
> before calling `semantic-analyze-current-context' but not sure that's
> the correct way of doing things.
>
> Please comment.
>
> Thanks.
>
>
>
>
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>
>
>
> _______________________________________________
> cedet-semantic mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cedet-semantic
>
------------------------------------------------------------------------------