X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/a96a5fca077aae6ccb85e1a6cbb177053692d6ca..64c02ed0e9ad6d670aea9dd9e5696c70ce366714:/lisp/calendar/cal-persia.el diff --git a/lisp/calendar/cal-persia.el b/lisp/calendar/cal-persia.el index a0be1b186e..33c296a773 100644 --- a/lisp/calendar/cal-persia.el +++ b/lisp/calendar/cal-persia.el @@ -1,8 +1,10 @@ -;;; cal-persia.el --- calendar functions for the Persian calendar. +;;; cal-persia.el --- calendar functions for the Persian calendar -;; Copyright (C) 1996, 1997 Free Software Foundation, Inc. +;; Copyright (C) 1996, 1997, 2001, 2002, 2003, 2004, 2005, 2006 +;; Free Software Foundation, Inc. ;; Author: Edward M. Reingold +;; Maintainer: Glenn Morris ;; Keywords: calendar ;; Human-Keywords: Persian calendar, calendar, diary @@ -20,8 +22,8 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, -;; Boston, MA 02111-1307, USA. +;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. ;;; Commentary: @@ -29,8 +31,8 @@ ;; diary.el that deal with the Persian calendar. ;; Technical details of all the calendrical calculations can be found in -;; ``Calendrical Calculations'' by Nachum Dershowitz and Edward M. Reingold, -;; Cambridge University Press (1997). +;; ``Calendrical Calculations: The Millennium Edition'' by Edward M. Reingold +;; and Nachum Dershowitz, Cambridge University Press (2001). ;; Comments, corrections, and improvements should be sent to ;; Edward M. Reingold Department of Computer Science @@ -40,6 +42,8 @@ ;;; Code: +(defvar date) + (require 'cal-julian) (defvar persian-calendar-month-name-array @@ -187,14 +191,13 @@ Echo Persian date unless NOECHO is t." (calendar-absolute-from-gregorian today)))))) (completion-ignore-case t) (month (cdr (assoc - (capitalize (completing-read "Persian calendar month name: " (mapcar 'list (append persian-calendar-month-name-array nil)) - nil t)) + nil t) (calendar-make-alist persian-calendar-month-name-array - 1 'capitalize)))) + 1)))) (last (persian-calendar-last-day-of-month month year)) (day (calendar-read (format "Persian calendar day (1-%d): " last) @@ -207,4 +210,5 @@ Echo Persian date unless NOECHO is t." (provide 'cal-persia) +;;; arch-tag: 2832383c-e4b4-4dc2-8ee9-cfbdd53e5e2d ;;; cal-persia.el ends here