aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-07-22 15:30:24 +0000
committerRichard M. Stallman2002-07-22 15:30:24 +0000
commit16cd607da77e5f8894b3cb65900b8c6035861fcf (patch)
treea70d5e4b931a56833e61677e492b1c5e4327a995
parent3284b301183382acc3da8eeb2c9e8b6235631e92 (diff)
downloademacs-16cd607da77e5f8894b3cb65900b8c6035861fcf.tar.gz
emacs-16cd607da77e5f8894b3cb65900b8c6035861fcf.zip
(diary-sabbath-candles): Add optional MARK
parameter, specifying what face or character to use in the calendar display. These will now return (MARK . ENTRY).
-rw-r--r--lisp/calendar/solar.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/calendar/solar.el b/lisp/calendar/solar.el
index fc4c61859a2..d85c99c0b54 100644
--- a/lisp/calendar/solar.el
+++ b/lisp/calendar/solar.el
@@ -920,9 +920,12 @@ Accurate to a few seconds."
920 :type 'integer 920 :type 'integer
921 :version "21.1") 921 :version "21.1")
922 922
923(defun diary-sabbath-candles () 923(defun diary-sabbath-candles (&optional mark)
924 "Local time of candle lighting diary entry--applies if date is a Friday. 924 "Local time of candle lighting diary entry--applies if date is a Friday.
925No diary entry if there is no sunset on that date." 925No diary entry if there is no sunset on that date.
926
927An optional parameter MARK specifies a face or single-character string to
928use when highlighting the day in the calendar."
926 (if (not (and calendar-latitude calendar-longitude calendar-time-zone)) 929 (if (not (and calendar-latitude calendar-longitude calendar-time-zone))
927 (solar-setup)) 930 (solar-setup))
928 (if (= (% (calendar-absolute-from-gregorian date) 7) 5);; Friday 931 (if (= (% (calendar-absolute-from-gregorian date) 7) 5);; Friday
@@ -932,8 +935,9 @@ No diary entry if there is no sunset on that date."
932 (/ diary-sabbath-candles-minutes 60.0)) 935 (/ diary-sabbath-candles-minutes 60.0))
933 (cdr sunset))))) 936 (cdr sunset)))))
934 (if sunset 937 (if sunset
935 (format "%s Sabbath candle lighting" 938 (cons mark
936 (apply 'solar-time-string light)))))) 939 (format "%s Sabbath candle lighting"
940 (apply 'solar-time-string light)))))))
937 941
938(defun solar-equinoxes/solstices (k year) 942(defun solar-equinoxes/solstices (k year)
939 "Date of equinox/solstice K for YEAR. 943 "Date of equinox/solstice K for YEAR.