aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/sql.el
diff options
context:
space:
mode:
authorPaul Eggert2011-11-14 15:59:56 -0800
committerPaul Eggert2011-11-14 15:59:56 -0800
commit91af3942e9ab5540b3ab4dde6733bc883dc2abdd (patch)
tree7a83e35278714a4498663fc968d36210d8c6436e /lisp/progmodes/sql.el
parent5ef215d87480e348e432b4e323b1ba24e27ebf81 (diff)
downloademacs-91af3942e9ab5540b3ab4dde6733bc883dc2abdd.tar.gz
emacs-91af3942e9ab5540b3ab4dde6733bc883dc2abdd.zip
Spelling fixes.
Diffstat (limited to 'lisp/progmodes/sql.el')
-rw-r--r--lisp/progmodes/sql.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index 97a1c4605c2..3166abb21a7 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -672,7 +672,7 @@ highlighted properly when you open them."
672 :safe 'symbolp) 672 :safe 'symbolp)
673(defvaralias 'sql-dialect 'sql-product) 673(defvaralias 'sql-dialect 'sql-product)
674 674
675;; misc customization of sql.el behaviour 675;; misc customization of sql.el behavior
676 676
677(defcustom sql-electric-stuff nil 677(defcustom sql-electric-stuff nil
678 "Treat some input as electric. 678 "Treat some input as electric.
@@ -3600,12 +3600,12 @@ The list is maintained in SQL interactive buffers.")
3600 (setq has-schema (and 3600 (setq has-schema (and
3601 (>= (length (car names)) schema-len) 3601 (>= (length (car names)) schema-len)
3602 (string= schema-dot 3602 (string= schema-dot
3603 (downcase (substring (car names) 3603 (downcase (substring (car names)
3604 0 schema-len)))) 3604 0 schema-len))))
3605 names (cdr names))) 3605 names (cdr names)))
3606 (unless has-schema 3606 (unless has-schema
3607 (sql-build-completions schema))))) 3607 (sql-build-completions schema)))))
3608 3608
3609 ;; Try to find the completion 3609 ;; Try to find the completion
3610 (cond 3610 (cond
3611 ((not predicate) 3611 ((not predicate)
@@ -3951,7 +3951,7 @@ is specified in the connection settings."
3951 ;; interactive session 3951 ;; interactive session
3952 (eval `(let ((sql-connection ,connection) 3952 (eval `(let ((sql-connection ,connection)
3953 (,param-var ',rem-params)) 3953 (,param-var ',rem-params))
3954 (sql-product-interactive sql-product 3954 (sql-product-interactive sql-product
3955 new-name))))) 3955 new-name)))))
3956 3956
3957 (message "SQL Connection <%s> does not exist" connection) 3957 (message "SQL Connection <%s> does not exist" connection)
@@ -3981,16 +3981,16 @@ optionally is saved to the user's init file."
3981 3981
3982 (if connection 3982 (if connection
3983 (message "This session was started by a connection; it's already been saved.") 3983 (message "This session was started by a connection; it's already been saved.")
3984 3984
3985 (let ((login (sql-get-product-feature product :sqli-login)) 3985 (let ((login (sql-get-product-feature product :sqli-login))
3986 (alist sql-connection-alist) 3986 (alist sql-connection-alist)
3987 connect) 3987 connect)
3988 3988
3989 ;; Remove the existing connection if the user says so 3989 ;; Remove the existing connection if the user says so
3990 (when (and (assoc name alist) 3990 (when (and (assoc name alist)
3991 (yes-or-no-p (format "Replace connection definition <%s>? " name))) 3991 (yes-or-no-p (format "Replace connection definition <%s>? " name)))
3992 (setq alist (assq-delete-all name alist))) 3992 (setq alist (assq-delete-all name alist)))
3993 3993
3994 ;; Add the new connection if it doesn't exist 3994 ;; Add the new connection if it doesn't exist
3995 (if (assoc name alist) 3995 (if (assoc name alist)
3996 (message "Connection <%s> already exists" name) 3996 (message "Connection <%s> already exists" name)
@@ -4747,8 +4747,8 @@ Try to set `comint-output-filter-functions' like this:
4747 (sql-redirect sqlbuf "\\t off") 4747 (sql-redirect sqlbuf "\\t off")
4748 (when (not (string= a "aligned")) 4748 (when (not (string= a "aligned"))
4749 (sql-redirect sqlbuf "\\a")) 4749 (sql-redirect sqlbuf "\\a"))
4750 4750
4751 ;; Return the list of table names (public schema name can be omitted) 4751 ;; Return the list of table names (public schema name can be omitted)
4752 (mapcar (lambda (tbl) 4752 (mapcar (lambda (tbl)
4753 (if (string= (car tbl) "public") 4753 (if (string= (car tbl) "public")
4754 (cadr tbl) 4754 (cadr tbl)