changeset 92911:69683285b129

(holiday-bahai, calendar-bahai-mark-date-pattern): Use unless.
author Glenn Morris <rgm@gnu.org>
date Fri, 14 Mar 2008 03:32:07 +0000
parents 36a993320493
children bf22321f752b
files lisp/calendar/cal-bahai.el
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/cal-bahai.el	Fri Mar 14 03:31:52 2008 +0000
+++ b/lisp/calendar/cal-bahai.el	Fri Mar 14 03:32:07 2008 +0000
@@ -194,8 +194,7 @@
          (m (extract-calendar-month bahai-date))
          (y (extract-calendar-year bahai-date))
          (date))
-    (if (< m 1)
-        nil                            ; Bahá'í calendar doesn't apply
+    (unless (< m 1)                    ; Bahá'í calendar doesn't apply
       (increment-calendar-month m y (- 10 month))
       (if (> m 7)                       ; Bahá'í date might be visible
           (let ((date (calendar-gregorian-from-absolute
@@ -314,8 +313,7 @@
                  (m (extract-calendar-month bahai-date))
                  (y (extract-calendar-year bahai-date))
                  (date))
-            (if (< m 1)
-                nil                    ; Bahá'í calendar doesn't apply
+            (unless (< m 1)            ; Bahá'í calendar doesn't apply
               (increment-calendar-month m y (- 10 month))
               (if (> m 7)               ; Bahá'í date might be visible
                   (let ((date (calendar-gregorian-from-absolute