1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-07 06:22:32 -08:00
emacs/lisp/progmodes
Stefan Monnier 517505322a Merge some of the differences from the standalone CC-mode.
The main change is to only use the `category' text-property only when
available.  For that many calls are changed to use c-get-char-property,
c-next-single-property-change, c-sc-scan-lists,
c-sc-parse-partial-sexp, c-unmark-<->-as-paren.

* lisp/progmodes/cc-align.el (c-lineup-respect-col-0): New function.

* lisp/progmodes/cc-cmds.el (c-forward-into-nomenclature)
(c-backward-into-nomenclature): Use cc-subword if subword-mode is
not available.
(c-beginning-of-defun, c-end-of-defun, c-mark-function)
(c-indent-line-or-region): Use c-region-is-active-p.

* lisp/progmodes/cc-defs.el (c-version): Bump up to 5.33.
(c-use-category): New const.
(c-next-single-property-change): New macro.
(c-region-is-active-p): Prefer region-active-p when available.
(c-search-backward-char-property): Fix old min/max typo; probably
a copy/paste error.
(c-mark-<-as-paren, c-mark->-as-paren, c-unmark-<->-as-paren):
Turn them into macros that obey c-use-category.
(c-sc-scan-lists-no-category+1+1, c-sc-scan-lists-no-category+1-1)
(c-sc-scan-lists-no-category-1+1, c-sc-scan-lists-no-category-1-1)
(c-sc-scan-lists, c-sc-parse-partial-sexp)
(c-looking-at-non-alphnumspace): New macros.
(c-sc-parse-partial-sexp-no-category): New function.
(c-emacs-features): Add `category-properties' element.

* lisp/progmodes/cc-engine.el (c-invalidate-state-cache, c-parse-state):
Handle the case where categories are not available.
(c-record-parse-state-state, c-replay-parse-state-state):
Handle marker values.
(c-before-change-check-<>-operators): Look for the `syntax-table'
property rather than for the corresponding `category'.
(c-looking-at-decl-block): Remove unused var
`c-disallow-comma-in-<>-arglists'.
(c-forward-<>-arglist-recur): Remove unused var
`orig-record-found-types'.

* lisp/progmodes/cc-langs.el (c-modified-constant): New lang var.
(c-known-type-key): Don't make a list just to throw it away.

* lisp/progmodes/cc-bytecomp.el (cc-bytecomp-unbound-variables)
(cc-bytecomp-original-functions, cc-bytecomp-original-properties)
(cc-bytecomp-loaded-files): Re-set each time the file is loaded.
(cc-bytecomp-obsolete-var, cc-bytecomp-ignore-obsolete)
(cc-bytecomp-obsolete-fun): Delete unused functions.

