1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-14 01:57:57 -07:00
emacs/doc/misc
Alan Mackenzie 7a2038d7c8 Create a toggle between block and line comments in CC Mode.
Also (unrelated change) initialize the modes' keymaps at each loading.

* lisp/progmodes/cc-cmds.el (c-update-modeline): amend for the new information
on the modeline.
(c-block-comment-flag): New variable.
(c-toggle-comment-style): New function.

* lisp/progmodes/cc-langs.el (c-block-comment-starter)
(c-line-comment-starter): Make them c-lang-defvars.
(c-block-comment-is-default): New c-lang-defvar.
(comment-start, comment-end): Make the default values dependent on
c-block-comment-is-default.

* lisp/progmodes/cc-mode.el (c-mode-base-map): Define C-c C-k in this map.
(c-basic-common-init): Initialize c-block-comment-flag.
(c-mode-map, c++-mode-map, objc-mode-map, java-mode-map, idl-mode-map)
(pike-mode-map, awk-mode-map): Make entries in these key maps each time the
mode is loaded rather than just once per Emacs session.

* doc/misc/cc-mode.texi (Comment Commands): Introduce the notion of comment
style.
(Minor Modes): Define comment style.  Describe how comment style influences
the information displayed on the modeline.  Document c-toggle-comment-style.
(FAQ): Add a question about toggling the comment style.
2017-06-15 21:03:03 +00:00
..
ada-mode.texi
auth.texi
autotype.texi
bovine.texi
calc.texi
cc-mode.texi Create a toggle between block and line comments in CC Mode. 2017-06-15 21:03:03 +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-news.el
gnus-news.texi
gnus-overrides.texi
gnus.texi
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