all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Agenda Breaks on holidays: cl-return-from: No catch for tag
@ 2014-12-20 20:09 Tory S. Anderson
  0 siblings, 0 replies; only message in thread
From: Tory S. Anderson @ 2014-12-20 20:09 UTC (permalink / raw)
  To: orgmode list

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

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

only message in thread, other threads:[~2014-12-20 20:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-20 20:09 Agenda Breaks on holidays: cl-return-from: No catch for tag Tory S. Anderson

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.