all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean-Christophe Helary <jean.christophe.helary@traduction-libre.org>
To: help-gnu-emacs@gnu.org
Subject: (interactive) arguments
Date: Tue, 31 Dec 2019 12:50:58 +0900	[thread overview]
Message-ID: <7DEBD428-8AC8-4633-A0C0-A8F2B862BE82@traduction-libre.org> (raw)

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





             reply	other threads:[~2019-12-31  3:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-31  3:50 Jean-Christophe Helary [this message]
2020-01-01 15:51 ` (interactive) arguments 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7DEBD428-8AC8-4633-A0C0-A8F2B862BE82@traduction-libre.org \
    --to=jean.christophe.helary@traduction-libre.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.