1. 24 Jul, 2013 1 commit
    • Michael Mauger's avatar
      * progmodes/sql.el Version 3.3 · 3d012865
      Michael Mauger authored
      (sql-product-alist): Improve oracle :prompt-cont-regexp.
      (sql-starts-with-prompt-re, sql-ends-with-prompt-re): New functions.
      (sql-interactive-remove-continuation-prompt): Rewrite, use
      functions above.  Fix continuation prompt and complete output line
      handling.
      (sql-redirect-one, sql-execute): Use `read-only-mode' on
      redirected output buffer.
      (sql-mode): Restore deleted code (Bug#13591).
      3d012865
  2. 11 May, 2013 1 commit
    • Glenn Morris's avatar
      More custom :type fixes · 99fb2756
      Glenn Morris authored
      * lisp/lpr.el (lpr-headers-switches):
      * lisp/emacs-lisp/testcover.el (testcover-compose-functions):
      * lisp/cedet/ede/project-am.el (project-am-compile-project-command): Fix :type.
      
      * lisp/progmodes/sql.el (sql-login-params): Fix and improve :type.
      99fb2756
  3. 11 Mar, 2013 1 commit
    • Michael Mauger's avatar
      * progmodes/sql.el Version 3.2 · e18e61cf
      Michael Mauger authored
      Please note that my address changed to <michael@mauger.com>; the
      <mmaug@yahoo.com> address remains active.
      (sql-connection-alist): Updates documentation to fix bug#13715.
      (sql-connect): Handle missing `sql-connection-alist' correctly.
      (sql-mode-oracle-font-lock-keywords): Add missing keywords.
      (sql-magic-go, sql-magic-semicolon): Mark with `delete-selection'
      property.
      (sql-default-value): New function.
      (sql-get-login-ext, sql-get-login): Fixes bug where buffer-local
      values were not used.
      (sql-rename-buffer): Make sure alternate buffer name has no text
      properties.
      (sql-input-sender, sql-execute-feature): Fetch variable with
      `buffer-local-value' rather than `with-current-buffer'.
      (sql-*): Use #' function syntax consistently.
      (sql-*): Use message/error/user-error consistently.
      e18e61cf
  4. 15 Jan, 2013 2 commits
  5. 01 Jan, 2013 1 commit
  6. 14 Dec, 2012 1 commit
  7. 06 Dec, 2012 1 commit
    • Stefan Monnier's avatar
      * lisp/progmodes/sql.el: Use cl-lib and lexical-binding; various cleanup. · 93852cb0
      Stefan Monnier authored
      (sql-signum): Remove.  Use `cl-signum' instead.
      (sql-read-passwd): Remove; use read-passwd instread.
      (sql-get-login-ext): Use read-string.
      (sql-get-login): Use dolist and pcase.
      (sql--completion-table): Rename from sql-try-completion.
      Use complete-with-action.
      (sql-mode): Don't change abbrev-all-caps globally.
      (sql-connect): Don't rely on dynamic scoping for `new-name'.
      (sql-postgres-completion-object): Initialize vars in their `let'.
      (sql-comint-sybase, sql-comint-sqlite, sql-comint-mysql)
      (sql-comint-solid, sql-comint-ms, sql-comint-postgres)
      (sql-comint-interbase): Use a single append, without setq.
      (sql-comint-linter): Same, and unwind-protect the LINTER_MBX var.
      93852cb0
  8. 09 Nov, 2012 1 commit
    • Stefan Monnier's avatar
      New property dynamic-docstring-function for docstrings. · 57618ecf
      Stefan Monnier authored
      * src/doc.c (Fdocumentation): Handle new property
      dynamic-docstring-function to replace the old ad-advice-info.
      * lisp/emacs-lisp/advice.el: Use new dynamic docstrings.
      (ad-make-advised-definition-docstring, ad-advised-definition-p):
      Use dynamic-docstring-function instead of ad-advice-info.
      (ad--make-advised-docstring): New function extracted from
      ad-make-advised-docstring.
      (ad-make-advised-docstring): Use it.
      * lisp/progmodes/sql.el (sql--make-help-docstring): New function, extracted
      from sql-help.
      (sql-help): Use it with dynamic-docstring-function.
      57618ecf
  9. 17 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Update docstrings and comments to use "init file" terminology. · 865fe16f
      Chong Yidong authored
      * bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes.
      * comint.el (comint-prompt-read-only):
      * custom.el (defcustom):
      * hi-lock.el (hi-lock-mode):
      * ibuffer.el (ibuffer-formats):
      * ielm.el (ielm-prompt-read-only):
      * novice.el (disable-command):
      * saveplace.el (toggle-save-place):
      * speedbar.el (speedbar-supported-extension-expressions):
      * startup.el (auto-save-list-file-prefix, init-file-user)
      (after-init-hook, inhibit-startup-echo-area-message):
      * strokes.el (strokes-help):
      * time-stamp.el (time-stamp):
      * calendar/calendar.el (calendar, diary-file):
      * calendar/diary-lib.el (diary-mail-entries, diary)
      (diary-list-entries-hook):
      * calendar/holidays.el (holidays, calendar-holidays):
      * calendar/lunar.el (lunar-phases):
      * calendar/solar.el (sunrise-sunset):
      * emulation/edt.el (edt-load-keys):
      * emulation/viper.el (viper-mode):
      * eshell/em-alias.el (eshell-command-aliases-list):
      * eshell/esh-util.el (eshell-convert-numeric-arguments):
      * international/ogonek.el (ogonek-information):
      * net/tramp-cmds.el (tramp-bug):
      * net/quickurl.el (quickurl-reread-hook-postfix):
      * play/decipher.el (decipher-font-lock-keywords):
      * progmodes/cc-styles.el (c-set-style):
      * progmodes/idlw-shell.el (idlwave-shell-prompt-pattern):
      * progmodes/inf-lisp.el (inferior-lisp-prompt):
      * progmodes/octave-mod.el (octave-mode):
      * progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password):
      * progmodes/verilog-mode.el (verilog-read-defines):
      * textmodes/two-column.el (2C-mode): Likewise.
      865fe16f
  10. 10 Sep, 2012 1 commit
  11. 13 Jul, 2012 1 commit
  12. 01 Mar, 2012 1 commit
    • Michael Mauger's avatar
      2012-03-01 Michael R. Mauger <mmaug@yahoo.com> · f6561e1f
      Michael Mauger authored
      	* progmodes/sql.el: Bug fix
      	(sql-get-login-ext): Save login values in globals.
      	(sql-get-login): Use new version of `sql-get-login-ext'.
      	(sql-interactive-mode): Set global `sql-connection' to nil.
      	(sql-connect): Set global values for connection.
      	(sql-product-interactive): Save global values as buffer local.
      f6561e1f
  13. 11 Feb, 2012 2 commits
    • Glenn Morris's avatar
      Add missing :version tags to new defgroups and defcustoms · 2bed3f04
      Glenn Morris authored
      * window.el (window-sides-slots):
      * tool-bar.el (tool-bar-position):
      * term/xterm.el (xterm-extra-capabilities):
      * ses.el (ses-self-reference-early-detection):
      * progmodes/verilog-mode.el (verilog-auto-declare-nettype)
      (verilog-auto-wire-type)
      (verilog-auto-delete-trailing-whitespace)
      (verilog-auto-reset-blocking-in-non, verilog-auto-inst-sort)
      (verilog-auto-tieoff-declaration):
      * progmodes/sql.el (sql-login-hook, sql-ansi-statement-starters)
      (sql-oracle-statement-starters, sql-oracle-scan-on):
      * progmodes/prolog.el (prolog-align-comments-flag)
      (prolog-indent-mline-comments-flag, prolog-object-end-to-0-flag)
      (prolog-left-indent-regexp, prolog-paren-indent-p)
      (prolog-paren-indent, prolog-parse-mode, prolog-keywords)
      (prolog-types, prolog-mode-specificators)
      (prolog-determinism-specificators, prolog-directives)
      (prolog-electric-newline-flag, prolog-hungry-delete-key-flag)
      (prolog-electric-dot-flag)
      (prolog-electric-dot-full-predicate-template)
      (prolog-electric-underscore-flag, prolog-electric-tab-flag)
      (prolog-electric-if-then-else-flag, prolog-electric-colon-flag)
      (prolog-electric-dash-flag, prolog-old-sicstus-keys-flag)
      (prolog-program-switches, prolog-prompt-regexp)
      (prolog-debug-on-string, prolog-debug-off-string)
      (prolog-trace-on-string, prolog-trace-off-string)
      (prolog-zip-on-string, prolog-zip-off-string)
      (prolog-use-standard-consult-compile-method-flag)
      (prolog-use-prolog-tokenizer-flag, prolog-imenu-flag)
      (prolog-imenu-max-lines, prolog-info-predicate-index)
      (prolog-underscore-wordchar-flag, prolog-use-sicstus-sd)
      (prolog-char-quote-workaround):
      * progmodes/cc-vars.el (c-defun-tactic):
      * net/tramp.el (tramp-encoding-command-interactive)
      (tramp-local-end-of-line):
      * net/soap-client.el (soap-client):
      * net/netrc.el (netrc-file):
      * net/gnutls.el (gnutls):
      * minibuffer.el (completion-category-overrides)
      (completion-cycle-threshold)
      (completion-pcm-complete-word-inserts-delimiters):
      * man.el (Man-name-local-regexp):
      * mail/feedmail.el (feedmail-display-full-frame):
      * international/characters.el (glyphless-char-display-control):
      * eshell/em-ls.el (eshell-ls-date-format):
      * emacs-lisp/cl-indent.el (lisp-lambda-list-keyword-alignment)
      (lisp-lambda-list-keyword-parameter-indentation)
      (lisp-lambda-list-keyword-parameter-alignment):
      * doc-view.el (doc-view-image-width, doc-view-unoconv-program):
      * dired-x.el (dired-omit-verbose):
      * cus-theme.el (custom-theme-allow-multiple-selections):
      * calc/calc.el (calc-highlight-selections-with-faces)
      (calc-lu-field-reference, calc-lu-power-reference)
      (calc-note-threshold):
      * battery.el (battery-mode-line-limit):
      * arc-mode.el (archive-7z-extract, archive-7z-expunge)
      (archive-7z-update):
      * allout.el (allout-prefixed-keybindings)
      (allout-unprefixed-keybindings)
      (allout-inhibit-auto-fill-on-headline)
      (allout-flattened-numbering-abbreviation):
      * allout-widgets.el (allout-widgets-auto-activation)
      (allout-widgets-icons-dark-subdir)
      (allout-widgets-icons-light-subdir, allout-widgets-icon-types)
      (allout-widgets-theme-dark-background)
      (allout-widgets-theme-light-background)
      (allout-widgets-item-image-properties-emacs)
      (allout-widgets-item-image-properties-xemacs)
      (allout-widgets-run-unit-tests-on-load)
      (allout-widgets-time-decoration-activity)
      (allout-widgets-hook-error-post-time)
      (allout-widgets-track-decoration):
      * gnus/sieve-manage.el (sieve-manage-default-stream):
      * gnus/shr.el (shr):
      * gnus/nnir.el (nnir-ignored-newsgroups, nnir-summary-line-format)
      (nnir-retrieve-headers-override-function)
      (nnir-imap-default-search-key, nnir-notmuch-program)
      (nnir-notmuch-additional-switches, nnir-notmuch-remove-prefix)
      (nnir-method-default-engines):
      * gnus/message.el (message-cite-reply-position):
      * gnus/gssapi.el (gssapi-program):
      * gnus/gravatar.el (gravatar):
      * gnus/gnus-sum.el (gnus-refer-thread-use-nnir):
      * gnus/gnus-registry.el (gnus-registry-unfollowed-addresses)
      (gnus-registry-max-pruned-entries):
      * gnus/gnus-picon.el (gnus-picon-inhibit-top-level-domains):
      * gnus/gnus-int.el (gnus-after-set-mark-hook)
      (gnus-before-update-mark-hook):
      * gnus/gnus-async.el (gnus-async-post-fetch-function):
      * gnus/auth-source.el (auth-source-cache-expiry):
      Add missing :version tags to new defcustoms and defgroups.
      2bed3f04
    • Glenn Morris's avatar
      Add missing custom types to sql.el · 5fec1b8e
      Glenn Morris authored
      * lisp/progmodes/sql.el (sql-ansi-statement-starters)
      (sql-oracle-statement-starters): Add custom type.
      5fec1b8e
  14. 08 Feb, 2012 1 commit
  15. 11 Jan, 2012 1 commit
  16. 05 Jan, 2012 1 commit
    • Michael Mauger's avatar
      2012-01-05 Michael R. Mauger <mmaug@yahoo.com> · bb5aa5d6
      Michael Mauger authored
              * progmodes/sql.el (sql-login-hook): Add hook to respond to the
              first prompt in `sql-interacive-mode'.
              (sql-mode-oracle-font-lock-keywords): Add CONNECT_BY_* builtin
              keywords. 
              (sql-mode-mysql-font-lock-keywords):  Add ELSEIF keyword.
              (sql-product-interactive): Bug fix: Set `sql-buffer' in
              context of original buffer.  Invoke `sql-login-hook'.
      bb5aa5d6
  17. 19 Dec, 2011 1 commit
  18. 27 Nov, 2011 1 commit
  19. 15 Nov, 2011 1 commit
  20. 14 Nov, 2011 1 commit
  21. 22 Sep, 2011 1 commit
  22. 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
  23. 23 May, 2011 1 commit
  24. 22 Apr, 2011 1 commit
  25. 23 Feb, 2011 1 commit
  26. 25 Jan, 2011 1 commit
  27. 02 Jan, 2011 1 commit
  28. 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
  29. 31 Oct, 2010 1 commit
  30. 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
  31. 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
  32. 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
  33. 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
  34. 07 Aug, 2010 1 commit
  35. 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
  36. 21 Jul, 2010 1 commit
  37. 18 Jul, 2010 1 commit
  38. 15 Jun, 2010 1 commit