cedet

which-function-mode cannot work with official CEDET 2.0

扶醉桌前 提交于 2021-02-10 06:55:59
问题 I have installed official CEDET 2.0 using el-get on GNU Emacs 24.3 and configured it. Although it works great for code jump and completion, it cannot work properly with Emacs built-in which-function-mode. When the major modes is Java mode, the Emacs mode line simply displays [???], like no valid function is recognized. But when I removed my CEDET configuration, which-function-mode works well. So I think the problem should be related to the official CEDET 2.0. I tried to manually enable which

Emacs: How can I find a file in my project quickly?

假如想象 提交于 2020-02-02 14:14:12
问题 Now, I'm using ede to manage my cpp project, and I try to find a file in my project quickly, but I failed. I used ede-find-file to find "db.h", it sits in "d:/projects/leveldb/include/db.h", unfortunately, it said cannot find. My config is put below (setq leveldb_root "d:/projects/leveldb/") (ede-cpp-root-project "leveldb" :file (concat leveldb_root ".gitignore") :system-include-path '("C:/Program Files/Microsoft SDKs/Windows/v7.1/Include" "C:/Program Files (x86)/Microsoft Visual Studio 9.0

emacs24 semantic completion

耗尽温柔 提交于 2020-01-13 11:11:38
问题 I'm trying to get semantic completions working with emacs 24 and the version of cedet that comes with it. Completions work for classes I defined in my own source file, but completion isn't working for the standard library or STL stuff Here is my emacs config: (require 'cedet) (require 'semantic) (require 'semantic/ia) (require 'semantic/bovine/gcc) (semantic-add-system-include "/usr/include/c++/4.6.3" 'c++-mode) (setq semantic-default-submodes '(global-semantic-idle-scheduler-mode global

Latest CEDET version can't load semantic packages

空扰寡人 提交于 2020-01-04 02:54:06
问题 I am having problems loading some of the semantic packages that Alex Ott recommends in his well-known guide to CEDET when using the recent versions of CEDET. My previous setting worked with no problem in Emacs 24.2.1, but I just upgraded to the latest version of CEDET in Bazaar, and Emacs run into problems when attempting to load the semantic-* packages. Following Alex's guide, I had the following commands in my .emacs file: (require 'semantic-ia) (require 'semantic-gcc) (require 'semanticdb)

Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctags

ぃ、小莉子 提交于 2019-12-29 10:07:07
问题 I work on C++ projects, and I went through Alex Ott's guide to CEDET and other threads about tags in StackOverflow, but I am still confused about how Emacs interfaces with these different tag systems to facilitate autocompletion, the looking up of definitions, navigation of source code base or the previewing of doc-strings. What is the difference (e.g. in terms of features) between etags , ebrowse , exuberant ctags, cscope, GNU Global and GTags? What do I need to do to use them in Emacs ? Do

Quickly finding project files using Emacs EDE

痴心易碎 提交于 2019-12-25 03:17:11
问题 I've recently started using EDE (via CEDET via ECB) in an attempt to get Emacs set up as a reasonable IDE for development on a largish C/C++/Python project. Something that was a bit fiddly to get set up (as I'm an Emacs and Lisp novice) was rapid file finding. The solution I currently have is to set up a raw/blank project (one EDE doesn't need to know how to manage makefiles or builds for) like so in my .emacs file: ;; Enable EDE mode (global-ede-mode 1) ;; EDE knows nothing of my project

Putting CEDET ede-cpp-root-project commands outside the .emacs file

偶尔善良 提交于 2019-12-21 23:08:47
问题 I have a working EDE project, but I would like to locate the command in a file in the source tree for that project and not in my .emacs file. Is this possible? I have tried using directory variables and emacs loads the file, but it does have any affect. To do this I placed the following code in .dir-locals.el in the project root: ((nil . ((ede-cpp-root-project "MyProj" :name "MyProj Project" :file "/home/jlisee/projects/myproj_code/CMakeLists.txt" :include-path '( "/packages" ) :system

Strange semantic error

怎甘沉沦 提交于 2019-12-21 07:56:29
问题 I have reinstalled emacs 24.2.50 on a new linux host and started a new dotEmacs config based on magnars emacs configuration. Since I have used CEDET to some success in my previous workflow I started configuring it. However, there is some strange behaviour whenever I load a C++ source file. [This Part Is Solved] As expected, semantic parses all included files (and during the initial setup parses all files specified by the semantic-add-system-include variables), but it prints this an error

How to create an EDE project for C++

て烟熏妆下的殇ゞ 提交于 2019-12-20 23:29:10
问题 I have been trying to set up an EDE project for C++ (emacs24 + builtin CEDET) and I'm starting to get desperate because I can't seem to find the way I want the makefiles to be generated. I'm relatively new to Emacs. I'll try to describe what I'm doing: I have a toy project set like so: main.cpp other/ Utils.cpp Utils.h CGrabBuffer.cpp CGrabBuffer.h main.cpp includes both .h's inside the "other/" directory. These are the steps I follow to set up an EDE project with this simple directory setup:

Emacs CEDET Semantic tag folding

為{幸葍}努か 提交于 2019-12-12 11:33:26
问题 I would like that every time I open a .cpp file, semantic tag-folding would become activated. I am using the latest version of cedet (loading cedet-devel-load.el). I have (semantic-mode 1) (require 'semantic/ia) (require 'semantic/bovine/gcc) (load-file "path/to/semantic/tag/folding/semantic-tag-folding.el") (require 'semantic-tag-folding) I added a hook (add-hook 'c-mode-common-hook 'setupcpp) and in 'setupcpp I simply have (defun setupcpp () (interactive) (semantic-tag-folding-mode t))