Mercurial > emacs
comparison lisp/calendar/cal-bahai.el @ 92659:678337768a80
(diary-bahai-mark-entries)
(diary-bahai-insert-entry, diary-bahai-insert-monthly-entry)
(diary-bahai-insert-yearly-entry): Doc fixes.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 08 Mar 2008 21:36:14 +0000 |
parents | fa071bcc1d62 |
children | 416592e7d882 |
comparison
equal
deleted
inserted
replaced
92658:abf9226ae6c9 | 92659:678337768a80 |
---|---|
303 (declare-function mark-calendar-days-named "diary-lib" | 303 (declare-function mark-calendar-days-named "diary-lib" |
304 (dayname &optional color)) | 304 (dayname &optional color)) |
305 | 305 |
306 (defun diary-bahai-mark-entries () | 306 (defun diary-bahai-mark-entries () |
307 "Mark days in the calendar window that have Bahá'í date diary entries. | 307 "Mark days in the calendar window that have Bahá'í date diary entries. |
308 Each entry in diary-file (or included files) visible in the calendar | 308 Each entry in `diary-file' (or included files) visible in the calendar |
309 window is marked. Bahá'í date entries are prefaced by a | 309 window is marked. Bahá'í date entries are prefaced by |
310 bahai-diary-entry-symbol \(normally a B`I'). The same | 310 `bahai-diary-entry-symbol' (normally a \"B\"). The same |
311 diary-date-forms govern the style of the Bahá'í calendar entries, | 311 `diary-date-forms' govern the style of the Bahá'í calendar entries, |
312 except that the Bahá'í month names must be spelled in full. The | 312 except that the Bahá'í month names must be spelled in full. The |
313 Bahá'í months are numbered from 1 to 12 with Bahá being 1 and 12 being | 313 Bahá'í months are numbered from 1 to 12 with Bahá being 1 and 12 being |
314 `Alá. Bahá'í date diary entries that begin with a | 314 `Alá. Bahá'í date diary entries that begin with `diary-nonmarking-symbol' |
315 diary-nonmarking-symbol will not be marked in the calendar. This | 315 will not be marked in the calendar. This function is provided for use as |
316 function is provided for use as part of the | 316 part of `nongregorian-diary-marking-hook'." |
317 nongregorian-diary-marking-hook." | |
318 (let ((d diary-date-forms)) | 317 (let ((d diary-date-forms)) |
319 (while d | 318 (while d |
320 (let* | 319 (let* |
321 ((date-form (if (equal (car (car d)) 'backup) | 320 ((date-form (if (equal (car (car d)) 'backup) |
322 (cdr (car d)) | 321 (cdr (car d)) |
473 | 472 |
474 ;;;###autoload | 473 ;;;###autoload |
475 (defun diary-bahai-insert-entry (arg) | 474 (defun diary-bahai-insert-entry (arg) |
476 "Insert a diary entry. | 475 "Insert a diary entry. |
477 For the Bahá'í date corresponding to the date indicated by point. | 476 For the Bahá'í date corresponding to the date indicated by point. |
478 Prefix arg will make the entry nonmarking." | 477 Prefix argument ARG makes the entry nonmarking." |
479 (interactive "P") | 478 (interactive "P") |
480 (let* ((calendar-month-name-array calendar-bahai-month-name-array)) | 479 (let* ((calendar-month-name-array calendar-bahai-month-name-array)) |
481 (make-diary-entry | 480 (make-diary-entry |
482 (concat | 481 (concat |
483 bahai-diary-entry-symbol | 482 bahai-diary-entry-symbol |
490 | 489 |
491 ;;;###autoload | 490 ;;;###autoload |
492 (defun diary-bahai-insert-monthly-entry (arg) | 491 (defun diary-bahai-insert-monthly-entry (arg) |
493 "Insert a monthly diary entry. | 492 "Insert a monthly diary entry. |
494 For the day of the Bahá'í month corresponding to the date indicated by point. | 493 For the day of the Bahá'í month corresponding to the date indicated by point. |
495 Prefix arg will make the entry nonmarking." | 494 Prefix argument ARG makes the entry nonmarking." |
496 (interactive "P") | 495 (interactive "P") |
497 (let* ((calendar-date-display-form | 496 (let* ((calendar-date-display-form |
498 (if european-calendar-style '(day " * ") '("* " day ))) | 497 (if european-calendar-style '(day " * ") '("* " day ))) |
499 (calendar-month-name-array calendar-bahai-month-name-array)) | 498 (calendar-month-name-array calendar-bahai-month-name-array)) |
500 (make-diary-entry | 499 (make-diary-entry |
508 | 507 |
509 ;;;###autoload | 508 ;;;###autoload |
510 (defun diary-bahai-insert-yearly-entry (arg) | 509 (defun diary-bahai-insert-yearly-entry (arg) |
511 "Insert an annual diary entry. | 510 "Insert an annual diary entry. |
512 For the day of the Bahá'í year corresponding to the date indicated by point. | 511 For the day of the Bahá'í year corresponding to the date indicated by point. |
513 Prefix arg will make the entry nonmarking." | 512 Prefix argument ARG will make the entry nonmarking." |
514 (interactive "P") | 513 (interactive "P") |
515 (let* ((calendar-date-display-form | 514 (let* ((calendar-date-display-form |
516 (if european-calendar-style | 515 (if european-calendar-style |
517 '(day " " monthname) | 516 '(day " " monthname) |
518 '(monthname " " day))) | 517 '(monthname " " day))) |