diff options
| author | Eli Zaretskii | 2018-05-21 18:43:03 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-05-21 18:43:03 +0300 |
| commit | 2981952b6ceaf3d93ed018fc7b7b2034cd10194b (patch) | |
| tree | b6a068f78960da01e36976cab5b591bc829970e8 | |
| parent | b1b96d7cd9433b6424ad12019f86c0eea29ab621 (diff) | |
| download | emacs-2981952b6ceaf3d93ed018fc7b7b2034cd10194b.tar.gz emacs-2981952b6ceaf3d93ed018fc7b7b2034cd10194b.zip | |
Another attempt to fix sql.el
* lisp/progmodes/sql.el (sql-product-interactive): Fix calculation
of the SQL buffer name. (Bug#31446)
| -rw-r--r-- | lisp/progmodes/sql.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index 1b2cdaf5f60..e7d7494d2ca 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el | |||
| @@ -4270,8 +4270,13 @@ the call to \\[sql-product-interactive] with | |||
| 4270 | (if (string-prefix-p "*SQL: " new-name t) | 4270 | (if (string-prefix-p "*SQL: " new-name t) |
| 4271 | new-name | 4271 | new-name |
| 4272 | (concat "*SQL: " new-name "*"))) | 4272 | (concat "*SQL: " new-name "*"))) |
| 4273 | ((eq new-name '(4)) | 4273 | ((equal new-name '(4)) |
| 4274 | (sql-rename-buffer new-name)) | 4274 | (concat |
| 4275 | "*SQL: " | ||
| 4276 | (read-string | ||
| 4277 | "Buffer name (\"*SQL: XXX*\"; enter `XXX'): " | ||
| 4278 | sql-alternate-buffer-name) | ||
| 4279 | "*")) | ||
| 4275 | (t | 4280 | (t |
| 4276 | (format "*SQL: %s*" new-name))))) | 4281 | (format "*SQL: %s*" new-name))))) |
| 4277 | 4282 | ||