]> code.delx.au - gnu-emacs/commitdiff
(Commentary): Point to calendar.el.
authorGlenn Morris <rgm@gnu.org>
Tue, 1 Apr 2008 02:43:30 +0000 (02:43 +0000)
committerGlenn Morris <rgm@gnu.org>
Tue, 1 Apr 2008 02:43:30 +0000 (02:43 +0000)
(calendar-persian-date-string): Reduce nesting of some lets.

lisp/calendar/cal-persia.el

index 419286face279e728eee820e474780163921beed..3855a31557e3bdcd1da23d75bfe60990b441a5c0 100644 (file)
@@ -27,8 +27,7 @@
 
 ;;; Commentary:
 
-;; This collection of functions implements the features of calendar.el and
-;; diary.el that deal with the Persian calendar.
+;; See calendar.el.
 
 ;;; Code:
 
@@ -148,13 +147,13 @@ Gregorian date Sunday, December 31, 1 BC."
                         (calendar-absolute-from-gregorian
                          (or date (calendar-current-date)))))
          (y (extract-calendar-year persian-date))
-         (m (extract-calendar-month persian-date)))
-    (let ((monthname (aref persian-calendar-month-name-array (1- m)))
-          (day (int-to-string (extract-calendar-day persian-date)))
-          (dayname nil)
-          (month (int-to-string m))
-          (year (int-to-string y)))
-      (mapconcat 'eval calendar-date-display-form ""))))
+         (m (extract-calendar-month persian-date))
+         (monthname (aref persian-calendar-month-name-array (1- m)))
+         (day (int-to-string (extract-calendar-day persian-date)))
+         (year (int-to-string y))
+         (month (int-to-string m))
+         dayname)
+    (mapconcat 'eval calendar-date-display-form "")))
 
 ;;;###cal-autoload
 (defun calendar-print-persian-date ()