From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.help Subject: (interactive) arguments Date: Tue, 31 Dec 2019 12:50:58 +0900 Message-ID: <7DEBD428-8AC8-4633-A0C0-A8F2B862BE82@traduction-libre.org> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="265538"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 31 04:51:28 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1im8Z6-0016yk-F9 for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Dec 2019 04:51:28 +0100 Original-Received: from localhost ([::1]:38990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1im8Z5-0008CX-9Q for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Dec 2019 22:51:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50780) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1im8Yv-0008CN-3O for help-gnu-emacs@gnu.org; Mon, 30 Dec 2019 22:51:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1im8Yu-0000S6-1W for help-gnu-emacs@gnu.org; Mon, 30 Dec 2019 22:51:16 -0500 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:50077) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1im8Yt-0000HA-PX for help-gnu-emacs@gnu.org; Mon, 30 Dec 2019 22:51:15 -0500 X-Originating-IP: 182.251.132.215 Original-Received: from [172.20.10.3] (KD182251132215.au-net.ne.jp [182.251.132.215]) (Authenticated sender: jean.christophe.helary@traduction-libre.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 3BBA860003 for ; Tue, 31 Dec 2019 03:51:11 +0000 (UTC) X-Mailer: Apple Mail (2.3608.40.2.2.4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.195 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:122116 Archived-At: 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