1. 10 Sep, 2013 1 commit
  2. 28 Aug, 2013 2 commits
  3. 01 Jun, 2013 1 commit
    • 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
  4. 30 May, 2013 1 commit
  5. 28 May, 2013 1 commit
  6. 27 May, 2013 1 commit
  7. 02 May, 2013 1 commit
  8. 15 Apr, 2013 1 commit
  9. 01 Jan, 2013 1 commit
  10. 01 Dec, 2012 1 commit
    • Chong Yidong's avatar
      Modularize add-log-current-defun. · ba03d0d9
      Chong Yidong authored
      Suggested by Jari Aalto.
      
      * lisp/emacs-lisp/lisp-mode.el (lisp-current-defun-name): New.
      (lisp-mode-variables): Use it.
      
      * lisp/progmodes/cc-mode.el (c-common-init):
      * lisp/progmodes/cperl-mode.el (cperl-mode): Set a value for
      add-log-current-defun-function.
      
      * lisp/progmodes/m4-mode.el (m4-current-defun-name): New function.
      (m4-mode): Use it.
      
      * lisp/progmodes/perl-mode.el (perl-current-defun-name): New.
      (perl-mode): Use it.
      
      * lisp/progmodes/scheme.el (scheme-mode-variables, dsssl-mode): Use
      lisp-current-defun-name.
      
      * lisp/textmodes/tex-mode.el (tex-current-defun-name): New.
      (tex-common-initialization): Use it.
      
      * lisp/textmodes/texinfo.el (texinfo-current-defun-name): New.
      (texinfo-mode): Use it.
      
      * lisp/vc/add-log.el (add-log-current-defun-function): Doc fix.
      (add-log-current-defun): Move mode-specific code to other files.
      (add-log-lisp-like-modes, add-log-c-like-modes)
      (add-log-tex-like-modes): Variables deleted.
      
      Fixes: debbugs:2224
      ba03d0d9
  11. 21 Nov, 2012 1 commit
  12. 23 Oct, 2012 1 commit
    • Stefan Monnier's avatar
      Cleanup uses of "-hooks". · d1069532
      Stefan Monnier authored
      * doc/emacs/custom.texi (Hooks):
      * doc/lispref/hooks.texi (Standard Hooks): Clarify that -hooks is deprecated.
      
      * lisp/gnus/nndiary.el (nndiary-request-create-group-functions)
      (nndiary-request-update-info-functions)
      (nndiary-request-accept-article-functions):
      * lisp/gnus/gnus-start.el (gnus-subscribe-newsgroup-functions):
      * lisp/cedet/semantic/db-file.el (semanticdb-save-database-functions):
      * lisp/cedet/semantic/lex.el (semantic-lex-reset-functions):
      * lisp/cedet/semantic/edit.el (semantic-change-functions)
      (semantic-edits-new-change-functions)
      (semantic-edits-delete-change-functions)
      (semantic-edits-reparse-change-functions):
      * lisp/htmlfontify.el (hfy-post-html-hook):
      * lisp/filesets.el (filesets-cache-fill-content-hook):
      * lisp/arc-mode.el (archive-extract-hook):
      * lisp/progmodes/cc-mode.el (c-prepare-bug-report-hook):
      * lisp/net/rcirc.el (rcirc-sentinel-functions)
      (rcirc-receive-message-functions, rcirc-activity-functions)
      (rcirc-print-functions):
      * lisp/net/dbus.el (dbus-event-error-functions):
      * lisp/emacs-lisp/eieio.el (eieio-pre-method-execution-functions):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-style-functions)
      (checkdoc-comment-style-functions): Don't use "-hooks" suffix.
      
      * lisp/term/sun.el (sun-raw-prefix-hooks):
      * lisp/mail/sendmail.el (mail-yank-hooks):
      * lisp/mh-e/mh-letter.el (mh-yank-hooks): Use make-obsolete-variable.
      d1069532
  13. 26 May, 2012 1 commit
  14. 16 Apr, 2012 1 commit
  15. 16 Mar, 2012 1 commit
  16. 22 Feb, 2012 1 commit
  17. 13 Feb, 2012 1 commit
  18. 06 Feb, 2012 1 commit
    • Lars Ingebrigtsen's avatar
      Allow calling C fontification while rendering MIME parts · 5cc59a37
      Lars Ingebrigtsen authored
      * progmodes/cc-mode.el
      (c-standard-font-lock-fontify-region-function): Set the default at
      load time, too, so that `font-lock-fontify-buffer' can be called
      without setting up the entire mode first.  This fixes a bug in
      `mm-inline-text' with C MIME parts.
      5cc59a37
  19. 13 Jan, 2012 1 commit
  20. 11 Jan, 2012 1 commit
  21. 08 Jan, 2012 1 commit
  22. 05 Jan, 2012 1 commit
  23. 30 Dec, 2011 1 commit
  24. 24 Dec, 2011 1 commit
  25. 23 Dec, 2011 1 commit
  26. 13 Dec, 2011 1 commit
    • Alan Mackenzie's avatar
      Large brace-block initialisation makes CC Mode slow: Fix. · 13d49cbb
      Alan Mackenzie authored
      Tidy up and accelerate c-in-literal, etc. by using the c-parse-state
      routines.  Limit backward searching in c-font-lock-enclosing.decl.
      
      cc-engine.el (c-state-pp-to-literal): Return the pp-state and literal
      type in addition to the limits.
      (c-state-safe-place): New defun, extracted from c-state-literal-at.
      (c-state-literal-at): Use the above new defun.
      (c-slow-in-literal, c-fast-in-literal): Removed.
      (c-in-literal, c-literal-limits): Amended to use c-state-pp-to-literal.
      
      cc-fonts.el (c-font-lock-enclosing-decls): Check for being in a literal.
      Add a limit for backward searching.
      
      cc-mode.el (awk-mode): Don't alias c-in-literal to c-slow-in-literal.
      13d49cbb
  27. 12 Dec, 2011 1 commit
  28. 20 Nov, 2011 1 commit
  29. 19 Nov, 2011 1 commit
  30. 15 Nov, 2011 1 commit
  31. 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
  32. 09 Sep, 2011 1 commit
  33. 22 Jul, 2011 1 commit
    • Alan Mackenzie's avatar
      Prevent cc-langs.elc being loaded at run time. · a9901f61
      Alan Mackenzie authored
      cc-mode.el: Remove two autoload forms which loaded cc-langs.
      
      cc-langs.el (c-make-init-lang-vars-fun): Don't emit "(require 'cc-langs)".
      Quote a form so it will evaluate at (cc-mode's) compilation time.
      a9901f61
  34. 30 Jun, 2011 1 commit
    • Alan Mackenzie's avatar
      progmodes/cc-guess.el: New file. · b14c0c55
      Alan Mackenzie authored
      progmodes/cc-langs.el (c-mode-menu): Added "Style..." submenu.
      progmodes/cc-styles.el (cc-choose-style-for-mode): New function derived
      from `c-basic-common-init'.
      progmodes/cc-mode.el (top-level): Require cc-guess.
      (c-basic-common-init): Use `cc-choose-style-for-mode'.
      b14c0c55
  35. 28 May, 2011 1 commit
  36. 25 Jan, 2011 1 commit
  37. 16 Jan, 2011 1 commit
  38. 15 Jan, 2011 1 commit
  39. 02 Jan, 2011 1 commit