[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Elisp - Function returning a list
From: |
steve-humphreys |
Subject: |
Re: Elisp - Function returning a list |
Date: |
Wed, 16 Dec 2020 05:30:11 +0100 |
For me 800 is 8 O'Clock
> Sent: Wednesday, December 16, 2020 at 5:09 AM
> From: "Jean Louis" <bugs@gnu.support>
> To: steve-humphreys@gmx.com
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: Elisp - Function returning a list
>
> * steve-humphreys@gmx.com <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) => (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))
>
>
>
- Re: let, let*, oh, why [was: Elisp - Function returning a list], (continued)
- Re: let, let*, oh, why [was: Elisp - Function returning a list], Jean Louis, 2020/12/21
- Re: let, let*, oh, why [was: Elisp - Function returning a list], Emanuel Berg, 2020/12/21
- Re: let, let*, oh, why [was: Elisp - Function returning a list], tomas, 2020/12/21
- RE: let, let*, oh, why [was: Elisp - Function returning a list], Drew Adams, 2020/12/21
- Re: let, let*, oh, why [was: Elisp - Function returning a list], tomas, 2020/12/21
- Re: let, let*, oh, why [was: Elisp - Function returning a list], 황병희, 2020/12/25
- Re: let, let*, oh, why [was: Elisp - Function returning a list], Emanuel Berg, 2020/12/25
- Re: let, let*, oh, why [was: Elisp - Function returning a list], Jean Louis, 2020/12/26
- Re: let, let*, oh, why [was: Elisp - Function returning a list], Emanuel Berg, 2020/12/26
- Re: let, let*, oh, why [was: Elisp - Function returning a list], Byung-Hee HWANG, 2020/12/26
Re: Elisp - Function returning a list,
steve-humphreys <=
Re: Elisp - Function returning a list, steve-humphreys, 2020/12/16
Re: Elisp - Function returning a list, Jean Louis, 2020/12/16
Re: Elisp - Function returning a list, Emanuel Berg, 2020/12/16
Re: Elisp - Function returning a sequence of times, Jean Louis, 2020/12/16
Re: Elisp - Function returning a sequence of times, steve-humphreys, 2020/12/16
Re: Elisp - Function returning a sequence of times, Joost Kremers, 2020/12/16
Re: Elisp - Function returning a sequence of times, steve-humphreys, 2020/12/16