emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mike McLean <mike.mclean@pobox.com>
To: Sebastien Vauban <sva-news@mygooglest.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: agenda time grid -- default time slot lines
Date: Mon, 6 Oct 2014 05:58:49 -0400	[thread overview]
Message-ID: <CANid5Q50ZKDBmhDTGY4Uu9m6L2OQ9ek9HqO2w3G4mHfVv1MC3w@mail.gmail.com> (raw)
In-Reply-To: <86ppe5h8vv.fsf@example.com>


[-- Attachment #1.1: Type: text/plain, Size: 1329 bytes --]

Attached is a patch that updates the Docstring of org-agenda-time-grid to
match the actual options.


On Mon, Oct 6, 2014 at 4:58 AM, Sebastien Vauban <sva-news@mygooglest.com>
wrote:

> hymie! wrote:
> > My Agenda for a-week-from-next-Tuesday looks like this:
> >
> > Tuesday    14 October 2014
> >                8:00...... ----------------
> >               10:00...... ----------------
> >               12:00...... ----------------
> >       tasks:  14:00-15:00 IT-Security meeting
> >               14:00...... ----------------
> >               16:00...... ----------------
> >
> > Assuming that I cannot suppress the 14:00 line in this case ...
> > shouldn't the task line be **below** the 14:00 line?  I can "force"
> > it by changing the meeting time from 14:00 to 14:01, but it seems like
> > this is the wrong way to list them.  The meeting is not between 12:00
> > and 14:00.  It's between 14:00 and 16:00.
>
> False assumption!  ;-)
>
> Use `remove-match':
>
> --8<---------------cut here---------------start------------->8---
>   (setq org-agenda-time-grid '((daily remove-match)
>                                ""
>                                (0800 1000 1200 1400 1600 1800 2000)))
> --8<---------------cut here---------------end--------------->8---
>
> Best regards,
>   Seb
>
> --
> Sebastien Vauban
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 2136 bytes --]

[-- Attachment #2: 0001-org-agenda.el-Update-docstring.patch --]
[-- Type: application/octet-stream, Size: 900 bytes --]

From 60112793e7d459b43cf59f96e77301488b7412d7 Mon Sep 17 00:00:00 2001
From: Mike McLean <mike.mclean@pobox.com>
Date: Mon, 6 Oct 2014 05:54:09 -0400
Subject: [PATCH] org-agenda.el: Update docstring.

    * org-agenda.el (org-agenda-time-grid): Change docstring.
---
 lisp/org-agenda.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 7a17160..157ed93 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1470,6 +1470,7 @@ symbols specifying conditions when the grid should be displayed:
  weekly        if the agenda shows an entire week
  today         show grid on current date, independent of daily/weekly display
  require-timed show grid only if at least one item has a time specification
+ remove-match  skip grid times already present in an entry
 
 The second item is a string which will be placed behind the grid time.
 
-- 
2.1.2


  reply	other threads:[~2014-10-06  9:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-03 17:31 agenda time grid -- default time slot lines hymie!
2014-10-06  8:58 ` Sebastien Vauban
2014-10-06  9:58   ` Mike McLean [this message]
     [not found]     ` <CANid5Q50ZKDBmhDTGY4Uu9m6L2OQ9ek9HqO2w3G4mHfVv1MC3w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-10-06 10:19       ` Sebastien Vauban
2014-10-07 10:32     ` Nicolas Goaziou
2014-10-09  7:34   ` Detlef Steuer
2014-10-09  8:33     ` Detlef Steuer

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=CANid5Q50ZKDBmhDTGY4Uu9m6L2OQ9ek9HqO2w3G4mHfVv1MC3w@mail.gmail.com \
    --to=mike.mclean@pobox.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sva-news@mygooglest.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).