1. 28 Aug, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/progmodes/cc-mode.el: Minor cleanup of var declarations. · dd4f8b74
      Stefan Monnier authored
      (c-define-abbrev-table): Add `doc' argument.
      (c-mode-abbrev-table, c++-mode-abbrev-table)
      (objc-mode-abbrev-table, java-mode-abbrev-table)
      (idl-mode-abbrev-table, pike-mode-abbrev-table)
      (awk-mode-abbrev-table): Use it.
      (c-mode-syntax-table, c-mode-map, c++-mode-syntax-table)
      (c++-mode-map, objc-mode-syntax-table, objc-mode-map)
      (java-mode-syntax-table, java-mode-map, idl-mode-syntax-table)
      (idl-mode-map, pike-mode-syntax-table, pike-mode-map, awk-mode-map):
      Move initialization into the declaration; and remove any
      autoload cookie.
      dd4f8b74
  2. 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
  3. 30 May, 2013 1 commit
  4. 28 May, 2013 1 commit
  5. 27 May, 2013 1 commit
  6. 02 May, 2013 1 commit
  7. 15 Apr, 2013 1 commit
  8. 01 Jan, 2013 1 commit
  9. 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
  10. 21 Nov, 2012 1 commit
  11. 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
  12. 26 May, 2012 1 commit
  13. 16 Apr, 2012 1 commit
  14. 16 Mar, 2012 1 commit
  15. 22 Feb, 2012 1 commit
  16. 13 Feb, 2012 1 commit
  17. 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
  18. 13 Jan, 2012 1 commit
  19. 11 Jan, 2012 1 commit
  20. 08 Jan, 2012 1 commit
  21. 05 Jan, 2012 1 commit
  22. 30 Dec, 2011 1 commit
  23. 24 Dec, 2011 1 commit
  24. 23 Dec, 2011 1 commit
  25. 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
  26. 12 Dec, 2011 1 commit
  27. 20 Nov, 2011 1 commit
  28. 19 Nov, 2011 1 commit
  29. 15 Nov, 2011 1 commit
  30. 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
  31. 09 Sep, 2011 1 commit
  32. 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
  33. 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
  34. 28 May, 2011 1 commit
  35. 25 Jan, 2011 1 commit
  36. 16 Jan, 2011 1 commit
  37. 15 Jan, 2011 1 commit
  38. 02 Jan, 2011 1 commit
  39. 10 Dec, 2010 1 commit
    • Stefan Monnier's avatar
      Derive from prog-mode, use derived-mode-p, and fix up various · 175069ef
      Stefan Monnier authored
      minor style issues in lisp/progmodes.
      
      * lisp/progmodes/vhdl-mode.el (vhdl-write-file-hooks-init)
      (vhdl-hs-minor-mode, vhdl-ps-print-init): Fix make-local-variable ->
      make-local-hook.
      * lisp/progmodes/sh-script.el (sh-require-final-newline): Remove.
      (sh-set-shell): Don't set require-final-newline since it's already done
      by prog-mode.
      * lisp/progmodes/modula2.el (m2-mode): Don't make m2-end-comment-column
      since we never set it.
      * lisp/progmodes/ebrowse.el (ebrowse-set-tree-indentation):
      Use read-string and standard prompt.
      * lisp/progmodes/dcl-mode.el (dcl-mode-map): Move init into declaration.
      * lisp/progmodes/meta-mode.el (meta-mode-abbrev-table): Merge init and decl.
      (meta-common-mode-syntax-table): Rename from meta-mode-syntax-table.
      (meta-common-mode-map): Rename from meta-mode-map.
      Remove C-m binding, which is a user preference, not mode specific.
      (meta-common-mode): New major mode; replace meta-common-initialization.
      * lisp/progmodes/js.el (js-mode): Call syntax-propertize rather than messing
      around with font-lock.
      * lisp/progmodes/etags.el (select-tags-table-mode):
      Derive from special-mode.
      * lisp/progmodes/octave-mod.el (octave-mode):
      * lisp/progmodes/gdb-mi.el (gdb-inferior-io-mode, gdb-threads-mode)
      (gdb-memory-mode, gdb-disassembly-mode, gdb-breakpoints-mode)
      (gdb-frames-mode, gdb-locals-mode, gdb-registers-mode):
      Let define-derived-mode do its job.
      * lisp/progmodes/cpp.el (cpp-edit-mode-map):
      Move initialization into declaration.
      (cpp-edit-mode): Use define-derived-mode.
      (cpp-edit-load): Use derived-mode-p.
      * lisp/progmodes/mixal-mode.el (mixal-mode):
      * lisp/progmodes/f90.el (f90-mode):
      * lisp/progmodes/cfengine.el (cfengine-mode): Don't bother setting
      require-final-newline since prog-mode does it already.
      * lisp/progmodes/cc-cmds.el (c-update-modeline): Use match-string.
      * lisp/progmodes/asm-mode.el (asm-mode-map): Fix menu setup.
      * lisp/progmodes/antlr-mode.el: Require cc-mode upfront.
      (antlr-mode-syntax-table, antlr-action-syntax-table): Initialize in
      the declaration.
      (antlr-directory-dependencies, antlr-show-makefile-rules):
      Use derived-mode-p.
      (antlr-language-option): Don't assume point-min==1.
      (antlr-mode): Use define-derived-mode.
      * lisp/progmodes/ada-mode.el: Use derived-mode-p.
      (ada-mode): Use define-derived-mode.
      Use hack-local-variables-hook.
      
      * lisp/progmodes/vhdl-mode.el (vhdl-mode):
      * lisp/progmodes/verilog-mode.el (verilog-mode):
      * lisp/progmodes/vera-mode.el (vera-mode):
      * lisp/progmodes/sql.el (sql-mode):
      * lisp/progmodes/scheme.el (scheme-mode):
      * lisp/progmodes/perl-mode.el (perl-mode):
      * lisp/progmodes/octave-inf.el (inferior-octave-mode):
      * lisp/progmodes/autoconf.el (autoconf-mode):
      * lisp/progmodes/m4-mode.el (m4-mode):
      * lisp/progmodes/inf-lisp.el (inferior-lisp-mode):
      * lisp/progmodes/idlwave.el (idlwave-mode):
      * lisp/progmodes/icon.el (icon-mode):
      * lisp/progmodes/idlw-help.el (idlwave-help-mode):
      * lisp/progmodes/dcl-mode.el (dcl-mode):
      * lisp/progmodes/idlw-shell.el (idlwave-shell-mode):
      * lisp/progmodes/ebrowse.el (ebrowse-tree-mode, ebrowse-electric-list-mode)
      (ebrowse-member-mode, ebrowse-electric-position-mode):
      Use define-derived-mode.
      
      * lisp/progmodes/xscheme.el (xscheme-start)
      (local-set-scheme-interaction-buffer, scheme-interaction-mode):
      * lisp/progmodes/which-func.el (which-function):
      * lisp/progmodes/vhdl-mode.el (vhdl-set-style):
      * lisp/progmodes/verilog-mode.el (verilog-set-compile-command)
      (verilog-modify-compile-command, verilog-error-regexp-add-xemacs)
      (verilog-set-define, verilog-auto-reeval-locals):
      * lisp/progmodes/sql.el (sql-product-font-lock, sql-interactive-mode):
      * lisp/progmodes/simula.el (simula-mode):
      * lisp/progmodes/scheme.el (scheme-mode-variables, dsssl-mode):
      * lisp/progmodes/python.el (python-check, python-mode):
      * lisp/progmodes/prolog.el (prolog-mode-variables):
      * lisp/progmodes/gud.el (gud-tooltip-activate-mouse-motions):
      * lisp/progmodes/ebrowse.el (ebrowse-view-file-other-frame):
      * lisp/progmodes/delphi.el (delphi-mode):
      * lisp/progmodes/cc-styles.el (c-setup-paragraph-variables):
      * lisp/progmodes/cc-mode.el (c-basic-common-init, c-common-init)
      (c-font-lock-init): Move make-local-variable to their setq.
      
      * lisp/progmodes/xscheme.el (exit-scheme-interaction-mode)
      (xscheme-enter-interaction-mode, xscheme-enter-debugger-mode)
      (xscheme-debugger-mode-p, xscheme-send-string-1):
      * lisp/progmodes/tcl.el (inferior-tcl-proc, tcl-current-word)
      (tcl-load-file, tcl-restart-with-file):
      * lisp/progmodes/ps-mode.el (ps-run-running):
      * lisp/progmodes/gdb-mi.el (gud-watch, gdb-mouse-set-clear-breakpoint):
      * lisp/progmodes/js.el (js--get-all-known-symbols):
      * lisp/progmodes/inf-lisp.el (inferior-lisp-proc):
      * lisp/progmodes/idlwave.el (idlwave-beginning-of-statement)
      (idlwave-template, idlwave-update-buffer-routine-info)
      (idlwave-update-current-buffer-info)
      (idlwave-get-routine-info-from-buffers, idlwave-choose)
      (idlwave-scan-class-info, idlwave-fix-keywords)
      (idlwave-list-buffer-load-path-shadows):
      * lisp/progmodes/idlw-toolbar.el (idlwave-toolbar, idlwave-toolbar-add)
      (idlwave-toolbar-remove):
      * lisp/progmodes/idlw-shell.el (idlwave-shell-save-and-action)
      (idlwave-shell-file-name, idlwave-shell-electric-debug-all-off)
      (idlwave-shell-menu-def):
      * lisp/progmodes/idlw-complete-structtag.el
      (idlwave-prepare-structure-tag-completion):
      * lisp/progmodes/gud.el (gud-set-buffer):
      * lisp/progmodes/f90.el (f90-backslash-not-special):
      * lisp/progmodes/delphi.el (delphi-find-unit): Use derived-mode-p.
      175069ef
  40. 19 Oct, 2010 1 commit