GNU bug report logs -
#12443
24.2.50; Default values in the minibuffer prompt (fix
Previous Next
Reported by: Dani Moncayo <dmoncayo <at> gmail.com>
Date: Fri, 14 Sep 2012 14:08:01 UTC
Severity: minor
Found in version 24.2.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #124 received at 12443 <at> debbugs.gnu.org (full text, mbox):
>> Are you sure about this change in 1921d2176b?
>
> No, I found it kinda puzzling.
>
>> (tab-name (alist-get 'name (nth (1- tab-index) tabs))))
>> (list (read-from-minibuffer
>> - "New name for tab (leave blank for automatic naming): "
>> + (format-prompt "New name for tab" tab-name)
>> nil nil nil nil tab-name)
>
> The "automatic naming" defaults to tab-name, which is
>
> (alist-get 'name (nth (1- tab-index) tabs))
>
> In my tests that was never nil, so the "leave blank" didn't seem
> possible (and seemed misleading). But I may well have missed something?
>
> That is, there is no real way to get "automatic naming" interactively?
Here is what I see when trying the old prompt:
(read-from-minibuffer
"New name for tab (leave blank for automatic naming): "
nil nil nil nil "tab-name")
Typing RET returns the empty string "".
This bug report was last modified 4 years and 123 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.