emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Show timestamps but not SCHEDULED
Date: Sun, 30 Aug 2015 11:34:51 -0400	[thread overview]
Message-ID: <m2r3mkssbo.fsf@gmail.com> (raw)
In-Reply-To: <m2si71rmgi.fsf@gmail.com>

Hi,

On 2015-08-30 at 08:26, Ken Mankoff <mankoff@gmail.com> wrote:
> I'd like a custom agenda view that shows EVENTS based on their
> timestamp, but not the SCHEDULED or DEADLINE timestamps. Is this
> possible?
>
> Example item:
>
> * EVENT Foo
>   SCHEDULED: <2015-09-03>
>   <2015-09-04>

I think I've found three possible solutions to this, but none appear to work, probably due to implementation issues.

1) =org-agenda-entry-text-exclude-regexps= should remove lines matching a regex. I tried using it like this:

(setq org-agenda-custom-commands
  '(
    ("e" "Event List"
      (
        (agenda "" (
    (org-agenda-overriding-header "Events")
    (org-agenda-show-all-dates t)
    (org-agenda-ndays 30)
    (org-agenda-skip-function '(org-agenda-skip-entry-if 'nottodo '("EVENT") 'done))
    (org-agenda-entry-text-exclude-regexps '("Scheduled:"))
))))))


2) =org-agenda-entry-text-cleanup-hook= OR =org-agenda-text-cleanup-hook=. I've tried using them like this:

(defun kdm/org-agenda-event-no-schedule ()
  (delete-matching-lines "Scheduled:" (beginning-of-buffer) (end-of-buffer)))
(add-hook 'org-agenda-entry-text-cleanup-hook 'kdm/org-agenda-event-no-schedule)
(add-hook 'org-agenda-text-cleanup-hook 'kdm/org-agenda-event-no-schedule)

But again, I don't see any effects from this.

Can someone explain what I'm doing wrong with these three approaches, or if there is some other way to filter lines or remove SCHEDULED items (but not timestamped items) from an Agenda view?

Thanks,

  -k.

  reply	other threads:[~2015-08-30 15:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-26 21:12 skip scheduled if deadline *on other days* Ken Mankoff
2015-08-30 12:26 ` Show timestamps but not SCHEDULED Ken Mankoff
2015-08-30 15:34   ` Ken Mankoff [this message]
2015-08-30 20:09   ` Ken Mankoff
2015-09-10 16:33   ` Michael Brand
2015-09-10 16:51     ` Ken Mankoff
2015-09-10 17:06       ` Michael Brand

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=m2r3mkssbo.fsf@gmail.com \
    --to=mankoff@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).