From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Show timestamps but not SCHEDULED Date: Sun, 30 Aug 2015 11:34:51 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZW4dB-0001XU-5o for emacs-orgmode@gnu.org; Sun, 30 Aug 2015 11:34:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZW4d7-0008SZ-5H for emacs-orgmode@gnu.org; Sun, 30 Aug 2015 11:34:53 -0400 Received: from mail-qk0-x231.google.com ([2607:f8b0:400d:c09::231]:35798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZW4d7-0008SO-0I for emacs-orgmode@gnu.org; Sun, 30 Aug 2015 11:34:49 -0400 Received: by qkcu126 with SMTP id u126so3356179qkc.2 for ; Sun, 30 Aug 2015 08:34:48 -0700 (PDT) Received: from parma.local ([71.58.98.77]) by smtp.gmail.com with ESMTPSA id s64sm7120677qgs.33.2015.08.30.08.34.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Aug 2015 08:34:47 -0700 (PDT) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode Hi, On 2015-08-30 at 08:26, Ken Mankoff 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.