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
3
votes
1 answer

Emacs Semantic Won't Parse File Correctly On Windows

Recently I was switching my programming environment from CentOS to Windows. I am a fan of Emacs, so I want to use Emacs to program on Windows too. Everything goes on smoothly but when I use emacs semantics to parse system includes, here comes the…
3
votes
0 answers

Load semanticdb tags in emacs without revisiting file

This section of the emacs manual states that revisiting a file is the default way to load tags from the semanticdb, but (in the second paragraph) that it's possible to access the tag information without opening that file again. Does it require…
jarvisteve
  • 926
  • 8
  • 14
3
votes
1 answer

make emacs semantic auto complete tip "always on"

I have just installed cedet (CVS version) and I am now playing with in emacs and my C++ source code. Regarding the auto complete, I can invoke the tool tip and the menu from their semantic-ia-complete-* commands. Does anyone know how I can make the…
user193272
  • 984
  • 1
  • 12
  • 18
3
votes
3 answers

How to disable semantic for specific type of files

For files with mixed types of programming languages, such as .html, semantic has trouble analyzing the code. Is there any way to specifically disable the auto analyzing by semantic for those types of files? I am using the built-in cedet coming with…
RNA
  • 146,987
  • 15
  • 52
  • 70
2
votes
1 answer

error for semantic in emacs 23.3 with integrated cedet

Here is the version of cedet I am using CEDET Version: 1.0 Requested File Loaded Package Version Version Version ---------------------------------------------------------- cedet: 1.0 nil …
RNA
  • 146,987
  • 15
  • 52
  • 70
2
votes
1 answer

How to use helm-semantic-or-imenu for code navigation with type annotated python code

I would like to use the helm-semantic-or-imenu command to navigate components of type annotated Python code, but whatever code analyzer is used to dentify the components doesn't seem to recognize the type annotated python code. Functions with the…
TLE
  • 123
  • 5
2
votes
1 answer

Emacs Semantic/ECB namespace-struct C++ confusion

I'm trying to setup ECB to work with C++ sources. seemingly, semantic or ECB has problem determining whenever a function declarant with explicit namespace, namespace:: function , is really in the namespace. instead it parses it as struct member…
Anycorn
  • 50,217
  • 42
  • 167
  • 261
2
votes
1 answer

setting up semantic with cscope

I'm starting to experiment a bit with using emacs as my development envrionment and I am running into a bit of trouble. I wish to use cscope with semantic for a fairly robust way of searching through my code base. However, after installing cscope…
foboi1122
  • 1,727
  • 4
  • 19
  • 36
2
votes
2 answers

"void-variable last-command-char" error when I use semantic to locate symbol

Since I use Emacs 24, I always get error when I try to find where a symbol occurs with semantic-symref-symbol. The details are: I push some key to call semantic-symref-symbol when the cursor is on some symbol of my source file, then I get a list…
Jolly Wing
  • 31
  • 4
1
vote
1 answer

Emacs 23, semantic-something-to-tag-table and eassist mode

The very helpful eassist mode relies on CEDET's semantic-something-to-tag-table function. Can anyone advice, how this function could be loaded from Emacs' built-in CEDET?
Zaur Nasibov
  • 22,280
  • 12
  • 56
  • 83
1
vote
3 answers

"wrong-type-argument stringp nil" error on symbol completion using semantic

When using 'senator-complete-symbol' on C++ source file, some times it works but most of the time I ended up with the error "wrong-type-argument stringp nil, compare-strings("Ins" 0 nil nil 0 3 nil)". I have no idea why semantic is working so…
York
  • 2,056
  • 1
  • 15
  • 23
1
vote
0 answers

Allow semantic to parse only current buffer

When editing a C file in emacs with semantic-mode, Is there a way to prevent semantic to recursively parse included files, and only allow it to parse the current buffer? I like some functionalities of semantic that only require parsing the current…
antonio
  • 154
  • 3
1
vote
0 answers

c-mode single quote fontification

I just noticed that single quotes are being font-locked with warning face, throwing off fontification of the entire buffer. Does anyone know why this is is happening? For example, #include int main(int argc, char *argv[]) { if (…
Rorschach
  • 31,301
  • 5
  • 78
  • 129
1
vote
1 answer

Emacs imenu and speedbar+semantic fails because of indentation in c++ mode

My problem is that imenu or speedbar/semantic fails because of indentation. For this simple file, it is ok: #include void bar() { std::cout << "bar" << std::endl; } But if I want to put function bar in a namespace and indent its…
janou195
  • 1,175
  • 2
  • 10
  • 25
1
vote
2 answers

emacs cedet (semantic) how to remove hyphenate function decoration

Thanks to this post, I was able to remove some of the ugly underlining semantic utilizes with it's inline parsing, but I still have a hyphen appearing at each of my function calls (and sometimes else where) that I would really like to remove. How…
SullX
  • 214
  • 4
  • 17