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 <tuhdo1710@gmail.com> 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.