1. 12 Apr, 2010 2 commits
  2. 04 Feb, 2010 1 commit
  3. 13 Jan, 2010 1 commit
  4. 03 Dec, 2009 1 commit
    • Alan Mackenzie's avatar
      Enhance `c-parse-state' to run efficiently in "brace desserts". · 0ec1d2c5
      Alan Mackenzie authored
      * progmodes/cc-mode.el (c-basic-common-init): Call
      c-state-cache-init.
      (c-neutralize-syntax-in-and-mark-CPP):  Renamed from
      c-extend-and-neutralize-syntax-in-CPP.  Mark each CPP construct by
      placing `category' properties value 'c-cpp-delimiter at its
      boundaries.
      
      * progmodes/cc-langs.el (c-before-font-lock-function):
      c-extend-and-neutralize-syntax-in-CPP has been renamed
      c-neutralize-syntax-in-and-mark-CPP.
      
      * progmodes/cc-fonts.el (c-cpp-matchers): Mark template brackets
      with `category' properties now, not `syntax-table' ones.
      
      * progmodes/cc-engine.el (c-syntactic-end-of-macro): A new
      enhanced (but slower) version of c-end-of-macro that won't land
      inside a literal or on another awkward character.
      (c-state-cache-too-far, c-state-cache-start)
      (c-state-nonlit-pos-interval, c-state-nonlit-pos-cache)
      (c-state-nonlit-pos-cache-limit, c-state-point-min)
      (c-state-point-min-lit-type, c-state-point-min-lit-start)
      (c-state-min-scan-pos, c-state-brace-pair-desert)
      (c-state-old-cpp-beg, c-state-old-cpp-end): New constants and
      buffer local variables.
      (c-state-literal-at, c-state-lit-beg)
      (c-state-cache-non-literal-place, c-state-get-min-scan-pos)
      (c-state-mark-point-min-literal, c-state-cache-top-lparen)
      (c-state-cache-top-paren, c-state-cache-after-top-paren)
      (c-get-cache-scan-pos, c-get-fallback-scan-pos)
      (c-state-balance-parens-backwards, c-parse-state-get-strategy)
      (c-renarrow-state-cache)
      (c-append-lower-brace-pair-to-state-cache)
      (c-state-push-any-brace-pair, c-append-to-state-cache)
      (c-remove-stale-state-cache)
      (c-remove-stale-state-cache-backwards, c-state-cache-init)
      (c-invalidate-state-cache-1, c-parse-state-1)
      (c-invalidate-state-cache): New defuns/defmacros/defsubsts.
      (c-parse-state): Enhanced and refactored.
      (c-debug-parse-state): Amended to deal with all the new variables.
      
      * progmodes/cc-defs.el (c-<-as-paren-syntax, c-mark-<-as-paren)
      (c->-as-paren-syntax, c-mark->-as-paren, c-unmark-<->-as-paren):
      modify to use category text properties rather than syntax-table
      ones.
      (c-suppress-<->-as-parens, c-restore-<->-as-parens): new defsubsts
      to switch off/on the syntactic paren property of C++ template
      delimiters using the category property.
      (c-with-<->-as-parens-suppressed): Macro to invoke code with
      template delims suppressed.
      (c-cpp-delimiter, c-set-cpp-delimiters, c-clear-cpp-delimiters):
      New constant/macros which apply category properties to the start
      and end of preprocessor constructs.
      (c-comment-out-cpps, c-uncomment-out-cpps): defsubsts which
      "comment out" the syntactic value of characters in preprocessor
      constructs.
      (c-with-cpps-commented-out)
      (c-with-all-but-one-cpps-commented-out): Macros to invoke code
      with characters in all or all but one preprocessor constructs
      "commented out".
      0ec1d2c5
  5. 20 Nov, 2009 1 commit
    • Tassilo Horn's avatar
      2009-11-20 Tassilo Horn <tassilo@member.fsf.org> · 653d1554
      Tassilo Horn authored
      	* progmodes/cc-cmds.el (c-update-modeline)
      	(c-forward-into-nomenclature, c-backward-into-nomenclature): Refer
      	to subword.el functions instead of cc-subword.el.
      
      	* progmodes/cc-mode.el (subword-mode, c-mode-base-map): Refer to
      	subword.el functions instead of cc-subword.el.
      
      	* progmodes/cc-subword.el: Renamed to subword.el.
      	* subword.el: Renamed from progmodes/cc-subword.el.
      	(subword-mode-map): Renamed from c-subword-mode-map.
      	(subword-mode): Renamed from c-subword-mode.
      	(global-subword-mode): New global minor mode.
      	(forward-subword): Renamed from c-forward-subword.
      	(backward-subword): Renamed from c-backward-subword.
      	(mark-subword): Renamed from c-mark-subword.
      	(kill-subword): Renamed from c-kill-subword.
      	(backward-kill-subword): Renamed from c-backward-kill-subword.
      	(transpose-subwords): Renamed from c-tranpose-subword.
      	(downcase-subword): Renamed from c-downcase-subword.
      	(capitalize-subword): Renamed from c-capitalize-subword.
      	(forward-subword-internal): Renamed from
      	c-forward-subword-internal.
      	(backward-subword-internal): Renamed from
      	c-backward-subword-internal.
      653d1554
  6. 26 Sep, 2009 1 commit
  7. 19 May, 2009 1 commit
    • Alan Mackenzie's avatar
      cc-mode.el (c-extend-and-neutralize-CPP-line): Renamed from · a0526d5e
      Alan Mackenzie authored
      c-neutralize-syntax-in-CPP.  Set the variables c-new-BEG and c-new-END,
      thus extending the font-lock region.
      (c-font-lock-init): Don't set obsolete variable font-lock-lines-before.
      
      cc-langs.el (c-before-font-lock-function): Rename a value to
      c-extend-and-neutralize-syntax-in-CPP.
      a0526d5e
  8. 30 Apr, 2009 1 commit
    • Alan Mackenzie's avatar
      Enhancements for Objective-C: · f0e4b2f2
      Alan Mackenzie authored
      cc-vars.el
      (c-objc-method-arg-min-delta-to-bracket,
      c-objc-method-arg-unfinished-offset, c-objc-method-parameter-offset): New
      variables.
      (c-offsets-alist): Use c-lineup-ObjC-method-call-colons in entry for
      objc-method-call-cont.
      
      cc-langs.el (c-constant-kwds): New ObjC keywords "YES", "NO",
      "NS_DURING", "NS_HANDLER", "NS_ENDHANDLER".
      
      cc-align.el (c-lineup-ObjC-method-call-colons): New function.
      f0e4b2f2
  9. 21 Feb, 2009 1 commit
  10. 17 Jan, 2009 1 commit
  11. 11 Jan, 2009 1 commit
  12. 05 Jan, 2009 1 commit
  13. 02 Sep, 2008 1 commit
  14. 06 May, 2008 1 commit
  15. 10 Apr, 2008 1 commit
  16. 06 Apr, 2008 2 commits
  17. 04 Mar, 2008 1 commit
  18. 01 Mar, 2008 1 commit
  19. 19 Feb, 2008 1 commit
    • Alan Mackenzie's avatar
      Set of changes so that "obtrusive" syntactic elements in a · 5ee2e988
      Alan Mackenzie authored
      C/C++/ObjC preprocessor line (e.g. an unbalanced string quote or
      unmatched paren) don't interact syntactically with stuff outside
      the CPP line.
      (c-get-state-before-change-function, c-before-font-lock-function,
      c-anchored-cpp-prefix): new language variables.
      (c-cpp-message-directives): Handle "#warning" in C, C++ and ObjC.
      5ee2e988
  20. 29 Jan, 2008 3 commits
  21. 07 Jan, 2008 1 commit
  22. 08 Sep, 2007 1 commit
  23. 28 Aug, 2007 2 commits
  24. 25 Aug, 2007 2 commits
  25. 28 Jul, 2007 2 commits
  26. 25 Jul, 2007 1 commit
  27. 09 Apr, 2007 1 commit
    • Alan Mackenzie's avatar
      Changes to make `narrow-to-defun' and `mark-defun' work properly in CC · 28abe5e2
      Alan Mackenzie authored
      Mode:
      
      cc-defs.el (c-beginning-of-defun-1):
      cc-cmds.el (c-beginning-of-defun, c-end-of-defun): bind
      beginning/end-of-defun-function to nil around calls to
      beginning/end-of-defun.
      
      cc-langs.el (beginning-of-defun-function, end-of-defun-function): new
      c-lang-setvar's.
      
      cc-awk.el (c-awk-beginning-of-defun): Add "(or arg (setq arg 1))" to
      enable non-interactive call.
      28abe5e2
  28. 21 Jan, 2007 1 commit
  29. 20 Jan, 2007 1 commit
  30. 07 Jan, 2007 1 commit
  31. 01 Jan, 2007 1 commit
  32. 10 Dec, 2006 1 commit
  33. 03 Dec, 2006 1 commit