[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v |
Date: |
Sat, 29 Mar 2008 02:42:53 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Glenn Morris <gm> 08/03/29 02:42:53
Index: cal-bahai.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/calendar/cal-bahai.el,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- cal-bahai.el 27 Mar 2008 02:47:38 -0000 1.38
+++ cal-bahai.el 29 Mar 2008 02:42:52 -0000 1.39
@@ -206,7 +206,7 @@
(list displayed-month 15 displayed-year))))
(m (extract-calendar-month bahai-date))
(y (extract-calendar-year bahai-date))
- (date))
+ date)
(unless (< m 1) ; Bahá'à calendar doesn't apply
(increment-calendar-month m y (- 10 month))
(if (> m 7) ; Bahá'à date might be visible
@@ -264,20 +264,18 @@
(define-obsolete-function-alias
'mark-bahai-diary-entries 'diary-bahai-mark-entries "23.1")
+
+(autoload 'diary-insert-entry-1 "diary-lib")
+
;;;###cal-autoload
(defun diary-bahai-insert-entry (arg)
"Insert a diary entry.
For the Bahá'à date corresponding to the date indicated by point.
Prefix argument ARG makes the entry nonmarking."
(interactive "P")
- (let ((calendar-month-name-array calendar-bahai-month-name-array))
- (make-diary-entry
- (concat bahai-diary-entry-symbol
- (calendar-date-string
- (calendar-bahai-from-absolute
- (calendar-absolute-from-gregorian (calendar-cursor-to-date t)))
- nil t))
- arg)))
+ (diary-insert-entry-1 nil arg calendar-bahai-month-name-array
+ bahai-diary-entry-symbol
+ 'calendar-bahai-from-absolute))
(define-obsolete-function-alias
'insert-bahai-diary-entry 'diary-bahai-insert-entry "23.1")
@@ -288,16 +286,9 @@
For the day of the Bahá'à month corresponding to the date indicated by point.
Prefix argument ARG makes the entry nonmarking."
(interactive "P")
- (let ((calendar-date-display-form (if european-calendar-style
- '(day " * ")
- '("* " day )))
- (calendar-month-name-array calendar-bahai-month-name-array))
- (make-diary-entry
- (concat bahai-diary-entry-symbol
- (calendar-date-string
- (calendar-bahai-from-absolute
- (calendar-absolute-from-gregorian (calendar-cursor-to-date
t)))))
- arg)))
+ (diary-insert-entry-1 'monthly arg calendar-bahai-month-name-array
+ bahai-diary-entry-symbol
+ 'calendar-bahai-from-absolute))
(define-obsolete-function-alias
'insert-monthly-bahai-diary-entry 'diary-bahai-insert-monthly-entry "23.1")
@@ -308,16 +299,9 @@
For the day of the Bahá'à year corresponding to the date indicated by point.
Prefix argument ARG will make the entry nonmarking."
(interactive "P")
- (let ((calendar-date-display-form (if european-calendar-style
- '(day " " monthname)
- '(monthname " " day)))
- (calendar-month-name-array calendar-bahai-month-name-array))
- (make-diary-entry
- (concat bahai-diary-entry-symbol
- (calendar-date-string
- (calendar-bahai-from-absolute
- (calendar-absolute-from-gregorian (calendar-cursor-to-date
t)))))
- arg)))
+ (diary-insert-entry-1 'yearly arg calendar-bahai-month-name-array
+ bahai-diary-entry-symbol
+ 'calendar-bahai-from-absolute))
(define-obsolete-function-alias
'insert-yearly-bahai-diary-entry 'diary-bahai-insert-yearly-entry "23.1")
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, (continued)
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, Glenn Morris, 2008/03/13
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, Glenn Morris, 2008/03/13
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, Glenn Morris, 2008/03/13
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, Glenn Morris, 2008/03/13
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, Glenn Morris, 2008/03/14
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, Glenn Morris, 2008/03/15
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, Glenn Morris, 2008/03/20
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, Glenn Morris, 2008/03/24
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, Glenn Morris, 2008/03/25
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, Glenn Morris, 2008/03/26
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v,
Glenn Morris <=
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, Glenn Morris, 2008/03/30
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, Glenn Morris, 2008/03/31
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, Glenn Morris, 2008/03/31
- [Emacs-diffs] Changes to emacs/lisp/calendar/cal-bahai.el,v, Glenn Morris, 2008/03/31