|
From: | Stefan Monnier |
Subject: | Re: Placement of list within an interactive clause |
Date: | Fri, 15 Jul 2022 17:54:00 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> (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`, ...). Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |