From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: steve-humphreys@gmx.com Newsgroups: gmane.emacs.help Subject: Re: Elisp - Function returning a list Date: Wed, 16 Dec 2020 05:30:11 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="995"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 16 05:31:55 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kpOTi-0000AC-Kq for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 16 Dec 2020 05:31:54 +0100 Original-Received: from localhost ([::1]:45724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpOTh-0006S2-NE for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 15 Dec 2020 23:31:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpOSi-0006Rr-Oo for help-gnu-emacs@gnu.org; Tue, 15 Dec 2020 23:30:52 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:59147) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpOSb-0001w1-37 for help-gnu-emacs@gnu.org; Tue, 15 Dec 2020 23:30:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1608093011; bh=Xh5PEzcN1jx0BcKiw7gvfYIaRe8HyDXREPvO9K3VV/k=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=HBFnm32DQ+t2zE9/pF1Qk87bURgJ1OGwLJQDnY+bc0VI34VYY05BmiTEqbz+eKQU0 yTF39ATyQyxmHicmlP8UweabCOlJ+eRbsNGL57aUUx6WUEK5kb8hEFMdcTCAR+2r9e TwvKxaOn5/24N+jH5Y9H8LfbhdKhhdYzq2ofw420= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs15.server.lan [172.19.170.183]) (via HTTP); Wed, 16 Dec 2020 05:30:11 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:+gZaMmbFWM4++VBo98bLTJAIzk5XTD+fLaMLt26rLZMVekUvwvOv7eJexKqa2CcE/fcKm SKzMMwg2p1KwMWoY0936ink6M2ySJCXtyEMhyT/vRFpjnX4CjBOQ5cJVgct8AvYZJxqnwcqHtJxe Kf/4yX7HF9oWJC/Ocd2e8jRjBZ+20xxkKHw0LPVsVwa0RF4L0GKitfgh4XSbWhahaZk9QdV4sLbF rKmSVyl4BleIz71Mj/A4OPW5ERE1CShYEPQPvLvd0I3ZcyuaYjdlXT1K/OQrTbWXkK301v/OVXeq zw= X-UI-Out-Filterresults: notjunk:1;V03:K0:G6S5SI2kJI0=:ifWhwYp9fghu9tOWcvy0nc oYF9+gIzZrT4hrEQaaAo7PiH/0yDrm077ipS5/q673rmRzo/YXwCgCyo4yHj7Dy+bfLPRlQ8d Tr/78QcZgiPKMYDh9aaDWwhVnR6uyBB96seXAE28uuxOkSZLIvFEQ4TiAnY3QdCrOziCYzAsI XOpOoP0w6P6oGHrL7sg19OYztG7MueEl/mcQ/bXEPOHe1cW2bHu4RiMUibow08JTdJAxfJQD7 Sum1O3l3ruB02KgZI/dcyQl0MfY3Fe3CqXOIlTRDTgHO/ZIuGjPTOsUZrhuWhx2ZFbClukFut IPbWs+R8ploThzrGM0nQH1ZlTbhN83ZEDX7M9qHuWy0e+D9HSuwHY6FbGj2hWKascU4zzMDfj 7vUHBQFX5nw+mib2OuRQxOtclkDGlxAUWTf6dpLmTofAmzENRNwFCCrzfdh9nNejSJS+UXlSr Ay7Bq9wJ5Nq+rPAXxvLXXbrB6I+jT2/dO5Zo7Lqi4Vkq/D3vf1F7YOmq5xflyz3CTyKXXDULX jzy+hQQUG358rQEeJRQrVUmOz4s+Nwi0E5vLpGJxC4L+zdbU5BBREYagkMFTSSok4z6s3O68o Adst2CZy0dYeI= Received-SPF: pass client-ip=212.227.17.20; envelope-from=steve-humphreys@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126397 Archived-At: For me 800 is 8 O'Clock > Sent: Wednesday, December 16, 2020 at 5:09 AM > From: "Jean Louis" > To: steve-humphreys@gmx.com > Cc: "Help Gnu Emacs" > Subject: Re: Elisp - Function returning a list > > * steve-humphreys@gmx.com [2020-12-16 06:27]: > > > > I am having a go at making a function that returns a list of numbers, = but need it interactive. > > Unsure this is good > > > (defun typh-agenda-tgrd (tstr tend tskp) > (interactive "n Start_Time: n End_Time: n Skip_Time: ") > (number-sequence tstr tend tskp)) > > You are asking for time and function is asking for number. To me time > is more like 10:01 something rather than 10. > > The function definitely returns the list and is handy. > > (number-sequence 10 20 2) =3D> (10 12 14 16 18 20) > > You need some formatting here: > > (interactive "nStart Time: \nnEnd Time: \nnSkip_Time: ") > > You can test `interactive' before doing it. > > (defun typh-agenda-tgrd (tstr tend tskp) > (interactive "nStart Time: \nnEnd Time: \nnSkip_Time: ") > (number-sequence tstr tend tskp)) > > >