1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00: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 Fix a typo in ada-mode manual 2017-02-07 18:29:02 +02:00
auth.texi * doc/misc/auth.texi: Commas don't work in node names. 2017-04-27 21:33:07 -07:00
autotype.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
bovine.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
calc.texi Make calc's least common multiple positive (bug#25255) 2017-02-23 20:28:40 -05:00
cc-mode.texi Create a toggle between block and line comments in CC Mode. 2017-06-15 21:03:03 +00:00
ChangeLog.1 ; ChangeLog fixes 2017-06-07 15:55:33 -04:00
cl.texi Merge from origin/emacs-25 2017-04-27 22:03:56 -07:00
dbus.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
dired-x.texi dired-mark-suffix: New command 2017-03-31 17:27:08 +09:00
doclicense.texi Update licenses to latest version from FSF. 2012-12-06 00:33:32 -08:00
ebrowse.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
ede.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
ediff.texi Show ancestor buffer in 3way merges 2017-03-14 16:12:29 +09:00
edt.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
efaq-w32.texi Update copyright year to 2017 2016-12-31 19:42:26 -08:00
efaq.texi Support 24-bit direct colors on text terminals 2017-02-18 13:04:55 +02:00
eieio.texi Make EIEIO use records. 2017-04-04 08:23:46 +02:00
emacs-gnutls.texi Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
emacs-mime.texi Document how to quote MML tags 2017-01-25 21:47:28 +01:00
epa.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
erc.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
ert.texi Remove stale functions from ert manual 2017-01-27 11:49:42 +02:00
eshell.texi Fix a typo in Eshell manual 2017-01-27 11:42:59 +02:00
eudc.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
eww.texi Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
flymake.texi Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
forms.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
gnus-coding.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
gnus-faq.texi Update copyright year to 2017 2016-12-31 19:42:26 -08:00
gnus-news.el Fix copyright years by hand 2017-01-01 04:01:41 +00:00
gnus-news.texi Update copyright year to 2017 2016-12-31 19:42:26 -08:00
gnus-overrides.texi
gnus.texi Don't advertise s_client in tls.el docs 2017-04-24 20:06:14 -04:00
gpl.texi Update licenses to latest version from FSF. 2012-12-06 00:33:32 -08:00
htmlfontify.texi Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
idlwave.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
ido.texi Update copyright year to 2017 2016-12-31 19:42:26 -08:00
info.texi ;* doc/misc/info.texi (Choose menu subtopic): Improve indexing. (Bug#26236) 2017-03-25 10:46:59 +03:00
mairix-el.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
Makefile.in Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
message.texi Remove overly broad element from default mail-dont-reply-to-names 2017-02-13 23:36:17 -08:00
mh-e.texi ; Spelling fixes for "SpamAssassin" 2017-05-30 08:29:34 -07:00
newsticker.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
nxml-mode.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
octave-mode.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
org.texi Port and simplify example sh script 2017-03-21 09:19:42 -07:00
pcl-cvs.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
pgg.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
rcirc.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
reftex.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
remember.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
sasl.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
sc.texi Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
sem-user.texi Update copyright year to 2017 2016-12-31 19:42:26 -08:00
semantic.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
ses.texi Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
sieve.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
smtpmail.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
speedbar.texi Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
srecode.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
texinfo.tex Merge from gnulib 2017-06-11 17:30:06 -07:00
todo-mode.texi Update copyright year to 2017 2016-12-31 19:42:26 -08:00
tramp.texi Minor tweaks in Tramp manual 2017-06-13 15:20:43 +02:00
trampver.texi Minor tweaks in Tramp manual 2017-06-13 15:20:43 +02:00
url.texi Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
vhdl-mode.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
vip.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
viper.texi Remove references to OS/2 in code, doc, and comments 2017-04-08 13:16:08 -07:00
widget.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
wisent.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00
woman.texi Fix copyright years by hand 2017-01-01 04:01:41 +00:00