[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CEDET and recent trunk
From: |
Manoj Srivastava |
Subject: |
CEDET and recent trunk |
Date: |
Sun, 01 Jul 2012 11:12:51 -0700 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) (x86_64-unknown-linux-gnu) |
Hi,
At some point, about a month ago, I had managed to get CEDET and
semantic setup so that the emacs trunk would, in an emacs lisp buffer,
show me completions alternatives in a dropdown, and also show me the
documentation of the current top completion, allowing me to select the
function, and then it would show me the arguments expected.
I have not changed anything concerning CEDET setup (though I did
modify hippie-expand settings), but I have lost the ability, for emacs
lisp and C modes. I do see function definition in the echo area, but
there is no popup allowing me to select one of several options, and
there is no documentation of the selected option.
I am including my cedet related config below, in the hope that
someone would have some insight into this. I have tried emacs -Q with
config below, and I can't get CEDET to work as advertized
Am I missing something simple?
manoj
--8<---------------cut here---------------start------------->8---
;; cedet
(require 'semantic)
(require 'semantic/sb)
(semantic-mode 1)
(require 'srecode)
(global-srecode-minor-mode 1)
(require 'semantic/ia)
(require 'semantic/db)
(require 'semantic/db-global)
(global-semanticdb-minor-mode 1)
(require 'semantic/bovine/c)
(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("WXDLLIMPEXP_CORE" . ""))
(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("WXDLLIMPEXP_FWD_CORE" .
""))
(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("WXDLLIMPEXP_BASE" . ""))
(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("WXDLLIMPEXP_FWD_BASE" .
""))
(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("WXDLLIMPEXP_FWD_XML" .
""))
(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("WXDLLIMPEXP_ADV" . ""))
(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("Q_GUI_EXPORT" . ""))
(add-to-list 'semantic-lex-c-preprocessor-symbol-map '("Q_CORE_EXPORT" . ""))
(require 'semantic/senator)
(require 'ede/speedbar)
(require 'ede/proj)
(require 'cedet-cscope)
(setq semantic-decoration-styles
'(
(semantic-tag-boundary . t)
(semantic-decoration-on-private-members . t)
(semantic-decoration-on-protected-member . t)
))
(global-semanticdb-minor-mode 1)
(global-semantic-idle-scheduler-mode 1)
(global-semantic-idle-completions-mode 1)
(global-semantic-decoration-mode 1)
(global-semantic-highlight-func-mode 1)
(global-semantic-stickyfunc-mode -1)
(global-semantic-idle-summary-mode 1)
(global-semantic-mru-bookmark-mode 1)
(global-semantic-show-unmatched-syntax-mode t)
(semanticdb-enable-gnu-global-databases 'c-mode)
(semanticdb-enable-gnu-global-databases 'c++-mode)
(set-default 'semantic-case-fold t)
--8<---------------cut here---------------end--------------->8---
--8<---------------cut here---------------start------------->8---
extern int errno;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
size_t manoj_strlen(const char *s);
size_t manoj_strlen(const char *src_p)
{
size_t i = 0;
if(*src_p){ while(*(src_p++)) i++; }
return i;
}
--8<---------------cut here---------------end--------------->8---
--
An ignorant man ages like an ox. His flesh may increase, but not his
understanding. 152
Manoj Srivastava <address@hidden> <http://www.golden-gryphon.com/>
4096R/C5779A1C E37E 5EC5 2A01 DA25 AD20 05B6 CF48 9438 C577 9A1C
- CEDET and recent trunk,
Manoj Srivastava <=