all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* (interactive) arguments
@ 2019-12-31  3:50 Jean-Christophe Helary
  2020-01-01 15:51 ` Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: Jean-Christophe Helary @ 2019-12-31  3:50 UTC (permalink / raw)
  To: help-gnu-emacs

I'm looking for a way to add a default value to interactive by just using the "string" version:

(defun dailyTest (myDate)
  (interactive "ntoday: ")

I can do that with the "list" version:

(defun dailyIndex (myDate)
  (interactive (list
                (read-string "Date: " (format-time-string "%d")))))


Is that possible ?


Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-01-04 17:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-31  3:50 (interactive) arguments Jean-Christophe Helary
2020-01-01 15:51 ` Stefan Monnier
2020-01-01 16:26   ` Jean-Christophe Helary
2020-01-02 16:08     ` Jean-Christophe Helary
2020-01-02 16:30       ` Marcin Borkowski
2020-01-02 16:42         ` Jean-Christophe Helary
2020-01-02 16:57         ` Jean-Christophe Helary
2020-01-02 18:11           ` Marcin Borkowski
2020-01-04 16:28       ` Stefan Monnier
2020-01-04 17:44         ` Jean-Christophe Helary

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.