aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-04-01 02:43:30 +0000
committerGlenn Morris2008-04-01 02:43:30 +0000
commite5e9977663650995435f90e00e4517f49ef55310 (patch)
treedb1e4f6b883bf4fe80354dd8ce140babc3f3a4f5
parentb36e906dd003adfb10e0c07cde2e8ba3a282b632 (diff)
downloademacs-e5e9977663650995435f90e00e4517f49ef55310.tar.gz
emacs-e5e9977663650995435f90e00e4517f49ef55310.zip
(Commentary): Point to calendar.el.
(calendar-persian-date-string): Reduce nesting of some lets.
-rw-r--r--lisp/calendar/cal-persia.el17
1 files changed, 8 insertions, 9 deletions
diff --git a/lisp/calendar/cal-persia.el b/lisp/calendar/cal-persia.el
index 419286face2..3855a31557e 100644
--- a/lisp/calendar/cal-persia.el
+++ b/lisp/calendar/cal-persia.el
@@ -27,8 +27,7 @@
27 27
28;;; Commentary: 28;;; Commentary:
29 29
30;; This collection of functions implements the features of calendar.el and 30;; See calendar.el.
31;; diary.el that deal with the Persian calendar.
32 31
33;;; Code: 32;;; Code:
34 33
@@ -148,13 +147,13 @@ Gregorian date Sunday, December 31, 1 BC."
148 (calendar-absolute-from-gregorian 147 (calendar-absolute-from-gregorian
149 (or date (calendar-current-date))))) 148 (or date (calendar-current-date)))))
150 (y (extract-calendar-year persian-date)) 149 (y (extract-calendar-year persian-date))
151 (m (extract-calendar-month persian-date))) 150 (m (extract-calendar-month persian-date))
152 (let ((monthname (aref persian-calendar-month-name-array (1- m))) 151 (monthname (aref persian-calendar-month-name-array (1- m)))
153 (day (int-to-string (extract-calendar-day persian-date))) 152 (day (int-to-string (extract-calendar-day persian-date)))
154 (dayname nil) 153 (year (int-to-string y))
155 (month (int-to-string m)) 154 (month (int-to-string m))
156 (year (int-to-string y))) 155 dayname)
157 (mapconcat 'eval calendar-date-display-form "")))) 156 (mapconcat 'eval calendar-date-display-form "")))
158 157
159;;;###cal-autoload 158;;;###cal-autoload
160(defun calendar-print-persian-date () 159(defun calendar-print-persian-date ()