From: torys.anderson@gmail.com (Tory S. Anderson)
To: orgmode list <emacs-orgmode@gnu.org>
Subject: Agenda Holiday face doesn't work (crashes Agenda)
Date: Tue, 27 Jan 2015 11:56:32 -0500 [thread overview]
Message-ID: <87vbjs17sv.fsf@gmail.com> (raw)
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?
reply other threads:[~2015-01-27 16:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87vbjs17sv.fsf@gmail.com \
--to=torys.anderson@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).