emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Agenda Holiday face doesn't work (crashes Agenda)
@ 2015-01-27 16:56 Tory S. Anderson
  0 siblings, 0 replies; only message in thread
From: Tory S. Anderson @ 2015-01-27 16:56 UTC (permalink / raw)
  To: orgmode list

Hello. I've been using Julien Danjou's code to good effect: https://julien.danjou.info/blog/2010/org-mode-and-holidays

Basically, it just advocates adding the following function, which then marks holidays with weekend face for clear viewing: 

    (require 'cl-lib)
    (setq org-agenda-day-face-function
          (defun jd:org-agenda-day-face-holidays-function (date)
            "Compute DATE face for holidays."
            (unless (org-agenda-todayp date)
              (cl-dolist (file (org-agenda-files nil 'ifmode))
                (let ((face
                       (cl-dolist (entry (org-agenda-get-day-entries file date))
                         (let ((category (with-temp-buffer
                                           (insert entry)
                                           (org-get-category (point-min)))))
                           (when (or (string= "Holiday" category)
                                     (string= "Vacation" category))
                             (return 'org-agenda-date-weekend))))))
                  (when face (return face)))))))

Now, however, it has stopped working. Once again I'm receiving the error, 
    cl-return-from: No catch for tag: --cl-block-nil--, org-agenda-date-weekend

Previously I repaired this by requiring 'cl-lib and making dolist into cl-dolist; but it no longer seems to be working. I'm not sure what's changed. Any suggestions? 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-27 16:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-27 16:56 Agenda Holiday face doesn't work (crashes Agenda) Tory S. Anderson

Code repositories for project(s) associated with this public inbox


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).