unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).