emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: steve-humphreys@gmx.com
To: Marco Wahl <marcowahlsoft@gmail.com>
Cc: Org-Mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Using org-agenda-time-grid with lists
Date: Fri, 11 Dec 2020 16:45:28 +0100	[thread overview]
Message-ID: <trinity-4e1c04e7-bbfa-4fd6-b363-e328f38d7cf3-1607701528281@3c-app-mailcom-bs06> (raw)
In-Reply-To: <87blf0tl9p.fsf@gmail.com>



> Sent: Friday, December 11, 2020 at 4:28 PM
> From: "Marco Wahl" <marcowahlsoft@gmail.com>
> To: steve-humphreys@gmx.com
> Cc: "Org-Mode mailing list" <emacs-orgmode@gnu.org>
> Subject: Re: Using org-agenda-time-grid with lists
>
> steve-humphreys@gmx.com writes:
>
> > I am trying to insert finer timings in org-agenda with the following code.
> > Haw can one pass a list in a list?
> >
> > (setq tm '(number-sequence 800 2000 30))
> > (setq org-agenda-time-grid '((daily today require-timed)
> >    tm "......" "----------------"))
> >
> >
> > But this works well
> >
> > (setq org-agenda-time-grid '((daily today require-timed)
> >    (800 900 1000 1100 1200 1300 1400 1500 1600 1700  1800 2000)
> >    "......" "----------------"))
>
> What about
>
>     (setq tm '(number-sequence 800 2000 30))
>
> vs.
>
>     (setq tm (number-sequence 800 2000 30))
>
> ?

Thank you Marco.

I have made two versions for calling org-agenda-time-grid, but the first does not
comply with what the last call does.  Yet the parameters are identical.

(setq grid-displ '(today daily require-timed))
(setq tm '(number-sequence 800 2000 100))
(message "tm: %s" tm)
(setq org-agenda-time-grid '('grid-displ 'tm
   "......" "----------------"))

(setq org-agenda-time-grid '((today daily require-timed)
   (800 900 1000 1100 1200 1300 1400 1500 1600 1700  1800 2000)
   "......" "----------------"))

Incidentally, how can one print a list in messages buffer?


> HTH,
> --
> Marco
>
>


  reply	other threads:[~2020-12-11 15:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-11 14:59 Using org-agenda-time-grid with lists steve-humphreys
2020-12-11 15:28 ` Marco Wahl
2020-12-11 15:45   ` steve-humphreys [this message]
2020-12-11 16:39     ` TRS-80
2020-12-11 16:48       ` steve-humphreys
2020-12-11 17:23         ` TRS-80
2020-12-11 18:18           ` Christopher Dimech
2020-12-11 18:38             ` TRS-80
2020-12-11 22:22     ` Marco Wahl
2020-12-11 23:04       ` steve-humphreys

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-4e1c04e7-bbfa-4fd6-b363-e328f38d7cf3-1607701528281@3c-app-mailcom-bs06 \
    --to=steve-humphreys@gmx.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=marcowahlsoft@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).