Re: Srecode should be independent of Semantic

"Eric M. Ludlam" <[email protected]>
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
Hi Tu,

I suspect your hook will disable idle summary mode for all new buffers 
even if they are not lisp-mode.

I think you only need (semantic-idle-summary-mode -1).

Eric

On 06/05/2014 01:48 PM, Tu Do wrote:
> Hi Eric,
>
> I found a proper way to disable it in Common Lisp mode now:
>
> (add-hook 'lisp-mode-hook (lambda ()
>                              (remove-hook 'semantic-init-hook
> 'semantic-idle-summary-mode)
>                              (semantic-idle-summary-mode -1)))
>
> Regards,
>
> Tu.
>
>
> On Wed, Jun 4, 2014 at 5:42 PM, Tu Do <[email protected]
> <mailto:[email protected]>> wrote:
>
>     Currently, I only want to use Srecode inside Common Lisp. To use
>     Srecode, I have to activate Semantic mode, and I'm using
>     semantic-idle-summary-mode for C/C++ buffers, so
>     semantic-idle-summary-mode is activate for Common Lisp buffers as
>     well. The problem is, semantic-idle-summary-mode does not display
>     correct signatures from Common Lisp; it displays signatures from
>     Emacs Lisp.
>
>     To turn it off, I have to activate Semantic only in C/C++/Emacs Lisp
>     modes:
>
>     (add-to-list 'semantic-inhibit-functions
>                   (lambda () (not (member major-mode '(c-mode c++-mode
>     emacs-lisp-mode)))))
>
>     However, doing like this disables srecode-minor-mode because it
>     requires Semantic bufers. Is there a way to fix it?
>
>     This SO question and answer does not help:
>     http://stackoverflow.com/questions/6782114/disable-cedet-semantic-code-completion-for-lisp-mode
>
>     Regards,
>
>     Tu.
>
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
>
>
>
> _______________________________________________
> Cedet-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cedet-devel

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.