Mercurial > emacs
comparison lisp/calendar/cal-french.el @ 92829:8777b384ba72
(generated-autoload-file): Don't set, instead use different values of
generate-autoload-cookie plus Makefile rules to allow for a mixture of
internal calendar autoloads and normal autoloads.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 13 Mar 2008 05:41:16 +0000 |
parents | 3d76a52b916c |
children | f14a38040473 |
comparison
equal
deleted
inserted
replaced
92828:5d415a63a344 | 92829:8777b384ba72 |
---|---|
158 (day ; calculate the day by subtraction | 158 (day ; calculate the day by subtraction |
159 (- date | 159 (- date |
160 (1- (calendar-absolute-from-french (list month 1 year)))))) | 160 (1- (calendar-absolute-from-french (list month 1 year)))))) |
161 (list month day year)))) | 161 (list month day year)))) |
162 | 162 |
163 ;;;###autoload | 163 ;;;###cal-autoload |
164 (defun calendar-french-date-string (&optional date) | 164 (defun calendar-french-date-string (&optional date) |
165 "String of French Revolutionary date of Gregorian DATE. | 165 "String of French Revolutionary date of Gregorian DATE. |
166 Returns the empty string if DATE is pre-French Revolutionary. | 166 Returns the empty string if DATE is pre-French Revolutionary. |
167 Defaults to today's date if DATE is not given." | 167 Defaults to today's date if DATE is not given." |
168 (let* ((french-date (calendar-french-from-absolute | 168 (let* ((french-date (calendar-french-from-absolute |
184 "%d %s an %d de la Re'volution") | 184 "%d %s an %d de la Re'volution") |
185 d | 185 d |
186 (aref (french-calendar-month-name-array) (1- m)) | 186 (aref (french-calendar-month-name-array) (1- m)) |
187 y))))) | 187 y))))) |
188 | 188 |
189 ;;;###autoload | 189 ;;;###cal-autoload |
190 (defun calendar-print-french-date () | 190 (defun calendar-print-french-date () |
191 "Show the French Revolutionary calendar equivalent of the selected date." | 191 "Show the French Revolutionary calendar equivalent of the selected date." |
192 (interactive) | 192 (interactive) |
193 (let ((f (calendar-french-date-string (calendar-cursor-to-date t)))) | 193 (let ((f (calendar-french-date-string (calendar-cursor-to-date t)))) |
194 (if (string-equal f "") | 194 (if (string-equal f "") |
195 (message "Date is pre-French Revolution") | 195 (message "Date is pre-French Revolution") |
196 (message "French Revolutionary date: %s" f)))) | 196 (message "French Revolutionary date: %s" f)))) |
197 | 197 |
198 ;;;###autoload | 198 ;;;###cal-autoload |
199 (defun calendar-goto-french-date (date &optional noecho) | 199 (defun calendar-goto-french-date (date &optional noecho) |
200 "Move cursor to French Revolutionary date DATE. | 200 "Move cursor to French Revolutionary date DATE. |
201 Echo French Revolutionary date unless NOECHO is t." | 201 Echo French Revolutionary date unless NOECHO is t." |
202 (interactive | 202 (interactive |
203 (let ((accents (french-calendar-accents)) | 203 (let ((accents (french-calendar-accents)) |
248 (or noecho (calendar-print-french-date))) | 248 (or noecho (calendar-print-french-date))) |
249 | 249 |
250 (defvar date) | 250 (defvar date) |
251 | 251 |
252 ;; To be called from list-sexp-diary-entries, where DATE is bound. | 252 ;; To be called from list-sexp-diary-entries, where DATE is bound. |
253 ;;;###diary-autoload | |
253 (defun diary-french-date () | 254 (defun diary-french-date () |
254 "French calendar equivalent of date diary entry." | 255 "French calendar equivalent of date diary entry." |
255 (let ((f (calendar-french-date-string date))) | 256 (let ((f (calendar-french-date-string date))) |
256 (if (string-equal f "") | 257 (if (string-equal f "") |
257 "Date is pre-French Revolution" | 258 "Date is pre-French Revolution" |
258 (format "French Revolutionary date: %s" f)))) | 259 (format "French Revolutionary date: %s" f)))) |
259 | 260 |
260 (provide 'cal-french) | 261 (provide 'cal-french) |
261 | 262 |
262 ;; Local Variables: | |
263 ;; generated-autoload-file: "cal-loaddefs.el" | |
264 ;; End: | |
265 | |
266 ;; arch-tag: 7e8045a3-8609-46b5-9cde-cf40ce541cf9 | 263 ;; arch-tag: 7e8045a3-8609-46b5-9cde-cf40ce541cf9 |
267 ;;; cal-french.el ends here | 264 ;;; cal-french.el ends here |