diff options
| author | Glenn Morris | 2018-03-22 14:31:33 -0400 |
|---|---|---|
| committer | Glenn Morris | 2018-03-22 14:31:33 -0400 |
| commit | 7c993c34b048dbdcb2e79d8989935cce05c34ce2 (patch) | |
| tree | be0615d154bf642741d7de3ee363d2bd3a106fdb | |
| parent | 8ac621bb5594786c66cc724864e6037c8c650774 (diff) | |
| download | emacs-7c993c34b048dbdcb2e79d8989935cce05c34ce2.tar.gz emacs-7c993c34b048dbdcb2e79d8989935cce05c34ce2.zip | |
sql.el defcustom fixes
* lisp/progmodes/sql.el (sql-login-params): Update.
Avoids type mismatch with postgres and sqlite login params.
(sql-postgres-login-params): Bump version.
| -rw-r--r-- | lisp/progmodes/sql.el | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index d20c579f660..e4db6cc38a2 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el | |||
| @@ -26,10 +26,10 @@ | |||
| 26 | ;;; Commentary: | 26 | ;;; Commentary: |
| 27 | 27 | ||
| 28 | ;; Please send bug reports and bug fixes to the mailing list at | 28 | ;; Please send bug reports and bug fixes to the mailing list at |
| 29 | ;; help-gnu-emacs@gnu.org. If you want to subscribe to the mailing | 29 | ;; bug-gnu-emacs@gnu.org. |
| 30 | ;; list, see the web page at | 30 | ;; See also the general help list at |
| 31 | ;; https://lists.gnu.org/mailman/listinfo/help-gnu-emacs for | 31 | ;; https://lists.gnu.org/mailman/listinfo/help-gnu-emacs |
| 32 | ;; instructions. I monitor this list actively. If you send an e-mail | 32 | ;; I monitor this list actively. If you send an e-mail |
| 33 | ;; to Alex Schroeder it usually makes it to me when Alex has a chance | 33 | ;; to Alex Schroeder it usually makes it to me when Alex has a chance |
| 34 | ;; to forward them along (Thanks, Alex). | 34 | ;; to forward them along (Thanks, Alex). |
| 35 | 35 | ||
| @@ -292,6 +292,9 @@ file. Since that is a plaintext file, this could be dangerous." | |||
| 292 | 292 | ||
| 293 | ;; Login parameter type | 293 | ;; Login parameter type |
| 294 | 294 | ||
| 295 | ;; This seems too prescriptive. It probably fails to match some of | ||
| 296 | ;; the possible combinations. It would probably be better to just use | ||
| 297 | ;; plist for most of it. | ||
| 295 | (define-widget 'sql-login-params 'lazy | 298 | (define-widget 'sql-login-params 'lazy |
| 296 | "Widget definition of the login parameters list" | 299 | "Widget definition of the login parameters list" |
| 297 | :tag "Login Parameters" | 300 | :tag "Login Parameters" |
| @@ -331,13 +334,17 @@ file. Since that is a plaintext file, this could be dangerous." | |||
| 331 | (list :tag "file" | 334 | (list :tag "file" |
| 332 | (const :format "" database) | 335 | (const :format "" database) |
| 333 | (const :format "" :file) | 336 | (const :format "" :file) |
| 334 | regexp) | 337 | (choice (const nil) regexp) |
| 338 | (const :format "" :must-match) | ||
| 339 | (symbol :tag ":must-match")) | ||
| 335 | (list :tag "completion" | 340 | (list :tag "completion" |
| 336 | (const :format "" database) | 341 | (const :format "" database) |
| 342 | (const :format "" :default) | ||
| 343 | (string :tag ":default") | ||
| 337 | (const :format "" :completion) | 344 | (const :format "" :completion) |
| 345 | (sexp :tag ":completion") | ||
| 338 | (const :format "" :must-match) | 346 | (const :format "" :must-match) |
| 339 | (restricted-sexp | 347 | (symbol :tag ":must-match"))) |
| 340 | :match-alternatives (listp stringp)))) | ||
| 341 | (const port))) | 348 | (const port))) |
| 342 | 349 | ||
| 343 | ;; SQL Product support | 350 | ;; SQL Product support |
| @@ -1088,7 +1095,7 @@ add your name with a \"-U\" prefix (such as \"-Umark\") to the list." | |||
| 1088 | server) | 1095 | server) |
| 1089 | "List of login parameters needed to connect to Postgres." | 1096 | "List of login parameters needed to connect to Postgres." |
| 1090 | :type 'sql-login-params | 1097 | :type 'sql-login-params |
| 1091 | :version "24.1" | 1098 | :version "26.1" |
| 1092 | :group 'SQL) | 1099 | :group 'SQL) |
| 1093 | 1100 | ||
| 1094 | (defun sql-postgres-list-databases () | 1101 | (defun sql-postgres-list-databases () |