1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-13 15:00:42 -08:00
emacs/lisp/progmodes
Alan Mackenzie 80dcc23709 Rationalize the use of c-new-BEG and c-new-END in CC Mode.
Remove the now redundant c-old-BOM and c-old-EOM.

* lisp/progmodes/cc-engine.el (c-macro-cache-syntactic): Change and simplify
meaning.
(c-macro-cache-no-comment): New variable.
(c-invalidate-macro-cache, c-beginning-of-macro, c-end-of-macro): incorporate
the new c-macro-cache-no-comment.
(c-syntactic-end-of-macro): Make better use of c-macro-cache-syntactic.
(c-no-comment-end-of-macro): New function.

* lisp/progmodes/cc-langs.el (c-before-font-lock-functions): Add
c-extend-font-lock-region-for-macros to C/C++/ObjC value.

* lisp/progmodes/cc-mode.el (c-old-BOM, c-old-EOM): Remove.
(c-extend-region-for-CPP): Put results in c-new-BEG/END rather than
c-old-BOM/EOM.
(c-extend-font-lock-region-for-macros): Simplify meaning, no longer returning
a cons for the new region, since the function is now called as an after-change
function.  No longer adjust c-new-END for the length of inserted/deleted
text.  Move the size restrictions on macros to here from
c-neutralize-syntax-in-and-mark-CPP.
(c-neutralize-syntax-in-and-mark-CPP): No longer adjust c-new-BEG/END here.
Use c-no-comment-end-of-macro rather than c-syntactic-end-of-macro to find the
upper boundary to "neutralize" syntactically obtrusive characters.
(c-change-expand-fl-region): Don't set c-new-END to next BOL when already at
one.
2016-05-29 12:22:17 +00:00
..
ada-mode.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
ada-prj.el
ada-stmt.el
ada-xref.el Prefer grep -E/-F to egrep/fgrep 2016-05-07 18:40:55 -07:00
antlr-mode.el
asm-mode.el
autoconf.el
bat-mode.el
bug-reference.el
cc-align.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
cc-awk.el
cc-bytecomp.el
cc-cmds.el Finish fixing a cacheing bug in CC Mode (see 2016-03-09) 2016-03-30 17:14:03 +00:00
cc-defs.el Merge from origin/emacs-25 2016-04-03 13:39:52 -07:00
cc-engine.el Rationalize the use of c-new-BEG and c-new-END in CC Mode. 2016-05-29 12:22:17 +00:00
cc-fonts.el Fix spurious fontification of "for (; a * b;)" in CC Mode. 2016-05-16 11:27:39 +00:00
cc-guess.el
cc-langs.el Rationalize the use of c-new-BEG and c-new-END in CC Mode. 2016-05-29 12:22:17 +00:00
cc-menus.el
cc-mode.el Rationalize the use of c-new-BEG and c-new-END in CC Mode. 2016-05-29 12:22:17 +00:00
cc-styles.el
cc-vars.el Tidy up redundant code in cc-vars.el caused by mistake in emacs-25 -> master 2016-05-16 13:56:24 +00:00
cfengine.el
cmacexp.el
compile.el Merge from origin/emacs-25 2016-05-01 18:09:29 -07:00
cperl-mode.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
cpp.el
cwarn.el
dcl-mode.el
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 Merge from origin/emacs-25 2016-05-05 23:11:11 -07:00
etags.el Use save-excursion in xref-location-marker more 2016-05-05 04:28:14 +03:00
executable.el
f90.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
flymake.el
fortran.el
gdb-mi.el
glasses.el
grep.el Merge from origin/emacs-25 2016-04-24 12:48:34 -07:00
gud.el Remove support for IRIX 2016-03-07 08:26:36 -08:00
hideif.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
hideshow.el Add hideshow bindings analogous to outline mode 2016-02-24 15:13:41 +11:00
icon.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
idlw-complete-structtag.el
idlw-help.el
idlw-shell.el
idlw-toolbar.el Avoid stray As next to IDLW icons 2016-03-24 16:53:24 -07:00
idlwave.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
inf-lisp.el
js.el Pacify 'make check-declare' 2016-05-26 13:39:41 -07:00
ld-script.el
m4-mode.el
make-mode.el Highlight assignments in Makefiles more correctly 2016-02-24 12:22:15 +11:00
mantemp.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
meta-mode.el
mixal-mode.el
modula2.el
octave.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
opascal.el
pascal.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
perl-mode.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
prog-mode.el Remove prog-indentation-context 2016-03-28 03:59:05 +03:00
project.el shell-quote-argument DIR when appropriate 2016-05-05 04:15:23 +03:00
prolog.el Pacify ‘make check-declare’ 2016-05-14 19:57:44 -07:00
ps-mode.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
python.el python-describe-at-point: add and bind 2016-05-18 09:56:17 -04:00
ruby-mode.el Do not mistake colon at the end of regexp for slash symbol 2016-05-12 03:18:45 +03:00
scheme.el scheme.el: Turn literal tabs into \t 2016-05-07 12:24:27 +02:00
sh-script.el Merge from origin/emacs-25 2016-04-18 14:05:31 -07:00
simula.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
sql.el Allow _ characters in SQL prompts 2016-04-24 13:44:52 +02:00
subword.el
tcl.el
vera-mode.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
verilog-mode.el Sync with verilog-mode development tree. 2016-03-22 20:46:40 -04:00
vhdl-mode.el Sync with upstream vhdl mode v3.38.1. 2016-04-17 16:15:29 -07:00
which-func.el
xref.el Say 'All results processed' at the end 2016-05-08 00:29:44 +03:00
xscheme.el