[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 06:04:25 +0100 |
Here's how it makes sense!
Is using "setq frq" and "setq tim" good
--------- code --------
(defun agenda-tgrd (&optional tstr tend tskp)
"Sets the time grid for the agenda."
(interactive "n StartTime: \nn EndTime: \nn SkipTime: ")
(let ( (tstr (or tstr 800))
(tend (or tend 1500))
(tskp (or tskp 100))
frq tim)
(setq frq '(daily today))
(setq tim (number-sequence tstr tend tskp))
(setq org-agenda-time-grid `(,frq ,tim "------" "---"))) )
> Sent: Wednesday, December 16, 2020 at 5:17 AM
> From: "Emanuel Berg via Users list for the GNU Emacs text editor"
> <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Elisp - Function returning a list
>
> Jean Louis wrote:
>
> > You can test `interactive' before doing it.
>
> Yes, good idea. I.e., evaluate the interactive form. Use
> `C-x e' after the right paren.
>
> > (defun typh-agenda-tgrd (tstr tend tskp)
> > (interactive "nStart Time: \nnEnd Time: \nnSkip_Time: ")
> > (number-sequence tstr tend tskp))
>
> Yes, but works, but doesn't make any sense. Try invoke it and
> see what happens :)
>
> --
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
>
>
>
- Elisp - Function returning a list, steve-humphreys, 2020/12/15
- Re: Elisp - Function returning a list, Jean Louis, 2020/12/15
- Re: Elisp - Function returning a list, Emanuel Berg, 2020/12/15
- Re: Elisp - Function returning a list,
steve-humphreys <=
- Re: Elisp - Function returning a list, Emanuel Berg, 2020/12/16
- Re: Elisp - Function returning a list, steve-humphreys, 2020/12/16
- Re: Elisp - Function returning a list, Joost Kremers, 2020/12/16
- Re: Elisp - Function returning a list, Emanuel Berg, 2020/12/16
- let, let*, oh, why [was: Elisp - Function returning a list], tomas, 2020/12/16
- Re: let, let*, oh, why [was: Elisp - Function returning a list], Emanuel Berg, 2020/12/16
- Re: let, let*, oh, why [was: Elisp - Function returning a list], Jean Louis, 2020/12/16
- Re: let, let*, oh, why [was: Elisp - Function returning a list], Stefan Monnier, 2020/12/16
- Re: let, let*, oh, why [was: Elisp - Function returning a list], Jean Louis, 2020/12/16
- Re: let, let*, oh, why [was: Elisp - Function returning a list], Stefan Monnier, 2020/12/16