1. 04 Oct, 2014 1 commit
    • Stefan Monnier's avatar
      Merge trivially safe differences from standalone CC-mode. · 03c45536
      Stefan Monnier authored
      * lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Don't quote a symbol
      just to then pass it to `symbol-value'.
      (prog-mode): Provide fallback definition, if needed.
      * lisp/progmodes/cc-langs.el: Always load `cl'.  Don't load `cl-lib'.
      Remove "cl-" prefix accordingly.
      * lisp/progmodes/cc-fonts.el (c-font-lock-invalid-string): Use integerp or
      characterp depending on the type of characters.
      (c-font-lock-enum-tail): Remove unused var `start'.
      * lisp/progmodes/cc-engine.el: Load CL at compile-time.
      (c-declare-lang-variables): Use mapcan.
      (c-append-to-state-cache): Remove unused var `ce+1'.
      (c-parse-state-state): Make buffer-local.
      (c-ssb-lit-begin): Remove unused var `pps-end-pos'.
      (c-just-after-func-arglist-p): Remove unused var `end'.
      * lisp/progmodes/cc-defs.el: Load cc-fix if delete-dups is undefined.
      (c-<-as-paren-syntax, c->-as-paren-syntax): Move definition earlier.
      (c-make-keywords-re): Use delete-dups.
      (c-get-current-file): Avoid file-name-base.
      * lisp/progmodes/cc-cmds.el (c-electric-lt-gt): Remove unused var
      `close-paren-inserted'.
      * lisp/progmodes/cc-awk.el (c-forward-sws): Remove unused declaration.
      03c45536
  2. 01 Jan, 2014 1 commit
  3. 01 Jun, 2013 2 commits
    • Glenn Morris's avatar
      Plain fboundp silences compilation warnings since Emacs 22.1 · 683853b9
      Glenn Morris authored
      * progmodes/cc-cmds.el (delete-forward-p):
      * progmodes/cc-defs.el (buffer-syntactic-context-depth):
      * progmodes/cc-engine.el (buffer-syntactic-context):
      * progmodes/cc-fonts.el (face-property-instance):
      * progmodes/cc-mode.el (set-keymap-parents):
      * progmodes/cc-vars.el (get-char-table): No need for cc-bytecomp-defun.
      * progmodes/cc-defs.el (c-set-region-active, c-beginning-of-defun-1)
      * progmodes/cc-mode.el (c-make-inherited-keymap): Use plain fboundp.
      683853b9
    • Glenn Morris's avatar
      Don't (re)define a basic custom widget in cc-vars · 31e7b090
      Glenn Morris authored
      * lisp/progmodes/cc-vars.el (other): Emacs has this widget since at
      least 21.1, so don't (re)define it.
      31e7b090
  4. 31 May, 2013 1 commit
  5. 28 May, 2013 1 commit
  6. 01 Jan, 2013 1 commit
  7. 09 Oct, 2012 1 commit
  8. 11 Feb, 2012 1 commit
    • Glenn Morris's avatar
      Add missing :version tags to new defgroups and defcustoms · 2bed3f04
      Glenn Morris authored
      * window.el (window-sides-slots):
      * tool-bar.el (tool-bar-position):
      * term/xterm.el (xterm-extra-capabilities):
      * ses.el (ses-self-reference-early-detection):
      * progmodes/verilog-mode.el (verilog-auto-declare-nettype)
      (verilog-auto-wire-type)
      (verilog-auto-delete-trailing-whitespace)
      (verilog-auto-reset-blocking-in-non, verilog-auto-inst-sort)
      (verilog-auto-tieoff-declaration):
      * progmodes/sql.el (sql-login-hook, sql-ansi-statement-starters)
      (sql-oracle-statement-starters, sql-oracle-scan-on):
      * progmodes/prolog.el (prolog-align-comments-flag)
      (prolog-indent-mline-comments-flag, prolog-object-end-to-0-flag)
      (prolog-left-indent-regexp, prolog-paren-indent-p)
      (prolog-paren-indent, prolog-parse-mode, prolog-keywords)
      (prolog-types, prolog-mode-specificators)
      (prolog-determinism-specificators, prolog-directives)
      (prolog-electric-newline-flag, prolog-hungry-delete-key-flag)
      (prolog-electric-dot-flag)
      (prolog-electric-dot-full-predicate-template)
      (prolo...
      2bed3f04
  9. 11 Jan, 2012 1 commit
  10. 05 Jan, 2012 1 commit
  11. 06 Dec, 2011 1 commit
  12. 19 Nov, 2011 1 commit
  13. 14 Nov, 2011 2 commits
  14. 28 Oct, 2011 1 commit
  15. 27 Oct, 2011 1 commit
    • Alan Mackenzie's avatar
      Amend to indent and fontify macros "which include their own semicolon" · 536610a4
      Alan Mackenzie authored
      correctly, using the "virtual semicolon" mechanism.
      
      cc-defs.el: Update "virtual semicolon" comments.
      
      cc-engine.el (c-crosses-statement-barrier-p): Recoded to scan one line at
      at time rather than having \n and \r explicitly in c-stmt-delim-chars
      (for some modes, e.g. AWK).
      (c-forward-label): Amend for virtual semicolons.
      (c-at-macro-vsemi-p, c-macro-vsemi-status-unknown-p): New functions
      
      cc-fonts.el (c-font-lock-declarations): Take account of the new C macros.
      
      cc-langs.el (c-at-vsemi-p-fn, c-vsemi-status-unknown-p-fn): move to
      earlier in the file.
      (c-opt-cpp-symbol, c-line-comment-start-regexp): New language variables.
      (c-opt-cpp-macro-define): Make into a full language variable.
      (c-stmt-delim-chars, c-stmt-delim-chars-with-comma): Special value for
      AWK Mode (including \n, \r) removed, no longer needed.
      
      cc-mode.el (c-mode, c++-mode, objc-mode): Invoke
      c-make-macro-with-semi-re.
      
      cc-vars.el (c-macro-with-semi-re, c-macro-names-with-semicolon): New
      variables.
      (c-make-macro-with-semi-re): New function
      
      cc-mode.texi (Indentation Commands): Mention "macros with semicolons".
      (Other Special Indentations): Add an xref to "Macros with ;".
      (Customizing Macros): Add stuff about syntax in macros.  Add an xref to
      "Macros with ;".
      (Macros with ;): New page.
      536610a4
  16. 12 Jul, 2011 1 commit
  17. 26 Jan, 2011 1 commit
  18. 25 Jan, 2011 1 commit
  19. 15 Jan, 2011 1 commit
  20. 02 Jan, 2011 1 commit
  21. 29 Aug, 2010 1 commit
  22. 31 Jul, 2010 1 commit
  23. 13 Jan, 2010 1 commit
  24. 29 Aug, 2009 1 commit
  25. 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
  26. 26 Feb, 2009 1 commit
  27. 11 Jan, 2009 1 commit
  28. 05 Jan, 2009 1 commit
  29. 02 Dec, 2008 1 commit
  30. 06 May, 2008 1 commit
  31. 10 Apr, 2008 1 commit
  32. 27 Jan, 2008 1 commit
  33. 26 Jan, 2008 1 commit
  34. 19 Jan, 2008 1 commit
  35. 16 Jan, 2008 1 commit
  36. 15 Jan, 2008 1 commit
  37. 14 Jan, 2008 2 commits
    • Alan Mackenzie's avatar
      * progmodes/cc-vars.el (c-constant-symbol): New function which supersedes · b4d0e517
      Alan Mackenzie authored
      c-const-symbol.  During a customize-.. call it enables an element of
      (e.g.) c-hanging-braces alist to have its name displayed, even when the
      default value of c-h-b etc. doesn't include the elemnt.  Replace uses of
      the old function by the new.
      
      * progmodes/cc-vars.el (c-hanging-braces-alist): Remove the obscure
      non-working fragment ":value c-".
      b4d0e517
    • Alan Mackenzie's avatar
      * (c-constant-symbol): New function which supersedes c-const-symbol. · 43b829c1
      Alan Mackenzie authored
      During a customize-.. call it enables an element of (e.g.)
      c-hanging-braces alist to have its name displayed, even when the default
      value of c-h-b etc. doesn't include the elemnt.  Replace uses of the old
      function by the new.
      
      * progmodes/cc-vars.el (c-hanging-braces-alist): Remove the obscure
      non-working fragment ":value c-".
      43b829c1