X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/edbf26946d4c9db29264ad4f78291b324f0e833d..7d129ac6543cbfa879b1f6ea2117aa58553273d9:/lisp/calendar/cal-persia.el diff --git a/lisp/calendar/cal-persia.el b/lisp/calendar/cal-persia.el index 99022af061..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 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,14 +22,18 @@ ;; 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: ;; This collection of functions implements the features of calendar.el and ;; diary.el that deal with the Persian calendar. +;; Technical details of all the calendrical calculations can be found in +;; ``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 ;; (217) 333-6733 University of Illinois at Urbana-Champaign @@ -36,6 +42,8 @@ ;;; Code: +(defvar date) + (require 'cal-julian) (defvar persian-calendar-month-name-array @@ -183,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) @@ -203,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