GNU bug report logs -
#52546
29.0.50; Missing space character
Previous Next
Reported by: Rudolf Adamkovič <salutis <at> me.com>
Date: Thu, 16 Dec 2021 10:41:02 UTC
Severity: minor
Found in version 29.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #18 received at control <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
reopen 52546 !
tags 52546 + patch
quit
On 19/12/2021 13:03 +0100, Lars Ingebrigtsen wrote:
> Rudolf Adamkovič <salutis <at> me.com> writes:
>
>> Reproduction steps:
>>
>> 1. run 'emacs -Q'
>> 2. type M-x and then 'sql-sqlite'
>> 3. see a prompt in the minibuffer
>>
>> Expected: 'Database ~/…'
>>
>> Actual: 'Database~/…' (notice the missing space character)
>
> Yup. I've now fixed this in Emacs 29.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
It looks like this fixes the bug more correctly. We should pass
sql-get-login-ext the "raw" prompt, which is then passed to
format-prompt.
WDYT?
Filipp
[0001-Fix-prompts-in-sql-get-login-again.patch (text/x-diff, inline)]
From 849fb75e85397c7a1e1e3766880ad78d99ba991b Mon Sep 17 00:00:00 2001
From: Filipp Gunbin <fgunbin <at> fastmail.fm>
Date: Sat, 23 Apr 2022 01:59:53 +0300
Subject: [PATCH] Fix prompts in sql-get-login again
* lisp/progmodes/sql.el (sql-get-login-ext): Use prompt-def
everywhere.
(sql-get-login): Revert previous fix. (bug#52546)
---
lisp/progmodes/sql.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index 13fba0c705..05d3af9ae7 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -3216,7 +3216,7 @@ sql-get-login-ext
(cond
((plist-member plist :file)
(let ((file-name
- (read-file-name prompt
+ (read-file-name prompt-def
(file-name-directory last-value)
default
(if (plist-member plist :must-match)
@@ -3246,7 +3246,7 @@ sql-get-login-ext
default))
((plist-get plist :number)
- (read-number prompt (or default last-value 0)))
+ (read-number prompt-def (or default last-value 0)))
(t
(read-string prompt-def last-value history-var default))))))
@@ -3318,7 +3318,7 @@ sql-get-login
(sql-get-login-ext 'sql-server "Server" 'sql-server-history plist))
('database
- (sql-get-login-ext 'sql-database "Database: "
+ (sql-get-login-ext 'sql-database "Database"
'sql-database-history plist))
('port
--
2.36.0
This bug report was last modified 3 years and 26 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.