Using CEDET in emacs 24.3.1 - emacs

I learned that CEDET comes built in emacs 24.3.1 which I have installed.
Unfortunately, all tutorials online instruct you to install CEDET and provide you with config files that refer and load the installed packages and files.
How is it possible to configure the built in CEDET and use it without any external installation?
I am not sure how to take advantage of the built in version.

It's circa Emacs 23, but Alex Ott's A Gentle Introduction to CEDET still looks relevant to the built-in version? (it covers both versions).

Related

CEDET compatibility with Emacs 24.5

After I have updated my Emacs from 24.3 to 24.5 version, my 1.1 version of cedet (highlight, auto completion and summary function) has stopped working for c mode. When I trying to load these semantic mode individually, I got the following messages:
Buffer myfile.cpp was not set up for parsing
I think someone has asked a similar question in the past:
cedet-semantic error "Idle Service Error semantic-idle-summary-idle-function - Arithmetic error" when parsing linux kernel file "jiffies.h"
However, I am not sure which snapshot version he has downloaded & how to install a snapshot CEDET version. Can someone please help me with that?
After struggled for a while, I figured out something trivial but hard to see. Hopefully this answer will help others who has experienced the same problem.
When I started to use emacs version 24.3 I didn't know the Cedet version 2.0 was already a built-in package at that time. I downloaded Cedet 1.1 version from
Cedet SourceForge website.
And configured that according to some tutorial online by loading my downloaded 1.1 cedet.el file.
Surprisingly this Cedet 1.1 package is still compatible with emacs 24.3 version. Unfortunately this is not the case for emacs 24.5 version, the semantic mode encountered some problem with c mode. Therefore the best solution is to switch back to the built-in Cedet 2.0 version.
If you have used the older version of Cedet, it's possible that the old saved .semanticdb files are not compatible with latest Cedet semanticdb. You can do
rm -rf ~/.semanticdb/
So the new version semanticdb can create and use the new version of semanticdb (my friend helped me with that subtle problem so I can get the built-in Cedet 2.0 up and running).

emacs autocomplete userdefined library function

i am new to emacs ....i have installed autocomplete and configure it in my init file...but if i download a library from somewhere and has its include and lib file and want emacs to auto complete the function present in the include file of that library...what package do we install for it and how do we set emacs up to do it...?
i have heard CEDET package in emacs would be able to do it...but how to set it up..?
If there is another package..please let me know and guide me through the whole process?
There is a nice simplified introduction to installing CEDET at this url:
http://alexott.net/en/writings/emacs-devenv/EmacsCedet.html
or you can use the CEDET manual which comes with Emacs.

Getting the org-mode manual in emacs

How can I get access to the org-mode manual from within emacs?
I've seen this suggested:
C-h i m Org Mode RET
But the org-mode manual isn't available that way in emacs 24.3.1. Is there a melpa package or something similar I can install to get the org-manual in emacs info mode?
If you are on Ubuntu, Debian or a related distributions, do:
apt-get install emacs24-common-non-dfsg
While the Org Mode manual is part of the standard Emacs distributions, Debian, Ubuntu and related distributions do not include it in their Emacs packages, as their understanding of truly free software is subtly different from the FSF's. You'll need to install it separately.
In Section
"How do I update the info manual pages to the latest org-mode version?" of http://orgmode.org/worg/org-faq.html there is a hint where you find the texi-files.
You can build the info manual pages from these ones.

Web-mode does not load in emacs

I'm pretty new to emacs and I'm currently trying to configure it properly for my needs, but I can't make it load web-mode at all.
So, this is what I've done:
Downloaded web-mode.el from GitHub
Made sure the file is located in the correct directory: ~/.emacs.d/web-mode.el
Used the installation instructions from the official page
My .emacs file now looks like this
Issue:
When I'm trying to edit any of the file types specified in the .emacs file, it only runs the default modes. PHP Abbrev for PHP etc... I'm not receiving any error messages and when I'm running --debug-init it does not give any output.
Emacs version: GNU Emacs 23.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.18.9) of 2012-03-01 on sl6.fnal.gov
OS: Scientific Linux
Does anyone know how I can troubleshoot this further, or have solved similar issues?
You should let el-get install it for you. El-get is a package manager for emacs. It can install packages from github, emacswiki, elpa, an url, … http://wikemacs.org/index.php/El-get
It's very handy, you can update scripts easily, it manages dependencies, it lets you discover many stuff, you can easily share your config accross machines, etc.
Emacs 24 has package.el or ELPA by default. One can install it on emacs 23, but my experience isn't conclusive so I'd advise sticking with el-get, which is great.

js2-refactor from melpa: Package `emacs-24.1' is unavailable

I'm on GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.6.0), but when I try to use package (melpa) to install js2-refactor I get this odd error:
package-compute-transaction: Package `emacs-24.1' is unavailable
Any ideas what this could be about? Actually, this might be coming from a dependency of js2-refactor: js2-mode. It gives the same error.
The reason for this can be a lingering old version of package.el in your load path. package.el was officially included in GNU Emacs 24, and the downloadable file for earlier Emacs versions doesn't support dependencies on built-in packages (emacs-24.1 is considered a built-in package here).
Type M-x locate-library RET package to find where Emacs is getting its package.el from. The path it shows should end with lisp/emacs-lisp/package.elc. If it doesn't, try getting rid of the indicated file (or changing the load path so Emacs doesn't find it).
I solved a similar issue by uninstalling and reinstalling emacs (macOS/homewbrew).