1. 19 Dec, 2011 1 commit
  2. 27 Nov, 2011 1 commit
  3. 15 Nov, 2011 1 commit
  4. 14 Nov, 2011 1 commit
  5. 22 Sep, 2011 1 commit
  6. 06 Jul, 2011 1 commit
    • Michael Mauger's avatar
      * progmodes/sql.el: Version 3.0 · fbcc67e2
      Michael Mauger authored
      	(sql-product-alist): Added product :completion-object,
      	:completion-column, and :statement attributes.
      	(sql-mode-menu, sql-interactive-mode-map): Fixed List entries.
      	(sql-mode-syntax-table): Mark all punctuation.
      	(sql-font-lock-keywords-builder): Temporarily removed fallback on
      	ansi keywords.
      	(sql-regexp-abbrev, sql-regexp-abbrev-list): New functions.
      	(sql-mode-oracle-font-lock-keywords): Improved.
      	(sql-oracle-show-reserved-words): New function for development.
      	(sql-product-font-lock): Simplify for source code buffers.
      	(sql-product-syntax-table, sql-product-font-lock-syntax-alist):
      	New functions.
      	(sql-highlight-product): Set product specific syntax table.
      	(sql-mode-map): Added statement movement functions.
      	(sql-ansi-statement-starters, sql-oracle-statement-starters): New
      	variable.
      	(sql-statement-regexp, sql-beginning-of-statement)
      	(sql-end-of-statement, sql-signum): New functions.
      	(sql-buffer-live-p, sql=find-sqli-buffer): Added CONNECTION
      	parameter.
      	(sql-show-sqli-buffer): Bug fix.
      	(sql-interactive-mode): Store connection data as buffer local.
      	(sql-connect): Added NEW-NAME parameter.  Redesigned interaction
      	with sql-interactive-mode.
      	(sql-save-connection): Save buffer local settings.
      	(sql-connection-menu-filter): Changed menu entry name.
      	(sql-product-interactive): Bug fix.
      	(sql-preoutput-hold): New variable.
      	(sql-interactive-remove-continuation-prompt): Bug fixes.
      	(sql-debug-redirect): New variable.
      	(sql-str-literal): New function.
      	(sql-redirect, sql-redirect-one, sql-redirect-value, sql-execute):
      	Redesigned.
      	(sql-oracle-save-settings, sql-oracle-restore-settings)
      	(sql-oracle-list-all, sql-oracle-list-table): New functions.
      	(sql-completion-object, sql-completion-column)
      	(sql-completion-sqlbuf): New variables.
      	(sql-build-completions-1, sql-build-completions)
      	(sql-try-completion): New functions.
      	(sql-read-table-name): Use them.
      	(sql-contains-names): New buffer local variable.
      	(sql-list-all, sql-list-table): Use it.
      	(sql-oracle-completion-types): New variable.
      	(sql-oracle-completion-object, sql-sqlite-completion-object)
      	(sql-postgres-completion-object): New functions.
      fbcc67e2
  7. 23 May, 2011 1 commit
  8. 22 Apr, 2011 1 commit
  9. 23 Feb, 2011 1 commit
  10. 25 Jan, 2011 1 commit
  11. 02 Jan, 2011 1 commit
  12. 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
  13. 31 Oct, 2010 1 commit
  14. 19 Sep, 2010 1 commit
    • Michael Mauger's avatar
      SQL Mode, Version 2.8 - sql-list-all and sql-list-table functions. · 74790210
      Michael Mauger authored
      	* progmodes/sql.el: Version 2.8
      	(sql-login-params): Updated widget structure; changes still
      	needed.
      	(sql-product-alist): Add :list-all and :list-table features for
      	SQLite, Postgres and MySQL products.
      	(sql-redirect): Handle default value.
      	(sql-execute, sql-execute-feature): New functions.
      	(sql-read-table-name): New function.
      	(sql-list-all, sql-list-table): New functions. User API
      	(sql-mode-map, sql-interactive-mode-map): Add key definitions
      	for above functions.
      	(sql-mode-menu, sql-interactive-mode-menu): Add menu definitions
      	for above functions.
      	(sql-postgres-login-params): Add user and database defaults.
      	(sql-buffer-live-p): Bug fix.
      	(sql-product-history); New variable.
      	(sql-read-product): New function. Use it.
      	(sql-set-product, sql-product-interactive): Use it.
      	(sql-connection-history): New variable.
      	(sql-read-connection): New function. Use it.
      	(sql-connect): New function.
      	(sql-for-each-login): Redesign function interface.
      	(sql-make-alternate-buffer-name, sql-save-connection): Use it.
      	(sql-get-login-ext, sql-get-login): Use it. Handle default values.
      	(sql-comint): Check for program. Existing live buffer.
      	(sql-comint-postgres): Add port parameter.
      74790210
  15. 13 Sep, 2010 1 commit
    • Michael Mauger's avatar
      SQL Mode 2.7: Code cleanup and primatives for SQL redirection · a386ac70
      Michael Mauger authored
      	* progmodes/sql.el: Version 2.7.
      	(sql-buffer-live-p): Improve detection.
      	(sql-find-sqli-buffer, sql-set-sqli-buffer-generally)
      	(sql-set-sqli-buffer): Use it.
      	(sql-product-interactive): Run `sql-set-sqli-hook'.
      	(sql-rename-buffer): Code cleanup.
      	(sql-redirect, sql-redirect-value): New functions.  More to come.
      a386ac70
  16. 11 Sep, 2010 1 commit
    • Michael Mauger's avatar
      SQL Mode, Version 2.6 · 9250002f
      Michael Mauger authored
      	* progmodes/sql.el: Version 2.6
      	(sql-dialect): Synonym for "sql-product".
      	(sql-find-sqli-buffer, sql-set-sqli-buffer-generally)
      	(sql-set-sqli-buffer, sql-show-sqli-buffer, sql-interactive-mode):
      	Set "sql-buffer" to buffer name not buffer object so multiple sql
      	interactive buffers work properly.  Reverts misguided changes in
      	earlier work.
      	(sql-comint): Make sure different buffer name is used if "*SQL*"
      	buffer is for a different product.
      	(sql-make-alternate-buffer-name): Fix bug with "sql-database"
      	login param.
      	(sql-oracle, sql-sybase, sql-informix, sql-sqlite, sql-mysql)
      	(sql-solid, sql-ingres, sql-ms, sql-postgres, sql-interbase)
      	(sql-db2, sql-linter, sql-product-interactive, sql-rename-buffer):
      	Accept new buffer name or prompt for one.
      	(sql-port): Default to zero.
      	(sql-comint-mysql): Handle "sql-port" as a numeric.
      	(sql-port-history): Delete unused variable.
      	(sql-get-login): Default "sql-port" to a number.
      	(sql-product-alist): Correct Postgres prompt and terminator
      	regexp.
      	(sql-sqlite-program): Dynamically detect presence of "sqlite" or
      	"sqlite3" executables.
      	(sql-sqlite-login-params): Add "*.sqlite[23]?" database name
      	pattern.
      	(sql-buffer-live-p): New function.
      	(sql-mode-menu, sql-send-string): Use it.
      	(sql-mode-oracle-font-lock-keywords): Improve SQL*Plus REMARK
      	syntax pattern.
      	(sql-mode-postgres-font-lock-keywords): Support Postgres V9.
      	(sql-mode-sqlite-font-lock-keywords): Hilight sqlite commands.
      9250002f
  17. 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
              cases.
      3bd2cfef
  18. 07 Aug, 2010 1 commit
  19. 23 Jul, 2010 1 commit
    • 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.
      5474c40f
  20. 21 Jul, 2010 1 commit
  21. 18 Jul, 2010 1 commit
  22. 15 Jun, 2010 1 commit
  23. 14 May, 2010 1 commit
  24. 10 May, 2010 1 commit
    • Michael Mauger's avatar
      SQL mode version 2.1 · 7492acc9
      Michael Mauger authored
      Redesigned product specific definition and handling.  Includes many
      bug fixes and enhancements.
      7492acc9
  25. 24 Apr, 2010 1 commit
  26. 13 Jan, 2010 1 commit
  27. 16 Aug, 2009 1 commit
    • Stefan Monnier's avatar
      (sql-product-alist): Add :name tag to entries. · 55659495
      Stefan Monnier authored
      (sql-product): Use it.
      (sql-mode-menu): Auto-generate the menu based on sql-product-alist.
      (sql-set-product): Add completion.
      (sql-highlight-oracle-keywords, sql-highlight-postgres-keywords)
      (sql-highlight-linter-keywords, sql-highlight-ms-keywords)
      (sql-highlight-ansi-keywords, sql-highlight-sybase-keywords)
      (sql-highlight-informix-keywords, sql-highlight-interbase-keywords)
      (sql-highlight-ingres-keywords, sql-highlight-solid-keywords)
      (sql-highlight-mysql-keywords, sql-highlight-sqlite-keywords)
      (sql-highlight-db2-keywords): Remove.
      (sql-find-sqli-buffer, sql-set-sqli-buffer-generally)
      (sql-highlight-product): Use derived-mode-p.
      (sql-set-sqli-buffer): Use with-current-buffer.
      (sql-connect-informix, sql-connect-ingres, sql-connect-oracle): Simplify.
      55659495
  28. 14 Feb, 2009 1 commit
  29. 05 Jan, 2009 1 commit
  30. 27 Jun, 2008 1 commit
  31. 06 May, 2008 1 commit
  32. 10 Apr, 2008 1 commit
  33. 07 Jan, 2008 1 commit
  34. 26 Sep, 2007 1 commit
  35. 25 Jul, 2007 1 commit
  36. 21 Jan, 2007 1 commit
  37. 25 Dec, 2006 1 commit
  38. 05 Dec, 2006 1 commit
  39. 10 Feb, 2006 1 commit
  40. 30 Aug, 2005 1 commit