1

I have this example function:

(defun my-test ()
  (interactive)
  (read-string "Very\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nlong-prompt: "))

In previous versions of Emacs (I was using Emacs 26), I could scroll through the prompt text using the arrow keys. Now, however, in the minibuffer, the arrow keys insert strings from the history and no longer allow me to scroll through the prompt text. I believe this is a bug. Am I mistaken?

Emacs 29.1 enter image description here

Emacs 26.3

enter image description here

4
  • 1
    I would say this is a feature. Why would you want to scroll through such a cumbersome prompt? If you prefer the old behavior then you can just rebind the arrow key (define-key minibuffer-mode-map (kbd "<up>") 'previous-line). Commented Feb 7 at 10:02
  • 1
    @dalanicolai Sometimes, when I build functions, I use (read-string (format "%s" VARIABLE)) to check what's going on in some point. Sometimes VARIABLE may be a string very long... I know this is not the "professional" way to do it but I find it very useful.
    – Gabriele
    Commented Feb 7 at 10:32
  • Ah, sounds clever. There are probably handier ways provided by the debugger, but it's a nice hack. So then just rebind those keys... Commented Feb 7 at 10:46
  • 1
    ... or use C-p/C-n.
    – NickD
    Commented Feb 7 at 12:24

1 Answer 1

2

This is the result of a deliberate change made in emacs-28 to fix bug 46033

As @NickD suggested, C-p and C-n still work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.