Another attempt to fix sql.el
* lisp/progmodes/sql.el (sql-product-interactive): Fix calculation of the SQL buffer name. (Bug#31446)
This commit is contained in:
parent
b1b96d7cd9
commit
2981952b6c
1 changed files with 7 additions and 2 deletions
|
@ -4270,8 +4270,13 @@ the call to \\[sql-product-interactive] with
|
|||
(if (string-prefix-p "*SQL: " new-name t)
|
||||
new-name
|
||||
(concat "*SQL: " new-name "*")))
|
||||
((eq new-name '(4))
|
||||
(sql-rename-buffer new-name))
|
||||
((equal new-name '(4))
|
||||
(concat
|
||||
"*SQL: "
|
||||
(read-string
|
||||
"Buffer name (\"*SQL: XXX*\"; enter `XXX'): "
|
||||
sql-alternate-buffer-name)
|
||||
"*"))
|
||||
(t
|
||||
(format "*SQL: %s*" new-name)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue