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

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

Re: Placement of list within an interactive clause


From: Jean Louis
Subject: Re: Placement of list within an interactive clause
Date: Sat, 16 Jul 2022 13:15:07 +0300
User-agent: Mutt/+ () (2022-06-11)

* Stefan Monnier via Users list for the GNU Emacs text editor 
<help-gnu-emacs@gnu.org> [2022-07-16 00:55]:
> > (defun my-fun-2 (&optional name)
> >   (interactive)
> >   (let ((name (or name (read-from-minibuffer "Name: "))))
> >     (message "Hello %s" name)))
> 
> Side note: `read-from-minibuffer` should probably be replaced here with
> `read-string`.  `read-from-minibuffer` is intended to be a low-level
> function upon which other `read-<foo>` functions are defined (such as
> `read-number`, read-string`, ...).

Sounds reasonable. 

I have removed all occurences of `read-from-minibuffer' from my
programs and replaced it with different function.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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