help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: completing-read depricated initial-input


From: Michael Heerdegen
Subject: Re: completing-read depricated initial-input
Date: Tue, 21 Jun 2022 13:19:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

carlmarcos--- via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> I differ with the plan to depricate `INITIAL-INPUT`.

I often miss it, too.  I don't recall why it had been deprecated.  But
you still can get the same thing using `minibuffer-setup-hook', e.g.

#+begin_src emacs-lisp
(minibuffer-with-setup-hook (lambda () (insert "b"))
  (completing-read "Input: " (list "a" "b")))
#+end_src

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]