1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 17:30:54 -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
ada-stmt.el
ada-xref.el
antlr-mode.el
asm-mode.el
autoconf.el
bat-mode.el
bug-reference.el
cc-align.el
cc-awk.el
cc-bytecomp.el
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
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
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
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
cmacexp.el
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
cwarn.el
dcl-mode.el ; Update some more Maintainer: header comments 2017-06-05 21:08:07 -04:00
ebnf-abn.el
ebnf-bnf.el
ebnf-dtd.el
ebnf-ebx.el
ebnf-iso.el
ebnf-otz.el
ebnf-yac.el
ebnf2ps.el
ebrowse.el
elisp-mode.el Fix eldoc bug with curved quote 2017-06-04 09:13:37 -07:00
etags.el
executable.el
f90.el
flymake.el Merge from origin/emacs-25 2017-03-19 12:29:06 -07:00
fortran.el
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
grep.el
gud.el Fix GUD "Stop" display when running pdb 2017-05-27 15:15:18 +03:00
hideif.el
hideshow.el
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
idlw-help.el
idlw-shell.el Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
idlw-toolbar.el
idlwave.el
inf-lisp.el
js.el Handle indentation of nested ternary operators in JS 2017-04-13 03:50:41 +03:00
ld-script.el
m4-mode.el
make-mode.el
mantemp.el
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
opascal.el
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
project.el
prolog.el
ps-mode.el
python.el Add watch for password back to inferior python comint filter 2017-06-02 20:06:12 -04:00
ruby-mode.el
scheme.el
sh-script.el Don't treat ' as a string delimiter in RPM spec files 2017-05-23 18:48:19 +01:00
simula.el
sql.el Merge from origin/emacs-25 2017-03-19 12:27:55 -07:00
subword.el
tcl.el Fix all unescaped character literals 2017-05-07 13:22:34 +02:00
vera-mode.el
verilog-mode.el ; Small fixes for some Author: header comments 2017-06-05 20:35:17 -04:00
vhdl-mode.el
which-func.el
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