diff options
| author | Glenn Morris | 2008-03-14 03:15:21 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-03-14 03:15:21 +0000 |
| commit | 5424a53095d61527075da3c5e7986117efb1c5b7 (patch) | |
| tree | d41e181f454ed3e2d4e4026b017b2fab2928d332 | |
| parent | 52e0f59e95b745d314d6debb902dd796dfd2a4b7 (diff) | |
| download | emacs-5424a53095d61527075da3c5e7986117efb1c5b7.tar.gz emacs-5424a53095d61527075da3c5e7986117efb1c5b7.zip | |
(french-calendar-accents): Move definition after constants.
(french-calendar-epoch, calendar-goto-french-date): Doc fix.
(french-calendar-month-name-array)
(french-calendar-multibyte-month-name-array)
(french-calendar-day-name-array, french-calendar-special-days-array):
Add doc strings.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/calendar/cal-french.el | 39 |
2 files changed, 29 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3deb22ead03..1d93d1f7f3d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -22,6 +22,13 @@ | |||
| 22 | (ethiopic-calendar-month-name-array, ethiopic-name): Add doc strings. | 22 | (ethiopic-calendar-month-name-array, ethiopic-name): Add doc strings. |
| 23 | (coptic-prompt-for-date): Move definition before use. | 23 | (coptic-prompt-for-date): Move definition before use. |
| 24 | 24 | ||
| 25 | * calendar/cal-french.el (french-calendar-epoch) | ||
| 26 | (calendar-goto-french-date): Doc fix. | ||
| 27 | (french-calendar-month-name-array) | ||
| 28 | (french-calendar-multibyte-month-name-array) | ||
| 29 | (french-calendar-day-name-array, french-calendar-special-days-array): | ||
| 30 | Add doc strings. | ||
| 31 | |||
| 25 | * calendar/cal-persia.el (calendar-goto-persian-date): Doc fix. | 32 | * calendar/cal-persia.el (calendar-goto-persian-date): Doc fix. |
| 26 | 33 | ||
| 27 | * calendar/diary-lib.el (mark-diary-entries): Move some constant | 34 | * calendar/diary-lib.el (mark-diary-entries): Move some constant |
diff --git a/lisp/calendar/cal-french.el b/lisp/calendar/cal-french.el index 1a6057b9b93..a773dd0f91b 100644 --- a/lisp/calendar/cal-french.el +++ b/lisp/calendar/cal-french.el | |||
| @@ -41,36 +41,41 @@ | |||
| 41 | 41 | ||
| 42 | (require 'calendar) | 42 | (require 'calendar) |
| 43 | 43 | ||
| 44 | (defun french-calendar-accents () | ||
| 45 | "True if diacritical marks are available." | ||
| 46 | (and (or window-system | ||
| 47 | (terminal-coding-system)) | ||
| 48 | (or enable-multibyte-characters | ||
| 49 | (and (char-table-p standard-display-table) | ||
| 50 | (equal (aref standard-display-table 161) [161]))))) | ||
| 51 | |||
| 52 | (defconst french-calendar-epoch (calendar-absolute-from-gregorian '(9 22 1792)) | 44 | (defconst french-calendar-epoch (calendar-absolute-from-gregorian '(9 22 1792)) |
| 53 | "Absolute date of start of French Revolutionary calendar = September 22, 1792.") | 45 | "Absolute date of start of French Revolutionary calendar = Sept 22, 1792.") |
| 54 | 46 | ||
| 55 | (defconst french-calendar-month-name-array | 47 | (defconst french-calendar-month-name-array |
| 56 | ["Vende'miaire" "Brumaire" "Frimaire" "Nivo^se" "Pluvio^se" "Vento^se" | 48 | ["Vende'miaire" "Brumaire" "Frimaire" "Nivo^se" "Pluvio^se" "Vento^se" |
| 57 | "Germinal" "Flore'al" "Prairial" "Messidor" "Thermidor" "Fructidor"]) | 49 | "Germinal" "Flore'al" "Prairial" "Messidor" "Thermidor" "Fructidor"] |
| 50 | "Array of month names in the French calendar.") | ||
| 58 | 51 | ||
| 59 | (defconst french-calendar-multibyte-month-name-array | 52 | (defconst french-calendar-multibyte-month-name-array |
| 60 | ["Vendémiaire" "Brumaire" "Frimaire" "Nivôse" "Pluviôse" "Ventôse" | 53 | ["Vendémiaire" "Brumaire" "Frimaire" "Nivôse" "Pluviôse" "Ventôse" |
| 61 | "Germinal" "Floréal" "Prairial" "Messidor" "Thermidor" "Fructidor"]) | 54 | "Germinal" "Floréal" "Prairial" "Messidor" "Thermidor" "Fructidor"] |
| 55 | "Array of multibyte month names in the French calendar.") | ||
| 62 | 56 | ||
| 63 | (defconst french-calendar-day-name-array | 57 | (defconst french-calendar-day-name-array |
| 64 | ["Primidi" "Duodi" "Tridi" "Quartidi" "Quintidi" "Sextidi" "Septidi" | 58 | ["Primidi" "Duodi" "Tridi" "Quartidi" "Quintidi" "Sextidi" "Septidi" |
| 65 | "Octidi" "Nonidi" "Decadi"]) | 59 | "Octidi" "Nonidi" "Decadi"] |
| 60 | "Array of day names in the French calendar.") | ||
| 61 | |||
| 62 | (defconst french-calendar-special-days-array | ||
| 63 | ["de la Vertu" "du Ge'nie" "du Travail" "de la Raison" "des Re'compenses" | ||
| 64 | "de la Re'volution"] | ||
| 65 | "Array of special day names in the French calendar.") | ||
| 66 | 66 | ||
| 67 | (defconst french-calendar-multibyte-special-days-array | 67 | (defconst french-calendar-multibyte-special-days-array |
| 68 | ["de la Vertu" "du Génie" "du Travail" "de la Raison" "des Récompenses" | 68 | ["de la Vertu" "du Génie" "du Travail" "de la Raison" "des Récompenses" |
| 69 | "de la Révolution"]) | 69 | "de la Révolution"] |
| 70 | "Array of multibyte special day names in the French calendar.") | ||
| 70 | 71 | ||
| 71 | (defconst french-calendar-special-days-array | 72 | (defun french-calendar-accents () |
| 72 | ["de la Vertu" "du Ge'nie" "du Travail" "de la Raison" "des Re'compenses" | 73 | "True if diacritical marks are available." |
| 73 | "de la Re'volution"]) | 74 | (and (or window-system |
| 75 | (terminal-coding-system)) | ||
| 76 | (or enable-multibyte-characters | ||
| 77 | (and (char-table-p standard-display-table) | ||
| 78 | (equal (aref standard-display-table 161) [161]))))) | ||
| 74 | 79 | ||
| 75 | (defun french-calendar-month-name-array () | 80 | (defun french-calendar-month-name-array () |
| 76 | "Return the array of month names, depending on whether accents are available." | 81 | "Return the array of month names, depending on whether accents are available." |
| @@ -200,7 +205,7 @@ Defaults to today's date if DATE is not given." | |||
| 200 | ;;;###cal-autoload | 205 | ;;;###cal-autoload |
| 201 | (defun calendar-goto-french-date (date &optional noecho) | 206 | (defun calendar-goto-french-date (date &optional noecho) |
| 202 | "Move cursor to French Revolutionary date DATE. | 207 | "Move cursor to French Revolutionary date DATE. |
| 203 | Echo French Revolutionary date unless NOECHO is t." | 208 | Echo French Revolutionary date unless NOECHO is non-nil." |
| 204 | (interactive | 209 | (interactive |
| 205 | (let ((accents (french-calendar-accents)) | 210 | (let ((accents (french-calendar-accents)) |
| 206 | (months (french-calendar-month-name-array)) | 211 | (months (french-calendar-month-name-array)) |