Questions tagged [emacs-semantic]

Semantic is a suite of Emacs libraries and utilities for parsing source code.

At its core is a lexical analyzer and two parser generators (bovinator and wisent) written in Emacs Lisp. Semantic provides a variety of tools for making use of the parser output, including user commands for code navigation and completion, as well as enhancements for imenu, speedbar, whichfunc, eldoc, hippie-expand, and several other parts of Emacs.

38 questions
1
vote
1 answer

Can't switch between proto and implement in C++ project

I have use semantic-analyze-proto-impl-toggle to switch between the function's proto and impl, but when I use this feature it always doesn't do anything except saying that it can't find correspongding implement, the other feature like name…
cofol1986
  • 25
  • 1
  • 6
0
votes
1 answer

Cedet cannot properly parse the time.h under /usr/include

I configured my cedet almost the same with http://alexott.net/en/writings/emacs-devenv/EmacsCedet.html. Thanks alexott , most of the time it works well, but I found that it can not well parse the tm struct in /usr/include/time.h. #include…
0
votes
1 answer

Can't find any references using 'semantic-symref-symbol'

I'm getting No references found message whenever I use "semantic-symref-symbol" (C-c , g) trying to get all the references to any symbol, whether the symbol is a C++ class member variable or a local variable, it just couldn't find any reference. The…
York
  • 2,056
  • 1
  • 15
  • 23
0
votes
0 answers

Disable semantic in derived modes

How can I stop semantic-mode from clobbering buffer-local variables in derived modes? In my case I want semantic in C/C++, but I don't want it to setup in modes derived from these. Currently, I use semantic for the following (setq…
Rorschach
  • 31,301
  • 5
  • 78
  • 129
0
votes
0 answers

Parsing a struct typedef in emacs semantics when typedef and struct in different files

Supposing I have as typedef struct definition like this: typedef struct IP_ROUTE_ IP_ROUTE; struct IP_ROUTE_ { unsigned prefix; unsigned mask; unsigned next_hop; }; All is fine. Semantic parses it nicely and if I do.. IP_ROUTE…
0
votes
2 answers

Emacs semantic lines

I tried a solution shown here which did not work for me. Even just disabling decoration mode did not work. So now I am wondering exactly what these lines above my text are, and how I can disable them. Maybe it's not even semantic? I'm not really…
foboi1122
  • 1,727
  • 4
  • 19
  • 36
0
votes
1 answer

Keymapping in emacs using semantic with interactive functions and default parameters invocation

In semantic; to move around function declarations it is possible to use C-c , J to open declaration, and just C-u C-SPC to return where the function was called. However to map those functions to some other short keybindings like that M-right…
0
votes
1 answer

How to add external tags file into CEDET in Emacs

I tried to use CEDET to get auto completion in Emacs and that works fine for C/C++. But I cannot find anything about how to use CEDET with Java without the help of JDEE, which is thought out of date and not compatible to CEDET 1.1. I got a tags file…
Haochen Xie
  • 360
  • 2
  • 9
1 2
3