diff options
| author | Richard M. Stallman | 1993-07-27 05:48:57 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-27 05:48:57 +0000 |
| commit | 604ea1aaa3db5b4d8d43091d5cfcac39aa914169 (patch) | |
| tree | dfb76cccbbb47f3784e70c41933d41cd993fd1e0 | |
| parent | d2a9653aab1e520aa34534b2fc6cea57dcaca91d (diff) | |
| download | emacs-604ea1aaa3db5b4d8d43091d5cfcac39aa914169.tar.gz emacs-604ea1aaa3db5b4d8d43091d5cfcac39aa914169.zip | |
Doc fixes.
| -rw-r--r-- | lisp/diary-lib.el | 77 |
1 files changed, 38 insertions, 39 deletions
diff --git a/lisp/diary-lib.el b/lisp/diary-lib.el index cd5ae3f9f72..61843e56256 100644 --- a/lisp/diary-lib.el +++ b/lisp/diary-lib.el | |||
| @@ -42,7 +42,7 @@ | |||
| 42 | "Generate the diary window for ARG days starting with the current date. | 42 | "Generate the diary window for ARG days starting with the current date. |
| 43 | If no argument is provided, the number of days of diary entries is governed | 43 | If no argument is provided, the number of days of diary entries is governed |
| 44 | by the variable `number-of-diary-entries'. This function is suitable for | 44 | by the variable `number-of-diary-entries'. This function is suitable for |
| 45 | execution in a .emacs file." | 45 | execution in a `.emacs' file." |
| 46 | (interactive "P") | 46 | (interactive "P") |
| 47 | (let ((d-file (substitute-in-file-name diary-file)) | 47 | (let ((d-file (substitute-in-file-name diary-file)) |
| 48 | (date (calendar-current-date))) | 48 | (date (calendar-current-date))) |
| @@ -60,9 +60,9 @@ execution in a .emacs file." | |||
| 60 | 60 | ||
| 61 | (defun view-diary-entries (arg) | 61 | (defun view-diary-entries (arg) |
| 62 | "Prepare and display a buffer with diary entries. | 62 | "Prepare and display a buffer with diary entries. |
| 63 | Searches the file diary-file for entries that match ARG days starting with | 63 | Searches the file named in `diary-file' for entries that |
| 64 | the date indicated by the cursor position in the displayed three-month | 64 | match ARG days starting with the date indicated by the cursor position |
| 65 | calendar." | 65 | in the displayed three-month calendar." |
| 66 | (interactive "p") | 66 | (interactive "p") |
| 67 | (let ((d-file (substitute-in-file-name diary-file))) | 67 | (let ((d-file (substitute-in-file-name diary-file))) |
| 68 | (if (and d-file (file-exists-p d-file)) | 68 | (if (and d-file (file-exists-p d-file)) |
| @@ -76,13 +76,13 @@ calendar." | |||
| 76 | (autoload 'check-calendar-holidays "holidays" | 76 | (autoload 'check-calendar-holidays "holidays" |
| 77 | "Check the list of holidays for any that occur on DATE. | 77 | "Check the list of holidays for any that occur on DATE. |
| 78 | The value returned is a list of strings of relevant holiday descriptions. | 78 | The value returned is a list of strings of relevant holiday descriptions. |
| 79 | The holidays are those in the list calendar-holidays." | 79 | The holidays are those in the list `calendar-holidays'." |
| 80 | t) | 80 | t) |
| 81 | 81 | ||
| 82 | 82 | ||
| 83 | (autoload 'calendar-holiday-list "holidays" | 83 | (autoload 'calendar-holiday-list "holidays" |
| 84 | "Form the list of holidays that occur on dates in the calendar window. | 84 | "Form the list of holidays that occur on dates in the calendar window. |
| 85 | The holidays are those in the list calendar-holidays." | 85 | The holidays are those in the list `calendar-holidays'." |
| 86 | t) | 86 | t) |
| 87 | 87 | ||
| 88 | (autoload 'diary-french-date "cal-french" | 88 | (autoload 'diary-french-date "cal-french" |
| @@ -245,13 +245,12 @@ have the following distinct roles: | |||
| 245 | 245 | ||
| 246 | (defun include-other-diary-files () | 246 | (defun include-other-diary-files () |
| 247 | "Include the diary entries from other diary files with those of diary-file. | 247 | "Include the diary entries from other diary files with those of diary-file. |
| 248 | This function is suitable for use just before fancy-diary-display as the | 248 | This function is suitable for use in `list-diary-entries-hook'; |
| 249 | list-diary-entries-hook; it enables you to use shared diary files together | 249 | it enables you to use shared diary files together with your own. |
| 250 | with your own. The files included are specified in the diary-file by lines of | 250 | The files included are specified in the diaryfile by lines of this form: |
| 251 | the form | ||
| 252 | #include \"filename\" | 251 | #include \"filename\" |
| 253 | This is recursive; that is, #include directives in diary files thus included | 252 | This is recursive; that is, #include directives in diary files thus included |
| 254 | are obeyed. You can change the \"#include\" to some other string by | 253 | are obeyed. You can change the `#include' to some other string by |
| 255 | changing the variable `diary-include-string'." | 254 | changing the variable `diary-include-string'." |
| 256 | (goto-char (point-min)) | 255 | (goto-char (point-min)) |
| 257 | (while (re-search-forward | 256 | (while (re-search-forward |
| @@ -311,7 +310,7 @@ changing the variable `diary-include-string'." | |||
| 311 | 310 | ||
| 312 | (defun fancy-diary-display () | 311 | (defun fancy-diary-display () |
| 313 | "Prepare a diary buffer with relevant entries in a fancy, noneditable form. | 312 | "Prepare a diary buffer with relevant entries in a fancy, noneditable form. |
| 314 | This function is provided for optional use as the `list-diary-entries-hook'." | 313 | This function is provided for optional use as the `diary-display-hook'." |
| 315 | (if (or (not diary-entries-list) | 314 | (if (or (not diary-entries-list) |
| 316 | (and (not (cdr diary-entries-list)) | 315 | (and (not (cdr diary-entries-list)) |
| 317 | (string-equal (car (cdr (car diary-entries-list))) ""))) | 316 | (string-equal (car (cdr (car diary-entries-list))) ""))) |
| @@ -442,8 +441,8 @@ the actual printing." | |||
| 442 | (error "You don't have a diary buffer!"))))) | 441 | (error "You don't have a diary buffer!"))))) |
| 443 | 442 | ||
| 444 | (defun show-all-diary-entries () | 443 | (defun show-all-diary-entries () |
| 445 | "Show all of the diary entries in the diary-file. | 444 | "Show all of the diary entries in the diary file. |
| 446 | This function gets rid of the selective display of the diary-file so that | 445 | This function gets rid of the selective display of the diary file so that |
| 447 | all entries, not just some, are visible. If there is no diary buffer, one | 446 | all entries, not just some, are visible. If there is no diary buffer, one |
| 448 | is created." | 447 | is created." |
| 449 | (interactive) | 448 | (interactive) |
| @@ -488,8 +487,8 @@ name." | |||
| 488 | 487 | ||
| 489 | (defun mark-diary-entries () | 488 | (defun mark-diary-entries () |
| 490 | "Mark days in the calendar window that have diary entries. | 489 | "Mark days in the calendar window that have diary entries. |
| 491 | Each entry in diary-file visible in the calendar window is marked. After the | 490 | Each entry in the diary file visible in the calendar window is marked. |
| 492 | entries are marked, the hooks `nongregorian-diary-marking-hook' and | 491 | After the entries are marked, the hooks `nongregorian-diary-marking-hook' and |
| 493 | `mark-diary-entries-hook' are run." | 492 | `mark-diary-entries-hook' are run." |
| 494 | (interactive) | 493 | (interactive) |
| 495 | (setq mark-diary-entries-in-calendar t) | 494 | (setq mark-diary-entries-in-calendar t) |
| @@ -608,7 +607,7 @@ entries are marked, the hooks `nongregorian-diary-marking-hook' and | |||
| 608 | 607 | ||
| 609 | (defun mark-sexp-diary-entries () | 608 | (defun mark-sexp-diary-entries () |
| 610 | "Mark days in the calendar window that have sexp diary entries. | 609 | "Mark days in the calendar window that have sexp diary entries. |
| 611 | Each entry in diary-file (or included files) visible in the calendar window | 610 | Each entry in the diary file (or included files) visible in the calendar window |
| 612 | is marked. See the documentation for the function `list-sexp-diary-entries'." | 611 | is marked. See the documentation for the function `list-sexp-diary-entries'." |
| 613 | (let* ((sexp-mark (regexp-quote sexp-diary-entry-symbol)) | 612 | (let* ((sexp-mark (regexp-quote sexp-diary-entry-symbol)) |
| 614 | (s-entry (concat "\\(\\`\\|\^M\\|\n\\)" sexp-mark "(")) | 613 | (s-entry (concat "\\(\\`\\|\^M\\|\n\\)" sexp-mark "(")) |
| @@ -662,13 +661,13 @@ is marked. See the documentation for the function `list-sexp-diary-entries'." | |||
| 662 | (calendar-gregorian-from-absolute date)))))))) | 661 | (calendar-gregorian-from-absolute date)))))))) |
| 663 | 662 | ||
| 664 | (defun mark-included-diary-files () | 663 | (defun mark-included-diary-files () |
| 665 | "Mark the diary entries from other diary files with those of diary-file. | 664 | "Mark the diary entries from other diary files with those of the diary file. |
| 666 | This function is suitable for use as the mark-diary-entries-hook; it enables | 665 | This function is suitable for use as the `mark-diary-entries-hook'; it enables |
| 667 | you to use shared diary files together with your own. The files included are | 666 | you to use shared diary files together with your own. The files included are |
| 668 | specified in the diary-file by lines of the form | 667 | specified in the diary-file by lines of this form: |
| 669 | #include \"filename\" | 668 | #include \"filename\" |
| 670 | This is recursive; that is, #include directives in diary files thus included | 669 | This is recursive; that is, #include directives in diary files thus included |
| 671 | are obeyed. You can change the \"#include\" to some other string by | 670 | are obeyed. You can change the `#include' to some other string by |
| 672 | changing the variable `diary-include-string'." | 671 | changing the variable `diary-include-string'." |
| 673 | (goto-char (point-min)) | 672 | (goto-char (point-min)) |
| 674 | (while (re-search-forward | 673 | (while (re-search-forward |
| @@ -716,7 +715,7 @@ changing the variable `diary-include-string'." | |||
| 716 | 715 | ||
| 717 | (defun mark-calendar-date-pattern (month day year) | 716 | (defun mark-calendar-date-pattern (month day year) |
| 718 | "Mark all dates in the calendar window that conform to MONTH/DAY/YEAR. | 717 | "Mark all dates in the calendar window that conform to MONTH/DAY/YEAR. |
| 719 | A value of 0 in any position is a wild-card." | 718 | A value of 0 in any position is a wildcard." |
| 720 | (save-excursion | 719 | (save-excursion |
| 721 | (set-buffer calendar-buffer) | 720 | (set-buffer calendar-buffer) |
| 722 | (let ((m displayed-month) | 721 | (let ((m displayed-month) |
| @@ -728,7 +727,7 @@ A value of 0 in any position is a wild-card." | |||
| 728 | 727 | ||
| 729 | (defun mark-calendar-month (month year p-month p-day p-year) | 728 | (defun mark-calendar-month (month year p-month p-day p-year) |
| 730 | "Mark dates in the MONTH/YEAR that conform to pattern P-MONTH/P_DAY/P-YEAR. | 729 | "Mark dates in the MONTH/YEAR that conform to pattern P-MONTH/P_DAY/P-YEAR. |
| 731 | A value of 0 in any position of the pattern is a wild-card." | 730 | A value of 0 in any position of the pattern is a wildcard." |
| 732 | (if (or (and (= month p-month) | 731 | (if (or (and (= month p-month) |
| 733 | (or (= p-year 0) (= year p-year))) | 732 | (or (= p-year 0) (= year p-year))) |
| 734 | (and (= p-month 0) | 733 | (and (= p-month 0) |
| @@ -780,16 +779,16 @@ and XX:XXam or XX:XXpm." | |||
| 780 | (t -9999)));; Unrecognizable | 779 | (t -9999)));; Unrecognizable |
| 781 | 780 | ||
| 782 | (defun list-hebrew-diary-entries () | 781 | (defun list-hebrew-diary-entries () |
| 783 | "Add any Hebrew date entries from the diary-file to diary-entries-list. | 782 | "Add any Hebrew date entries from the diary file to `diary-entries-list'. |
| 784 | Hebrew date diary entries must be prefaced by a hebrew-diary-entry-symbol | 783 | Hebrew date diary entries must be prefaced by `hebrew-diary-entry-symbol' |
| 785 | (normally an `H'). The same diary-date-forms govern the style of the Hebrew | 784 | (normally an `H'). The same diary date forms govern the style of the Hebrew |
| 786 | calendar entries, except that the Hebrew month names must be spelled in full. | 785 | calendar entries, except that the Hebrew month names must be spelled in full. |
| 787 | The Hebrew months are numbered from 1 to 13 with Nisan being 1, 12 being | 786 | The Hebrew months are numbered from 1 to 13 with Nisan being 1, 12 being |
| 788 | Adar I and 13 being Adar II; you must use `Adar I' if you want Adar of a | 787 | Adar I and 13 being Adar II; you must use `Adar I' if you want Adar of a |
| 789 | common Hebrew year. If a Hebrew date diary entry begins with a | 788 | common Hebrew year. If a Hebrew date diary entry begins with a |
| 790 | diary-nonmarking-symbol the entry will appear in the diary listing, but will | 789 | `diary-nonmarking-symbol', the entry will appear in the diary listing, but will |
| 791 | not be marked in the calendar. This function is provided for use with the | 790 | not be marked in the calendar. This function is provided for use with the |
| 792 | nongregorian-diary-listing-hook." | 791 | `nongregorian-diary-listing-hook'." |
| 793 | (if (< 0 number) | 792 | (if (< 0 number) |
| 794 | (let ((buffer-read-only nil) | 793 | (let ((buffer-read-only nil) |
| 795 | (diary-modified (buffer-modified-p)) | 794 | (diary-modified (buffer-modified-p)) |
| @@ -973,7 +972,7 @@ is provided for use as part of the nongregorian-diary-marking-hook." | |||
| 973 | 972 | ||
| 974 | (defun mark-hebrew-calendar-date-pattern (month day year) | 973 | (defun mark-hebrew-calendar-date-pattern (month day year) |
| 975 | "Mark dates in calendar window that conform to Hebrew date MONTH/DAY/YEAR. | 974 | "Mark dates in calendar window that conform to Hebrew date MONTH/DAY/YEAR. |
| 976 | A value of 0 in any position is a wild-card." | 975 | A value of 0 in any position is a wildcard." |
| 977 | (save-excursion | 976 | (save-excursion |
| 978 | (set-buffer calendar-buffer) | 977 | (set-buffer calendar-buffer) |
| 979 | (if (and (/= 0 month) (/= 0 day)) | 978 | (if (and (/= 0 month) (/= 0 day)) |
| @@ -1046,11 +1045,11 @@ A value of 0 in any position is a wild-card." | |||
| 1046 | (calendar-gregorian-from-absolute date))))))))) | 1045 | (calendar-gregorian-from-absolute date))))))))) |
| 1047 | 1046 | ||
| 1048 | (defun list-sexp-diary-entries (date) | 1047 | (defun list-sexp-diary-entries (date) |
| 1049 | "Add sexp entries for DATE from the diary-file to diary-entries-list. | 1048 | "Add sexp entries for DATE from the diary file to `diary-entries-list'. |
| 1050 | Also, Make them visible in the diary file. Returns t if any entries were | 1049 | Also, Make them visible in the diary file. Returns t if any entries were |
| 1051 | found. | 1050 | found. |
| 1052 | 1051 | ||
| 1053 | Sexp diary entries must be prefaced by a sexp-diary-entry-symbol (normally | 1052 | Sexp diary entries must be prefaced by a `sexp-diary-entry-symbol' (normally |
| 1054 | `%%'). The form of a sexp diary entry is | 1053 | `%%'). The form of a sexp diary entry is |
| 1055 | 1054 | ||
| 1056 | %%(SEXP) ENTRY | 1055 | %%(SEXP) ENTRY |
| @@ -1404,7 +1403,7 @@ Entry applies if date is within 50 days after Passover." | |||
| 1404 | Parameters are DEATH-MONTH, DEATH-DAY, DEATH-YEAR; the diary entry is assumed | 1403 | Parameters are DEATH-MONTH, DEATH-DAY, DEATH-YEAR; the diary entry is assumed |
| 1405 | to be the name of the person. Date of death is on the *civil* calendar; | 1404 | to be the name of the person. Date of death is on the *civil* calendar; |
| 1406 | although the date of death is specified by the civil calendar, the proper | 1405 | although the date of death is specified by the civil calendar, the proper |
| 1407 | Hebrew calendar yahrzeit is determined. If european-calendar-style is t, the | 1406 | Hebrew calendar yahrzeit is determined. If `european-calendar-style' is t, the |
| 1408 | order of the parameters is changed to DEATH-DAY, DEATH-MONTH, DEATH-YEAR." | 1407 | order of the parameters is changed to DEATH-DAY, DEATH-MONTH, DEATH-YEAR." |
| 1409 | (let* ((h-date (calendar-hebrew-from-absolute | 1408 | (let* ((h-date (calendar-hebrew-from-absolute |
| 1410 | (calendar-absolute-from-gregorian | 1409 | (calendar-absolute-from-gregorian |
| @@ -1525,7 +1524,7 @@ Entry applies if date is Rosh Hodesh, the day before, or the Saturday before." | |||
| 1525 | (hebrew-calendar-parasha-name parasha)))))))) | 1524 | (hebrew-calendar-parasha-name parasha)))))))) |
| 1526 | 1525 | ||
| 1527 | (defun add-to-diary-list (date string) | 1526 | (defun add-to-diary-list (date string) |
| 1528 | "Add the entry (DATE STRING) to the diary-entries-list. | 1527 | "Add the entry (DATE STRING) to `diary-entries-list'. |
| 1529 | Do nothing if DATE or STRING is nil." | 1528 | Do nothing if DATE or STRING is nil." |
| 1530 | (and date string | 1529 | (and date string |
| 1531 | (setq diary-entries-list | 1530 | (setq diary-entries-list |
| @@ -1671,15 +1670,15 @@ have 30 days), and has Passover start on Tuesday.") | |||
| 1671 | (aref hebrew-calendar-parashiot-names p))) | 1670 | (aref hebrew-calendar-parashiot-names p))) |
| 1672 | 1671 | ||
| 1673 | (defun list-islamic-diary-entries () | 1672 | (defun list-islamic-diary-entries () |
| 1674 | "Add any Islamic date entries from the diary-file to diary-entries-list. | 1673 | "Add any Islamic date entries from the diary file to `diary-entries-list'. |
| 1675 | Islamic date diary entries must be prefaced by an islamic-diary-entry-symbol | 1674 | Islamic date diary entries must be prefaced by an `islamic-diary-entry-symbol' |
| 1676 | (normally an `I'). The same diary-date-forms govern the style of the Islamic | 1675 | (normally an `I'). The same diary date forms govern the style of the Islamic |
| 1677 | calendar entries, except that the Islamic month names must be spelled in full. | 1676 | calendar entries, except that the Islamic month names must be spelled in full. |
| 1678 | The Islamic months are numbered from 1 to 12 with Muharram being 1 and 12 being | 1677 | The Islamic months are numbered from 1 to 12 with Muharram being 1 and 12 being |
| 1679 | Dhu al-Hijjah. If an Islamic date diary entry begins with a | 1678 | Dhu al-Hijjah. If an Islamic date diary entry begins with a |
| 1680 | diary-nonmarking-symbol the entry will appear in the diary listing, but will | 1679 | `diary-nonmarking-symbol', the entry will appear in the diary listing, but will |
| 1681 | not be marked in the calendar. This function is provided for use with the | 1680 | not be marked in the calendar. This function is provided for use with the |
| 1682 | nongregorian-diary-listing-hook." | 1681 | `nongregorian-diary-listing-hook'." |
| 1683 | (if (< 0 number) | 1682 | (if (< 0 number) |
| 1684 | (let ((buffer-read-only nil) | 1683 | (let ((buffer-read-only nil) |
| 1685 | (diary-modified (buffer-modified-p)) | 1684 | (diary-modified (buffer-modified-p)) |
| @@ -1860,7 +1859,7 @@ provided for use as part of the nongregorian-diary-marking-hook." | |||
| 1860 | 1859 | ||
| 1861 | (defun mark-islamic-calendar-date-pattern (month day year) | 1860 | (defun mark-islamic-calendar-date-pattern (month day year) |
| 1862 | "Mark dates in calendar window that conform to Islamic date MONTH/DAY/YEAR. | 1861 | "Mark dates in calendar window that conform to Islamic date MONTH/DAY/YEAR. |
| 1863 | A value of 0 in any position is a wild-card." | 1862 | A value of 0 in any position is a wildcard." |
| 1864 | (save-excursion | 1863 | (save-excursion |
| 1865 | (set-buffer calendar-buffer) | 1864 | (set-buffer calendar-buffer) |
| 1866 | (if (and (/= 0 month) (/= 0 day)) | 1865 | (if (and (/= 0 month) (/= 0 day)) |