Commits

Author Commit Message Labels Comments Date
Alan Mackenzie
Handling of `c-parse-state'. Fix low level bug. cc-engine.el (c-remove-stale-state-cache-backwards): Add "CASE 3.5" to handle `cache-pos' being only slightly before `here'.
Alan Mackenzie
Make electric-pair-mode, delete-selection-mode and CC Mode cooperate. In GNU Emacs >= 25, let electric-pair-mode take precedence over delete-selection-mode. cc-cmds.el (top-level): Give the `delete-selection' property for c-electric-\(brace\|paren\) the value `delete-selection-uses-region-p' when the latter function exists.
Alan Mackenzie
Introduce new macros to cover Emacs's new names in cl-lib.el. This also eliminates `mapcan' warnings in XEmacs. cc-defs.el (c--mapcan-status): new variable to characterise [X]Emacs versions. (top-level): Require either 'cl or 'cl-lib, depending on c--mapcan-status. Change this back to cc-external-require from an eval-when-compile require. (c--mapcan, c--set-difference, c--intersection, c--macroexpand-all) (c--delete-duplicates): New macros which expand into either old or new names. (c-make-keywords-re, c-la…
Alan Mackenzie
Fix "Invalid search bound (wrong side of point)" in fontification. cc-fonts.el (c-font-lock-declarators): After skipping an initialization expression, check point is not beyond the fontification limit.
Norbert Koch
Added tag cc-mode-1_90 for changeset 24688b092c50
Norbert Koch
XEmacs Package Release 1.90
Tags
cc-mode-1_90
Alan Mackenzie
Remove partly implemented indentation fixer from c-electric-semi&comma cc-cmds.el (c-electric-semi&comma): Remove offending code.
Norbert Koch
Added tag cc-mode-1_89 for changeset eeb64148ee80
Norbert Koch
XEmacs Package Release 1.89
Tags
cc-mode-1_89
Alan Mackenzie
Don't do anything in before/after-change-functions for text property changes cc-mode.el (c-basic-common-init): Make yank-handled-properties buffer local, and remove 'category from it. (c-called-from-text-property-change-p): New function. (c-before-change): Don't do anything if a call of the new function returns non-nil. (c-after-change): Don't do much if a call of the new function returns non-nil. (c-extend-after-change-region): Put changes to text property 'fontified insi…
Norbert Koch
Added tag cc-mode-1_88 for changeset ba9ec7d70bba
Norbert Koch
XEmacs Package Release 1.88
Tags
cc-mode-1_88
Alan Mackenzie
Always mark "<" and ">" in #include directives with text properties * c-fonts.el (c-cpp-matchers): Replace a font-lock "anchored matcher" with an invocation of c-make-font-lock-search-function to allow fontification when there's no trailing space on an "#include <..>" line.
Alan Mackenzie
Fix miscellaneous glitches in cc-mode.el. Fixes debbugs#20245. cc-mode.el (c-common-init): bind \(before\|after\)-change-functions to nil around invocations of c-get-state-before-change-functions and c-before-font-lock-functions to prevent recursive invocations. (c-neutralize-syntax-in-and-mark-CPP): On c-beginning-of-macro, check that point has actually moved back. (c-fl-decl-start): Check whether c-beginning-of-decl-1 has actually found a boundary (as contr…
Alan Mackenzie
Fix the CC Mode fixes from 2015-03-30. Fixes debbugs#20240. cc-mode.el (c-extend-after-change-region): Widen before applying text properties. cc-langs.el (c-before-font-lock-functions): Update an entry to a new function name.
Alan Mackenzie
Correct calculation of CC Mode's font-lock region. cc-mode.el (c-fl-decl-start): Renamed from c-set-fl-decl-start. Change signature such that nil is returned when no declaration is found. (c-change-expand-fl-region): Renamed from c-change-set-fl-decl-start. This now also handles expanding the font lock region to whole lines. (c-context-expand-fl-region): Renamed from c-context-set-fl-decl-start. This now also handles expanding the font lock regio…
Norbert Koch
Added tag cc-mode-1_87 for changeset 36e2a01e58b6
Norbert Koch
XEmacs Package Release 1.87
Tags
cc-mode-1_87
Norbert Koch
pull and merge cc-mode
Norbert Koch
Added tag cc-mode-1_86 for changeset 4c56c5705e2a
Norbert Koch
XEmacs Package Release 1.86
Tags
cc-mode-1_86
Alan Mackenzie
CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669. cc-mode.el (c-font-lock-init): Setq font-lock-extend-region-functions to nil.
Alan Mackenzie
Handle "#" operator properly inside macro. Fix coding bug. cc-mode.el (c-neutralize-syntax-in-and-mark-CPP): On finding a "#" which looks like the start of a macro, check it isn't already inside a macro. cc-engine.el (c-state-safe-place): Don't record a new "safe" position into the list of them when this is beyond our current position.
Norbert Koch
Added tag cc-mode-1_85 for changeset 3520a664f019
Norbert Koch
XEmacs Package Release 1.85
Tags
cc-mode-1_85
Alan Mackenzie
Allow compilation during loading of Modes derived from a CC Mode mode. cc-bytecomp.el (cc-bytecomp-compiling-or-loading): new function which walks the stack to discover whether we're compiling or loading. (cc-bytecomp-is-compiling): Reformulate, and move towards beginning. (cc-bytecomp-is-loading): New defsubst. (cc-bytecomp-setup-environment, cc-bytecomp-restore-environment): Use the above defsubsts. (cc-require-when-compile, cc-bytecomp-defvar) (cc-bytecomp-defun):…
Norbert Koch
Added tag cc-mode-1_84 for changeset ca49a5a04462
Norbert Koch
XEmacs Package Release 1.84
Tags
cc-mode-1_84
Norbert Koch
merge changes
Norbert Koch
Added tag cc-mode-1_83 for changeset 8df77a744787
  1. Prev
  2. Next