* lisp/progmodes/cc-mode.el (c-just-done-before-change): New var.
(c-basic-common-init): Initialize it.
(c-common-init): Only use mode-require-final-newline when available.
(c-before-change): Check and set c-just-done-before-change.
(c-after-change): Re-set c-just-done-before-change.
(c-advise-fl-for-region): New macro.
(lazy-lock-defer-rest-after-change, lazy-lock-defer-line-after-change)
(font-lock-after-change-function, jit-lock-after-change):
Advise if needed.
2014-12-01 15:06:49 -05:00
..
ada-mode.el Remove remaining mentions of VMS as a host 2014-08-07 12:49:36 +01:00
ada-prj.el
ada-stmt.el
ada-xref.el Remove remaining mentions of VMS as a host 2014-08-07 12:49:36 +01:00
antlr-mode.el
asm-mode.el
autoconf.el
bat-mode.el * lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Fix \\<_ typo. 2014-10-10 00:03:27 -04:00
bug-reference.el
cc-align.el Merge some of the differences from the standalone CC-mode. 2014-12-01 15:06:49 -05:00
cc-awk.el Merge some of the differences from the standalone CC-mode. 2014-12-01 15:06:49 -05:00
cc-bytecomp.el Merge some of the differences from the standalone CC-mode. 2014-12-01 15:06:49 -05:00
cc-cmds.el Merge some of the differences from the standalone CC-mode. 2014-12-01 15:06:49 -05:00
cc-defs.el Merge some of the differences from the standalone CC-mode. 2014-12-01 15:06:49 -05:00
cc-engine.el Merge some of the differences from the standalone CC-mode. 2014-12-01 15:06:49 -05:00
cc-fonts.el Merge some of the differences from the standalone CC-mode. 2014-12-01 15:06:49 -05:00
cc-guess.el Merge some of the differences from the standalone CC-mode. 2014-12-01 15:06:49 -05:00
cc-langs.el Merge some of the differences from the standalone CC-mode. 2014-12-01 15:06:49 -05:00
cc-menus.el Merge some of the differences from the standalone CC-mode. 2014-12-01 15:06:49 -05:00
cc-mode.el Merge some of the differences from the standalone CC-mode. 2014-12-01 15:06:49 -05:00
cc-styles.el Merge some of the differences from the standalone CC-mode. 2014-12-01 15:06:49 -05:00
cc-vars.el Merge some of the differences from the standalone CC-mode. 2014-12-01 15:06:49 -05:00
cfengine.el * lisp/progmodes/cfengine.el (cfengine3-defun-full-re): New var. 2014-10-23 16:07:40 +08:00
cmacexp.el
compile.el Merge from emacs-24; up to 117656 2014-11-01 11:05:30 -07:00
cperl-mode.el Treat the perl keyword constant' like bless', `return' &c 2014-07-09 10:51:52 -04: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 * lisp/emacs-lisp/pp.el (pp-macroexpand-expression): Use macroexpand-1. 2014-11-02 01:46:04 -04:00
etags.el
executable.el
f90.el
flymake.el
fortran.el
gdb-mi.el
glasses.el
grep.el * lisp/progmodes/grep.el (grep-compute-defaults): Compute grep-highlight-matches before its use. 2014-11-19 00:05:09 +02:00
gud.el * lisp/subr.el (alist-get): New accessor. 2014-10-01 13:23:42 -04:00
hideif.el Rename 24.5 to 25.1 2014-09-29 14:14:08 -04:00
hideshow.el Use `defvar-local' more. 2014-07-27 11:41:59 +02:00
icon.el
idlw-complete-structtag.el
idlw-help.el
idlw-shell.el
idlw-toolbar.el
idlwave.el
inf-lisp.el
js.el Merge branch 'emacs-24' 2014-11-26 21:31:11 -05:00
ld-script.el
m4-mode.el * lisp/progmodes/m4-mode.el (m4-syntax-propertize): New var. 2014-10-15 11:28:35 -04:00
make-mode.el
mantemp.el
meta-mode.el
mixal-mode.el
modula2.el
octave.el
opascal.el Simplify use of current-time and friends. 2014-10-28 18:42:51 -07:00
pascal.el
perl-mode.el * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): 2014-09-21 18:00:28 -04:00
prog-mode.el * lisp/progmodes/prog-mode.el (prog-mode-hook): Replace reference to 2014-09-21 18:07:26 -04:00
prolog.el Merge from emacs-24; up to 2014-07-26T11:58:24Z!schwab@linux-m68k.org 2014-10-12 15:56:45 -07:00
ps-mode.el Update some version numbers for trunk version change 2014-10-29 22:39:21 -07:00
python.el Merge branch 'emacs-24'. 2014-11-28 23:07:16 -08:00
ruby-mode.el
scheme.el
sh-script.el * lisp/progmodes/sh-script.el (sh-font-lock-quoted-subshell): Try to better 2014-09-02 20:38:49 -04:00
simula.el
sql.el sql.el (sql-mode-oracle-font-lock-keywords): Correct regexp 2014-11-01 22:04:26 -04:00
subword.el Rename 24.5 to 25.1 2014-09-29 14:14:08 -04:00
tcl.el
vera-mode.el Rename 24.5 to 25.1 2014-09-29 14:14:08 -04:00
verilog-mode.el Sync with upstream verilog-mode revision c075a492 2014-10-06 20:19:10 -07:00
vhdl-mode.el Merge from emacs-24; up to 117656 2014-11-01 11:05:30 -07:00
which-func.el * lisp/progmodes/which-func.el (which-func-ff-hook): Obey pre-existing 2014-09-03 15:10:15 -04:00
xscheme.el