From: Gerd Moellmann Date: Thu, 17 Aug 2000 11:20:50 +0000 (+0000) Subject: (sql-magic-go): Use comint-bol. X-Git-Tag: emacs-pretest-21.0.90~2216 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c0bbaf57af49951e40395bc41a231c518d832e29;p=emacs.git (sql-magic-go): Use comint-bol. (sql-copy-column): Use comint-line-beginning-position. (comint-line-beginning-position): Define a replacement for comint-line-beginning-position if it is not fboundp. (sql-mode-map): TAB is no longer defined in sql-mode-map; it didn't have any effect anyway. (sql-postgres): Jason Beegan's patch uses the parameters --pset and pager=off instead of sending \\o|cat at the beginning of the session. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3a795dbcf90..e23a91e6c27 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,21 @@ +2000-08-17 Alex Schroeder + + * sql.el (sql-magic-go): Use comint-bol. + (sql-copy-column): Use comint-line-beginning-position. + (comint-line-beginning-position): Define a replacement for + comint-line-beginning-position if it is not fboundp. + +2000-08-17 Alex Schroeder + + * sql.el (sql-mode-map): TAB is no longer defined in sql-mode-map; + it didn't have any effect anyway. + +2000-08-17 Alex Schroeder + + * sql.el (sql-postgres): Jason Beegan's patch uses the parameters + --pset and pager=off instead of sending \\o|cat at the beginning + of the session. + 2000-08-17 Miles Bader * progmodes/octave-inf.el: Add compatibility definition of diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index 2a50422abf6..0485517bae2 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el @@ -4,7 +4,7 @@ ;; Author: Alex Schroeder ;; Maintainer: Alex Schroeder -;; Version: 1.4.16 +;; Version: 1.4.19 ;; Keywords: comm languages processes ;; This file is part of GNU Emacs. @@ -404,7 +404,6 @@ Based on `comint-mode-map'.") (define-key map (kbd "C-c C-c") 'sql-send-paragraph) (define-key map (kbd "C-c C-r") 'sql-send-region) (define-key map (kbd "C-c C-b") 'sql-send-buffer) - (define-key map (kbd "") 'indent-relative) map) "Mode map used for `sql-mode'.") @@ -654,6 +653,7 @@ used for the default `font-lock-defaults' value in `sql-mode'. This can be changed by some entry functions to provide more hilighting.") + ;;; Compatibility functions (if (not (fboundp 'comint-line-beginning-position)) @@ -1555,8 +1555,13 @@ Try to set `comint-output-filter-functions' like this: (pop-to-buffer "*SQL*") (sql-get-login 'database 'server) (message "Login...") - ;; username and password are ignored. - (let ((params)) + ;; username and password are ignored. Jason Beegan suggest using + ;; --pset and pager=off instead of \\o|cat. The later was the + ;; solution by Gregor Zych. If you find that your postgres doesn't + ;; like Jason Beegans's solution and prefers Gregor Zych's solution, + ;; then I'd love to hear from you. Send your comments to the + ;; mailing list. + (let ((params (list "--pset" "pager=off"))) (if (not (string= "" sql-database)) (setq params (append (list sql-database) params))) (if (not (string= "" sql-server)) @@ -1569,7 +1574,7 @@ Try to set `comint-output-filter-functions' like this: ;; and giving stupid warnings. If s.o. knows a way to prevent psql ;; from acting this way, then I would be very thankful to ;; incorporate this (Gregor Zych ) - (comint-send-string "*SQL*" "\\o \| cat\n") + ;; (comint-send-string "*SQL*" "\\o \| cat\n") (setq sql-mode-font-lock-keywords sql-mode-postgres-font-lock-keywords) (setq sql-buffer (current-buffer)) (sql-interactive-mode)