[Top][All Lists]

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

(interactive) arguments

From: Jean-Christophe Helary
Subject: (interactive) arguments
Date: Tue, 31 Dec 2019 12:50:58 +0900

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
----------------------------------------------- @brandelune

reply via email to

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