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


Message #11 received at 39564 <at> debbugs.gnu.org (full text, mbox):

From: Oleh Krehel <ohwoeowho <at> gmail.com>
To: 39564 <at> debbugs.gnu.org
Subject: Re: bug#39564: 28.0.50; read-key function do not display the prompt
 if called from read-from-minibuffer
Date: Tue, 11 Feb 2020 17:17:02 +0100
Hello,

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.

regards,
Oleh




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

Previous Next


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