1. 18 Aug, 2010 1 commit
  2. 17 Aug, 2010 2 commits
    • Stefan Monnier's avatar
      Font-lock '...' strings, plus various simplifications and fixes. · ff80a446
      Stefan Monnier authored
      * lisp/progmodes/octave-mod.el (octave-font-lock-keywords): Use regexp-opt.
      (octave-font-lock-close-quotes): New function.
      (octave-font-lock-syntactic-keywords): New var.
      (octave-mode): Use it.  Set beginning-of-defun-function.
      (octave-mode-map): Don't override the <foo>-defun commands.
      (octave-mode-menu): Pass it directly to easy-menu-define;
      remove (now generic) <foo>-defun commands; use info-lookup-symbol.
      (octave-block-match-alist): Fix up last change so that
      octave-close-block uses the more specific keyword.
      (info-lookup-mode): Silence byte-compiler.
      (octave-beginning-of-defun): Not interactive any more.
      Optimize slightly.
      (octave-end-of-defun, octave-mark-defun, octave-in-defun-p): Remove.
      (octave-indent-defun, octave-send-defun): Use mark-defun instead.
      (octave-completion-at-point-function): Make sure point is within
      Use reindent-then-newline-and-indent.
      (octave-add-octave-menu): Remove.
    • Glenn Morris's avatar
      Silence some cc-mode compiler warnings. · f3b554af
      Glenn Morris authored
      * lisp/progmodes/cc-engine.el (c-new-BEG, c-new-END)
      (c-fontify-recorded-types-and-refs): Define for compiler.
      * lisp/progmodes/cc-mode.el (c-new-BEG, c-new-END): Move definitions
      before use.
  3. 15 Aug, 2010 1 commit
  4. 14 Aug, 2010 1 commit
  5. 12 Aug, 2010 4 commits
    • Stefan Monnier's avatar
      Introduce a new comment style "c" flag. · c5683ceb
      Stefan Monnier authored
      * src/syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
      (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
      (syntax_prefix_flag_p): New function.
      (Fstring_to_syntax): Understand new "c" flag.
      (Finternal_describe_syntax_value): Recognize new flag; use the
      SYNTAX_FLAGS_* macros.
      (scan_sexps_forward, Fparse_partial_sexp): Change representation of
      comment style to accomodate the new styles.
      (back_comment, forw_comment, Fforward_comment, scan_lists)
      (scan_sexps_forward): Update code to obey the new comment style flag.
      * src/syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
      * src/casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
      * lisp/progmodes/octave-mod.el (octave-mode-syntax-table): Use the new "c"
      comment style.
      * lisp/progmodes/scheme.el (scheme-mode-syntax-table):
      * lisp/emacs-lisp/lisp-mode.el (lisp-mode-syntax-table): Remove spurious
      "b" flag in "14b" syntax.
      Fixes: debbugs:6834
    • Stefan Monnier's avatar
      Fix last change. · 7e82caa7
      Stefan Monnier authored
      * lisp/progmodes/octave-mod.el (octave-mode-syntax-table):
      Better describe the problem.
      (octave-fill-paragraph): Also update caller.
      (octave-completion-at-point-function): Fix up typo.
    • Stefan Monnier's avatar
      Misc code cleanup of octave-mode.el. · c82d5b11
      Stefan Monnier authored
      * lisp/progmodes/octave-mod.el (octave-mode-map): Remove special bindings
      for (un)commenting the region and performing completion.
      (octave-mode-menu): Use standard commands for help and completion.
      (octave-mode-syntax-table): Support %{..%} comments (sort of).
      (octave-mode): Use define-derived-mode.
      Set completion-at-point-functions and don't set columns.
      Don't disable adaptive-fill-regexp.
      (octave-describe-major-mode, octave-comment-region)
      (octave-uncomment-region, octave-comment-indent)
      (octave-indent-for-comment): Remove.
      (octave-indent-calculate): Rename from calculate-octave-indent.
      (octave-indent-line): Update caller.
      (octave-initialize-completions): No need to make an alist.
      (octave-completion-at-point-function): New function.
      (octave-complete-symbol): Use it.
      (octave-insert-defun): Use define-skeleton.
    • Stefan Monnier's avatar
      * lisp/progmodes/octave-mod.el (octave-mode-map): Use comment-dwim. · dc94fc85
      Stefan Monnier authored
      (octave-mode): Set comment-add.
      Fixes: debbugs:6829
  6. 10 Aug, 2010 1 commit
    • Michael Mauger's avatar
      Suppress continuation prompts in SQL interactive mode · 3bd2cfef
      Michael Mauger authored
              * progmodes/sql.el: Version 2.5
              (sql-product-alist): Add :prompt-cont-regexp property for several
              database products.
              (sql-prompt-cont-regexp): New variable.
              (sql-output-newline-count, sql-output-by-send): New
              variables. Record number of newlines in input text.
              (sql-send-string): Handle multiple filters and count newlines.
              (sql-send-magic-terminator): Count terminator newline.
              (sql-interactive-remove-continuation-prompt): Filters output to
              remove continuation prompts; one for each newline.
              (sql-interactive-mode): Set up new variables, prompt regexp and
              output filter.
              (sql-mode-sqlite-font-lock-keywords): Correct some keywords.
              (sql-make-alternate-buffer-name): Correct buffer name in edge
  7. 07 Aug, 2010 1 commit
  8. 06 Aug, 2010 1 commit
  9. 03 Aug, 2010 1 commit
  10. 31 Jul, 2010 2 commits
  11. 29 Jul, 2010 1 commit
  12. 28 Jul, 2010 1 commit
  13. 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.
  14. 23 Jul, 2010 2 commits
    • Markus Triska's avatar
      * lisp/progmodes/ps-mode.el: Use comint. · 9cf2db99
      Markus Triska authored
      (ps-run-mode-map): Adapt for comint-mode; omit "\r", [return]..
      (ps-mode-other-newline): Simplify.
      (ps-run-mode): Derive from comint-mode instead of
      fundamental-mode, yielding input history etc.
      (ps-run-start, ps-run-quit, ps-run-clear, ps-run-region)
      (ps-run-send-string): Adapt for comint-mode.
      (ps-run-newline): Remove now unneeded function.
      Fixes: debbugs:5954
    • Michael Mauger's avatar
      SQL Mode Version2.4 - Improved login prompting · 5474c40f
      Michael Mauger authored
      	* progmodes/sql.el: Version 2.4.  Improved Login prompting.
      	(sql-login-params): New widget definition.
      	(sql-oracle-login-params, sql-mysql-login-params)
      	(sql-solid-login-params, sql-sybase-login-params)
      	(sql-informix-login-params, sql-ingres-login-params)
      	(sql-ms-login-params, sql-postgres-login-params)
      	(sql-interbase-login-params, sql-db2-login-params)
      	(sql-linter-login-params): Use it.
      	(sql-sqlite-login-params): Use it; Define "database" parameter as
      	a file name.
      	(sql-sqlite-program): Change to "sqlite3"
      	(sql-comint-sqlite): Make sure database name is complete.
      	(sql-for-each-login): New function.
      	(sql-connect, sql-save-connection): Use it.
      	(sql-get-login-ext): New function.
      	(sql-get-login): Use it.
      	(sql-make-alternate-buffer-name): Handle :file parameters.
  15. 21 Jul, 2010 1 commit
  16. 18 Jul, 2010 2 commits
  17. 17 Jul, 2010 1 commit
  18. 15 Jul, 2010 2 commits
  19. 10 Jul, 2010 1 commit
  20. 07 Jul, 2010 1 commit
    • Christoph Scholtes's avatar
      Add some font-locking for Python 2.7. · 4565b08e
      Christoph Scholtes authored
      * lisp/progmodes/python.el (python-font-lock-keywords): Add Python 2.7
      builtins (BufferError, BytesWarning, WindowsError; callables
      bin, bytearray, bytes, format, memoryview, next, print; __package__).
  21. 27 Jun, 2010 1 commit
  22. 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.
  23. 21 Jun, 2010 1 commit
    • Alan Mackenzie's avatar
      Fix an indentation bug: · 43a91810
      Alan Mackenzie authored
      progmodes/cc-mode.el (c-common-init): Initialise c-new-BEG/END.
      (c-neutralize-syntax-in-and-mark-CPP): c-new-BEG/END: Take account
      of existing values.
      progmodes/cc-engine.el (c-clear-<-pair-props-if-match-after)
      (c-clear->-pair-props-if-match-before): now return t when they've cleared
      properties, nil otherwise.
      (c-before-change-check-<>-operators): Set c-new-beg/end correctly by
      taking account of the existing value.
      progmodes/cc-defs.el (c-clear-char-property-with-value-function): Fix
      this to clear the property rather than overwriting it with nil.
  24. 20 Jun, 2010 1 commit
  25. 19 Jun, 2010 1 commit
    • Glenn Morris's avatar
      Close bug#6450. · 4111f0c7
      Glenn Morris authored
      * lisp/progmodes/idlwave.el (idlwave-action-and-binding):
      Fix typo in 2009-12-03 change.
  26. 15 Jun, 2010 1 commit
  27. 30 May, 2010 1 commit
  28. 27 May, 2010 2 commits
  29. 26 May, 2010 1 commit
    • Stefan Monnier's avatar
      Avoid (expand-file-name "."). · 6dc439cb
      Stefan Monnier authored
      * org.el (org-file-complete-link):
      * progmodes/ada-xref.el (ada-gnat-parse-gpr):
      * emulation/edt.el (edt-load-keys): Avoid (expand-file-name ".").
  30. 25 May, 2010 1 commit
    • Stefan Monnier's avatar
      Replace Lisp calls to delete-backward-char by delete-char. · d355a0b7
      Stefan Monnier authored
      * bs.el, expand.el, ido.el, image-dired.el, lpr.el, pcomplete.el,
      skeleton.el, term.el, time.el, wid-edit.el, woman.el,
      calc/calc-graph.el, calc/calc-help.el, calc/calc-incom.el,
      calc/calc.el, emacs-cl-extra.el, emacs-cl-loaddefs.el,
      emulation/cua-rect.el, emulation/viper-ex.el, eshell/esh-test.el,
      eshell/eshell.el, gnus/gnus-uu.el, gnus/nndoc.el, gnus/nnrss.el,
      gnus/rfc2047.el, gnus/utf7.el, international/utf-7.el,
      language/ethio-util.el, mh-e/mh-alias.el, mh-e/mh-search.el,
      net/imap.el, net/rcirc.el, obsolete/complete.el, play/decipher.el,
      progmodes/ada-mode.el, progmodes/cc-awk.el, progmodes/dcl-mode.el,
      progmodes/ps-mode.el, progmodes/verilog-mode.el,
      progmodes/vhdl-mode.el, textmodes/bibtex.el, textmodes/fill.el,
      textmodes/reftex-auc.el, textmodes/rst.el, textmodes/sgml-mode.el,
      textmodes/table.el, textmodes/texinfmt.el: Replace Lisp calls to
      delete-backward-char by calls to delete-char.
  31. 21 May, 2010 1 commit