emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Agenda Breaks on holidays: cl-return-from: No catch for tag


From: Tory S. Anderson
Subject: [O] Agenda Breaks on holidays: cl-return-from: No catch for tag
Date: Sat, 20 Dec 2014 15:09:09 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

When I try to pull up time span including a holiday, my agenda dies (stops 
generating, buffer says "not viewing agenda") and I get the following error in 
my messages: 

    cl-return-from: No catch for tag: --cl-block-nil--, org-agenda-date-weekend

It may have something to do with the holiday/weekend markup I use: 

    ;; Holiday/weekends in agenda
;;; Agenda holiday display
(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)
          (dolist (file (org-agenda-files nil 'ifmode))
            (let ((face
                   (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)))))))


Why is my agenda breaking on holidays (but not weekends)? 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]