I would like AUCTeX (that is, Emacs with auctex loaded) to suggest more LaTeX macros when using completion (M-Tab or C-Ret) than it does by default.
I would like to have macros from packages I have downloaded on CTAN and macros I have written.
I would also like it if it would complete
\section or other macros that can be accessed via C-c C-s, C-c C-e etc.
I could not make the code quoted by AUCTeX wiki
work. i get an error on loading emacs but did not looked much further in because I ca bear the nuisance of appending a few lines to my files.
The link given by Ben (Automatic add of private macros contains a working solution, thus I accept his answer. I had come across this page in my researchs but somehow messed up things. What eventually worked for me was using
TeX-auto-generate TEX AUTO to create a bunch of .el files in the ~/.emacs.d/auctex/auto direcoty. Note that this directory must be created beforhand.
For some reasons
TeX-macro-private did not achieve the wanted result.