chiark / gitweb /
dot/emacs: Fix awful calendar snafu.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 11 Nov 2011 17:52:42 +0000 (17:52 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 11 Nov 2011 17:55:03 +0000 (17:55 +0000)
Don't locally bind view-diary-entries-initially when showing the
calendar.  If you do, then, for some reason,
calendar-view-diary-initially-flag gets unbound, and then org-mode will
get confused and introduce a variable-alias loop.  This results in
Badness.

This bug took a little while to track down...

dot/emacs

index d9b10358684bfde0f3f67056e04d17a6ee3d9908..0d2b3f55c4667b3eac938911bd9205c759a14bc6 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 (setq display-time-24hr-format t)
 (display-time)
 (column-number-mode 1)
-(trap
-  (if window-system
-      (let ((view-diary-entries-initially t))
-       (calendar))))
+(trap (if window-system (calendar)))
 
 ;;;--------------------------------------------------------------------------
 ;;; MailCrypt.