GNU bug report logs - #39564
28.0.50; read-key function do not display the prompt if called from read-from-minibuffer

Previous Next

Package: emacs;

Reported by: Ergus <spacibba <at> aol.com>

Date: Tue, 11 Feb 2020 14:51:01 UTC

Severity: normal

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Oleh Krehel <ohwoeowho <at> gmail.com>
Cc: 39564 <at> debbugs.gnu.org
Subject: bug#39564: 28.0.50; read-key function do not display the prompt if called from read-from-minibuffer
Date: Tue, 11 Feb 2020 19:36:26 +0200
> From: Oleh Krehel <ohwoeowho <at> gmail.com>
> Date: Tue, 11 Feb 2020 17:17:02 +0100
> 
> Here's an updated code that works as intended on 26.3 and unexpected on 28.
> 
> (defun make-lines (n)
>   (mapconcat #'number-to-string
>              (number-sequence 0 n) "\n"))
> 
> (let ((map (make-sparse-keymap)))
>   (define-key map (kbd "C-f") (lambda ()
>                                 (interactive)
>                                 (let ((inhibit-field-text-motion t))
>                                   (goto-char (point-min)))
>                                 (message "%S"
>                                          (read-key
>                                           (concat
>                                            (make-lines 10)
>                                            "\nTest2")))
>                                 (minibuffer-keyboard-quit)))
>   (read-from-minibuffer (concat (make-lines 10) "\nTest1: ") nil map))
> 
> The idea here is that the read-key hint will occupy as much space as
> the initial read-from-minibuffer.

Thanks, but I still don't understand what should one do with this
snippet (after evaluating it) to see the problem.  Please tell more.




This bug report was last modified 3 years and 143 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.