1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 19:31:02 -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 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ada-stmt.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ada-xref.el Prefer grep -E/-F to egrep/fgrep 2016-05-07 18:40:55 -07:00
antlr-mode.el Spelling fixes 2016-01-25 08:09:09 -08:00
asm-mode.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
autoconf.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
bat-mode.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
bug-reference.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
cc-align.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
cc-awk.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
cc-bytecomp.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
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 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
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 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
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 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
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 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
cmacexp.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
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 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
cwarn.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
dcl-mode.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ebnf-abn.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ebnf-bnf.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ebnf-dtd.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ebnf-ebx.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ebnf-iso.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ebnf-otz.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ebnf-yac.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ebnf2ps.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ebrowse.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
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 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
f90.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
flymake.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
fortran.el * lisp/progmodes/fortran.el (fortran-make-syntax-propertize-function): 2016-01-02 10:16:03 -08:00
gdb-mi.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
glasses.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
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 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
idlw-help.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
idlw-shell.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
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 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
js.el Pacify 'make check-declare' 2016-05-26 13:39:41 -07:00
ld-script.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
m4-mode.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
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 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
mixal-mode.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
modula2.el
octave.el Fix problems caused by new implementation of sub-word mode 2016-03-21 17:47:22 -07:00
opascal.el * lisp/progmodes/opascal.el (opascal-mode-syntax-table): 2016-01-05 19:17:55 -05:00
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 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
tcl.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
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 Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
xref.el Say 'All results processed' at the end 2016-05-08 00:29:44 +03:00
xscheme.el * lisp/progmodes/xscheme.el (xscheme-prompt-for-expression-exit): 2016-01-05 18:59:19 -05:00