1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-07 16:10:46 -08:00
emacs/doc/misc
Alan Mackenzie 35a13fca32 CC Mode: allow specified directives (e.g. pragma) to be indented as statements
* lisp/progmodes/cc-cmds.el (c-align-cpp-indent-to-body)
(c-cpp-indent-to-body-flag, c-electric-pragma)
(c-add-indent-to-body-to-abbrev-table, c-clear-stale-indent-to-body-abbrevs)
(c-toggle-cpp-indent-to-body): New functions and variables.

* lisp/progmodes/cc-langs.el (c-std-abbrev-keywords): New lang const/var.

* lisp/progmodes/cc-mode.el (c-populate-abbrev-table): New function.
(c-basic-common-init): call the c-populate-abbrev-table.
(c-mode, c++-mode, objc-mode, java-mode, idl-mode, pike-mode, awk-mode):
Remove the setting of MODE-abbrev-table.

* lisp/progmodes/cc-vars.el (c-cpp-indent-to-body-directives): New defcustom.

* doc/misc/cc-mode.texi (Custom Macros): Introduce and refer to ....
(Indenting Directives): New page documenting the new mechanism.
2020-03-08 16:21:15 +00:00
..
auth.texi
autotype.texi
bovine.texi
calc.texi
cc-mode.texi CC Mode: allow specified directives (e.g. pragma) to be indented as statements 2020-03-08 16:21:15 +00:00
ChangeLog.1
cl.texi
dbus.texi
dired-x.texi
doclicense.texi
ebrowse.texi
ede.texi
ediff.texi
edt.texi
efaq-w32.texi
efaq.texi
eieio.texi
emacs-gnutls.texi
emacs-mime.texi
epa.texi
erc.texi
ert.texi
eshell.texi
eudc.texi
eww.texi
flymake.texi
forms.texi
gnus-coding.texi
gnus-faq.texi
gnus.texi Merge from origin/emacs-27 2020-03-04 13:57:58 -08:00
gpl.texi
htmlfontify.texi
idlwave.texi
ido.texi
info.texi
mairix-el.texi
Makefile.in
message.texi
mh-e.texi
newsticker.texi
nxml-mode.texi
octave-mode.texi
org.texi
pcl-cvs.texi
pgg.texi
rcirc.texi
reftex.texi
remember.texi
sasl.texi
sc.texi
sem-user.texi
semantic.texi
ses.texi
sieve.texi
smtpmail.texi
speedbar.texi
srecode.texi
texinfo.tex
todo-mode.texi
tramp.texi
trampver.texi
url.texi
vhdl-mode.texi
vip.texi
viper.texi
widget.texi
wisent.texi
woman.texi