From: Ingo Lohmar <i.lohmar@gmail.com>
To: emacs-devel@gnu.org
Subject: And here's the patch, sorry..
Date: Sat, 21 Feb 2015 15:57:40 +0100 [thread overview]
Message-ID: <87y4nrwbvf.fsf@acer.localhost.com> (raw)
ChangeLog | 5 +++++
lisp/calendar/calendar.el | 12 +++++++++++-
diff --git a/ChangeLog b/ChangeLog
index 41bff0e..a36e180 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-21 Ingo Lohmar <i.lohmar@gmail.com>
+
+ * lisp/calendar/calendar.el (calendar-generate-month): New
+ variable calendar-weekend-days to fontify day headers correctly.
+
2015-02-21 Paul Eggert <eggert@cs.ucla.edu>
Merge from gnulib
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index e42a010..5e8e9f1 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -190,6 +190,16 @@ movement commands will not work correctly."
(calendar-redraw))
:group 'calendar)
+(defcustom calendar-weekend-days '(0 6)
+ "Days of the week considered weekend days.
+0 means Sunday, 1 means Monday, and so on.
+
+Determines which day headers are fontified with
+`calendar-weekend-header'."
+ :type '(repeat integer)
+ :version "24.5"
+ :group 'calendar)
+
(defcustom calendar-view-diary-initially-flag nil
"Non-nil means display current date's diary entries on entry to calendar.
The diary is displayed in another window when the calendar is first displayed,
@@ -1453,7 +1463,7 @@ line."
(insert
(truncate-string-to-width
(propertize (calendar-day-name j 'header t)
- 'font-lock-face (if (memq j '(0 6))
+ 'font-lock-face (if (memq j calendar-weekend-days)
'calendar-weekend-header
'calendar-weekday-header))
calendar-day-header-width nil ?\s)
reply other threads:[~2015-02-21 14:57 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y4nrwbvf.fsf@acer.localhost.com \
--to=i.lohmar@gmail.com \
--cc=emacs-devel@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 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.