1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-02 10:11:05 -08:00
emacs/lisp/progmodes
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.el Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
ada-prj.el Avoid add-to-list on local variables 2017-01-04 00:40:45 -05:00
ada-stmt.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ada-xref.el Avoid add-to-list on local variables 2017-01-04 00:40:45 -05:00
antlr-mode.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
asm-mode.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
autoconf.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
bat-mode.el Improve fontification in bat-mode 2017-02-10 11:23:24 +02:00
bug-reference.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
cc-align.el Allow C++ nested brace-list-entries to be better indented. 2017-02-01 20:20:09 +00:00
cc-awk.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
cc-bytecomp.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
cc-cmds.el Create a toggle between block and line comments in CC Mode. 2017-06-15 21:03:03 +00:00
cc-defs.el CC Mode internal cache: Handle a cache pos being inside a two-char construct. 2017-05-07 09:27:00 +00:00
cc-engine.el Fontify C++ for loop variable as variable, even when followed by parentheses 2017-05-12 21:11:49 +00:00
cc-fonts.el Fix fontification of C++ declaration with type FOO::FOO. 2017-04-22 14:45:24 +00:00
cc-guess.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
cc-langs.el Create a toggle between block and line comments in CC Mode. 2017-06-15 21:03:03 +00:00
cc-menus.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
cc-mode.el Create a toggle between block and line comments in CC Mode. 2017-06-15 21:03:03 +00:00
cc-styles.el Allow C++ nested brace-list-entries to be better indented. 2017-02-01 20:20:09 +00:00
cc-vars.el Fix C++ fontification problems 500 bytes after typing a space, and other bugs 2017-03-30 20:24:39 +00:00
cfengine.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
cmacexp.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
compile.el Merge from origin/emacs-25 2017-03-19 12:24:51 -07:00
cperl-mode.el Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
cpp.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
cwarn.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
dcl-mode.el ; Update some more Maintainer: header comments 2017-06-05 21:08:07 -04:00
ebnf-abn.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf-bnf.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf-dtd.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf-ebx.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf-iso.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf-otz.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf-yac.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ebnf2ps.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ebrowse.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
elisp-mode.el Fix eldoc bug with curved quote 2017-06-04 09:13:37 -07:00
etags.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
executable.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
f90.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
flymake.el Merge from origin/emacs-25 2017-03-19 12:29:06 -07:00
fortran.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
gdb-mi.el Fix handling of Python/Guile commands with arguments in gdb-mi.el 2017-06-10 11:29:58 +03:00
glasses.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
grep.el Extract grep-find-ignored-directories processing from rgrep-default-command 2017-02-10 14:53:02 -05:00
gud.el Fix GUD "Stop" display when running pdb 2017-05-27 15:15:18 +03:00
hideif.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
hideshow.el lisp/*.el: Fix some warnings 2017-01-29 19:34:35 +01:00
icon.el Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00
idlw-complete-structtag.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
idlw-help.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
idlw-shell.el Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
idlw-toolbar.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
idlwave.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
inf-lisp.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
js.el Handle indentation of nested ternary operators in JS 2017-04-13 03:50:41 +03:00
ld-script.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
m4-mode.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
make-mode.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
mantemp.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
meta-mode.el Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00
mixal-mode.el ; Update some more Maintainer: header comments 2017-06-05 21:08:07 -04:00
modula2.el
octave.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
opascal.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
pascal.el Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00
perl-mode.el Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00
prog-mode.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
project.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
prolog.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ps-mode.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
python.el Add watch for password back to inferior python comint filter 2017-06-02 20:06:12 -04:00
ruby-mode.el Turn on lexical-binding in ruby-mode 2017-02-17 19:01:11 -05:00
scheme.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
sh-script.el Don't treat ' as a string delimiter in RPM spec files 2017-05-23 18:48:19 +01:00
simula.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
sql.el Merge from origin/emacs-25 2017-03-19 12:27:55 -07:00
subword.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
tcl.el Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
vera-mode.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
verilog-mode.el ; Small fixes for some Author: header comments 2017-06-05 20:35:17 -04:00
vhdl-mode.el Doc fix for vhdl-mode re mail-host-address 2017-02-12 17:36:33 -08:00
which-func.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
xref.el Use regexp matching instead of checking exit status 2017-05-30 00:59:03 +03:00
xscheme.el Don't pass the value of point to 'push-mark', as that's the default. 2017-04-28 11:25:26 +03:00