1. 30 Jun, 2011 1 commit
  2. 10 May, 2011 1 commit
  3. 22 Apr, 2011 1 commit
  4. 25 Jan, 2011 1 commit
  5. 21 Jan, 2011 1 commit
  6. 02 Jan, 2011 1 commit
  7. 14 Dec, 2010 1 commit
    • Glenn Morris's avatar
      Tidy up some js.el requires. · ab274982
      Glenn Morris authored
      * lisp/progmodes/js.el: Doc't require font-lock, etags, or easymenu.
      (find-tag-marker-ring): Declare.
      (js-find-symbol): Require etags.
      ab274982
  8. 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
  9. 07 Nov, 2010 1 commit
    • Glenn Morris's avatar
      Replace end-of-line, save-excursion etc with point-at-eol, point-at-bol. · e180ab9f
      Glenn Morris authored
      * lisp/mh-e/mh-seq.el (mh-read-msg-list): Use point-at-eol.
      
      * lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-show-infos)
      (gnus-bookmark-kill-line): Use point-at-eol.
      
      * lisp/cedet/ede/proj-elisp.el (ede-proj-flush-autoconf): Use point-at-bol.
      
      * lisp/emacs-lisp/chart.el (chart-zap-chars):
      * lisp/play/decipher.el (decipher-set-map):
      * lisp/progmodes/ada-mode.el (ada-get-current-indent)
      (ada-search-ignore-string-comment, ada-tab-hard, ada-untab-hard):
      * lisp/progmodes/ada-prj.el (ada-prj-load-from-file, ada-prj-display-help):
      * lisp/progmodes/ada-xref.el (ada-initialize-runtime-library)
      (ada-get-all-references):
      * lisp/progmodes/cperl-mode.el (cperl-electric-paren)
      (cperl-electric-rparen, cperl-electric-keyword, cperl-electric-else)
      (cperl-linefeed, cperl-sniff-for-indent, cperl-to-comment-or-eol)
      (cperl-find-pods-heres, cperl-indent-exp, cperl-fix-line-spacing)
      (cperl-word-at-point-hard):
      * lisp/progmodes/idlw-shell.el (idlwave-shell-move-or-history)
      (idlwave-shell-filename-string, idlwave-shell-batch-command)
      (idlwave-shell-display-line):
      * lisp/progmodes/idlwave.el (idlwave-show-begin, idlwave-fill-paragraph)
      (idlwave-calc-hanging-indent, idlwave-auto-fill, idlwave-template):
      * lisp/progmodes/js.el (js--re-search-forward-inner)
      (js--re-search-backward-inner):
      * lisp/progmodes/vhdl-mode.el (vhdl-align-region-1, vhdl-align-region-2)
      (vhdl-fix-clause, vhdl-compose-configuration-architecture):
      * lisp/progmodes/ruby-mode.el (ruby-parse-partial, eval-when-compile):
      * lisp/textmodes/flyspell.el (flyspell-process-localwords):
      * lisp/textmodes/ispell.el (ispell-buffer-local-parsing)
      (ispell-buffer-local-dict, ispell-buffer-local-words):
      Use point-at-bol and point-at-eol.
      e180ab9f
  10. 18 Sep, 2010 1 commit
    • Stefan Monnier's avatar
      Fix and improve last syntax-propertize patch · b879a6e2
      Stefan Monnier authored
      * lisp/emacs-lisp/syntax.el (syntax-propertize-precompile-rules): New macro.
      (syntax-propertize-rules): Add var-ref case.  Fix offset computation
      when adding surrounding \(..\).
      
      * lisp/progmodes/fortran.el (fortran--font-lock-syntactic-keywords): Remove.
      (fortran-make-syntax-propertize-function): New function; replaces
      fortran-font-lock-syntactic-keywords.
      (fortran-mode): Use it.
      (fortran-line-length): Use it.  Improve interactive spec.
      
      * lisp/progmodes/js.el (js-mode): Fix last change (bug#7054).
      
      * lisp/textmodes/tex-mode.el (tex-syntax-propertize-rules)
      (latex-syntax-propertize-rules): New consts; replace
      tex-font-lock-syntactic-keywords.
      (tex-env-mark, latex-env-before-change): New functions.
      (latex-electric-env-pair-mode): New minor mode.
      (tex-font-lock-verb): Change arguments; do move point.
      (tex-font-lock-syntactic-face-function): Adjust to new verbatim
      representation as a form of comment.
      (tex-font-lock-keywords-1): Remove workaround, now unneeded.
      (doctex-syntax-propertize-rules): New const; replaces
      doctex-font-lock-syntactic-keywords.
      (tex-common-initialization, doctex-mode): Use syntax-propertize-rules.
      b879a6e2
  11. 10 Sep, 2010 1 commit
    • Stefan Monnier's avatar
      New syntax-propertize functionality. · cf38dd42
      Stefan Monnier authored
      * lisp/font-lock.el (font-lock-syntactic-keywords): Make obsolete.
      (font-lock-fontify-syntactic-keywords-region): Move handling of
      font-lock-syntactically-fontified to...
      (font-lock-default-fontify-region): ...here.
      Let syntax-propertize-function take precedence.
      (font-lock-fontify-syntactically-region): Cal syntax-propertize.
      
      * lisp/emacs-lisp/regexp-opt.el (regexp-opt-depth): Skip named groups.
      
      * lisp/emacs-lisp/syntax.el (syntax-propertize-function)
      (syntax-propertize-chunk-size, syntax-propertize--done)
      (syntax-propertize-extend-region-functions): New vars.
      (syntax-propertize-wholelines, syntax-propertize-multiline)
      (syntax-propertize--shift-groups, syntax-propertize-via-font-lock)
      (syntax-propertize): New functions.
      (syntax-propertize-rules): New macro.
      (syntax-ppss-flush-cache): Set syntax-propertize--done.
      (syntax-ppss): Call syntax-propertize.
      
      * lisp/progmodes/ada-mode.el (ada-set-syntax-table-properties)
      (ada-after-change-function, ada-initialize-syntax-table-properties)
      (ada-handle-syntax-table-properties): Only define when
      syntax-propertize is not available.
      (ada-mode): Use syntax-propertize-function.
      
      * lisp/progmodes/autoconf.el (autoconf-mode):
      Use syntax-propertize-function.
      (autoconf-font-lock-syntactic-keywords): Remove.
      
      * lisp/progmodes/cfengine.el (cfengine-mode):
      Use syntax-propertize-function.
      (cfengine-font-lock-syntactic-keywords): Remove.
      
      * lisp/progmodes/cperl-mode.el (cperl-mode): Use syntax-propertize-function.
      
      * lisp/progmodes/fortran.el (fortran-mode): Use syntax-propertize-function.
      (fortran--font-lock-syntactic-keywords): New var.
      (fortran-line-length): Update syntax-propertize-function and
      fortran--font-lock-syntactic-keywords.
      
      * lisp/progmodes/gud.el (gdb-script-syntax-propertize-function): New var;
      replaces gdb-script-font-lock-syntactic-keywords.
      (gdb-script-mode): Use it.
      
      * lisp/progmodes/js.el (js--regexp-literal): Define while compiling.
      (js-syntax-propertize-function): New var; replaces
      js-font-lock-syntactic-keywords.
      (js-mode): Use it.
      
      * lisp/progmodes/make-mode.el (makefile-syntax-propertize-function):
      New var; replaces makefile-font-lock-syntactic-keywords.
      (makefile-mode): Use it.
      (makefile-imake-mode): Adjust.
      
      * lisp/progmodes/mixal-mode.el (mixal-syntax-propertize-function): New var;
      replaces mixal-font-lock-syntactic-keywords.
      (mixal-mode): Use it.
      
      * lisp/progmodes/octave-mod.el (octave-syntax-propertize-sqs): New function
      to replace octave-font-lock-close-quotes.
      (octave-syntax-propertize-function): New function to replace
      octave-font-lock-syntactic-keywords.
      (octave-mode): Use it.
      
      * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): New fun to
      replace perl-font-lock-syntactic-keywords.
      (perl-syntax-propertize-special-constructs): New fun to replace
      perl-font-lock-special-syntactic-constructs.
      (perl-font-lock-syntactic-face-function): New fun.
      (perl-mode): Use it.
      
      * lisp/progmodes/python.el (python-syntax-propertize-function): New var to
      replace python-font-lock-syntactic-keywords.
      (python-mode): Use it.
      (python-quote-syntax): Simplify and adjust to new use.
      
      * lisp/progmodes/ruby-mode.el (ruby-here-doc-beg-re):
      Define while compiling.
      (ruby-here-doc-end-re, ruby-here-doc-beg-match)
      (ruby-font-lock-syntactic-keywords, ruby-comment-beg-syntax)
      (syntax-ppss, ruby-in-ppss-context-p, ruby-in-here-doc-p)
      (ruby-here-doc-find-end, ruby-here-doc-beg-syntax)
      (ruby-here-doc-end-syntax): Only define when
      syntax-propertize is not available.
      (ruby-syntax-propertize-function, ruby-syntax-propertize-heredoc):
      New functions.
      (ruby-in-ppss-context-p): Update to new syntax of heredocs.
      (electric-indent-chars): Silence bytecompiler.
      (ruby-mode): Use prog-mode, syntax-propertize-function, and
      electric-indent-chars.
      
      * lisp/progmodes/sh-script.el (sh-st-symbol): Remove.
      (sh-font-lock-close-heredoc, sh-font-lock-open-heredoc): Add eol arg.
      (sh-font-lock-flush-syntax-ppss-cache, sh-font-lock-here-doc): Remove.
      (sh-font-lock-quoted-subshell): Assume we've already matched $(.
      (sh-font-lock-paren): Set syntax-multiline.
      (sh-font-lock-syntactic-keywords): Remove.
      (sh-syntax-propertize-function): New function to replace it.
      (sh-mode): Use it.
      
      * lisp/progmodes/simula.el (simula-syntax-propertize-function): New var to
      replace simula-font-lock-syntactic-keywords.
      (simula-mode): Use it.
      
      * lisp/progmodes/tcl.el (tcl-syntax-propertize-function): New var to
      replace tcl-font-lock-syntactic-keywords.
      (tcl-mode): Use it.
      
      * lisp/progmodes/vhdl-mode.el (vhdl-mode): Use syntax-propertize-function
      if available.
      (vhdl-fontify-buffer): Adjust.
      
      * lisp/textmodes/bibtex.el (bibtex-mode): Use syntax-propertize-function.
      
      * lisp/textmodes/reftex.el (font-lock-syntactic-keywords): Don't declare
      since we don't use it.
      
      * lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-function): New var to
      replace sgml-font-lock-syntactic-keywords.
      (sgml-mode): Use it.
      
      * lisp/textmodes/tex-mode.el (tex-common-initialization, doctex-mode):
      Use syntax-propertize-function.
      
      * lisp/textmodes/texinfo.el (texinfo-syntax-propertize-function): New fun
      to replace texinfo-font-lock-syntactic-keywords.
      (texinfo-mode): Use it.
      
      * test/indent/octave.m: Remove some `fixindent' not needed any more.
      cf38dd42
  12. 08 Sep, 2010 1 commit
    • Stefan Monnier's avatar
      Misc cleanups and simplifications. · b073dc4b
      Stefan Monnier authored
      * lisp/font-lock.el (save-buffer-state): Remove `varlist' arg.
      (font-lock-unfontify-region, font-lock-default-fontify-region):
      Update usage correspondingly.
      (font-lock-fontify-syntactic-keywords-region):
      Set parse-sexp-lookup-properties buffer-locally here.
      (font-lock-fontify-syntactically-region): Remove unused `ppss' arg.
      * lisp/progmodes/ada-mode.el: Replace "(set '" with setq.
      (ada-mode): Simplify.
      (ada-create-case-exception, ada-adjust-case-interactive)
      (ada-adjust-case-region, ada-format-paramlist, ada-indent-current)
      (ada-search-ignore-string-comment, ada-move-to-start)
      (ada-move-to-end): Use with-syntax-table.
      * lisp/progmodes/fortran.el (fortran-line-length): Don't recompute
      syntactic keywords redundantly a second time.
      * lisp/progmodes/js.el (require): Require is already "eval-and-compile".
      (js--re-search-forward): Avoid `eval'.  Preserve the error data.
      (js--re-search-backward): Use js--re-search-forward.
      * lisp/progmodes/octave-mod.el (electric-indent-chars): Silence bytecomp.
      b073dc4b
  13. 29 Aug, 2010 1 commit
  14. 26 Aug, 2010 1 commit
  15. 27 Jul, 2010 1 commit
    • Tom Tromey's avatar
      Derive programming modes from prog-mode. · ae0c2494
      Tom Tromey authored
      * progmodes/js.el (js-mode):
      * progmodes/make-mode.el (makefile-mode):
      * progmodes/simula.el (simula-mode):
      * progmodes/tcl.el (tcl-mode): Derive from prog-mode.
      ae0c2494
  16. 22 Jun, 2010 1 commit
    • Glenn Morris's avatar
      Minor js.el fix. · 943375a6
      Glenn Morris authored
      * lisp/progmodes/js.el (js-mode-map): Use standard capitalization and
      ellipses for menu entries.
      943375a6
  17. 02 May, 2010 1 commit
  18. 28 Mar, 2010 1 commit
  19. 13 Jan, 2010 1 commit
  20. 11 Jan, 2010 1 commit
  21. 06 Dec, 2009 1 commit
  22. 02 Oct, 2009 1 commit
  23. 18 Sep, 2009 1 commit
  24. 12 Sep, 2009 1 commit
  25. 28 Aug, 2009 1 commit
    • Juanma Barranquero's avatar
      * international/ucs-normalize.el (ucs-normalize-sort, quick-check-list): · dd4fbf56
      Juanma Barranquero authored
        Fix typos in docstrings.
      
      * progmodes/js.el (js--macro-decl-re): Doc fix.
        (js--plain-method-re, js--split-name): Refloc docstring.
        (js--class-styles, js--make-merged-item, js--splice-into-items):
        Fix typos in docstrings; reflow docstrings.
        (js--maybe-join, js--function-prologue-beginning, js--flush-caches)
        (js--variable-decl-matcher, js--inside-pitem-p)
        (js--parse-state-at-point, js--get-all-known-symbols)
        (js--symbol-history, js-find-symbol, js--js-references)
        (js--moz-interactor, js--js-encode-value, js--read-tab):
        Fix typos in docstrings.
      dd4fbf56
  26. 21 Aug, 2009 1 commit
  27. 15 Aug, 2009 2 commits
  28. 14 Aug, 2009 1 commit
    • Chong Yidong's avatar
      * progmodes/js2-mode.el: File removed. · 17b5d0f7
      Chong Yidong authored
      * Makefile.in (ELCFILES): Add js.el, and remove js2-mode.el.
      
      * speedbar.el (speedbar-supported-extension-expressions): Add .js.
      
      * progmodes/hideshow.el (hs-special-modes-alist): Add js-mode
      entry.
      
      * progmodes/js.el: New file.
      17b5d0f7