]> git.eshelyaron.com Git - emacs.git/commitdiff
(holiday-bahai, calendar-bahai-mark-date-pattern): Use unless.
authorGlenn Morris <rgm@gnu.org>
Fri, 14 Mar 2008 03:32:07 +0000 (03:32 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 14 Mar 2008 03:32:07 +0000 (03:32 +0000)
lisp/calendar/cal-bahai.el

index 354fcfa3cdcb6b301ac23a18ac26e2672a93a3a2..6628baf224d6e2975b83ad585158f49574b31f41 100644 (file)
@@ -194,8 +194,7 @@ nil if it is not visible in the current calendar window."
          (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 @@ A value of 0 in any position is a wildcard."
                  (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