diff options
| author | Paul Eggert | 2015-09-03 15:31:12 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-09-03 15:32:54 -0700 |
| commit | 26bd978d87dfbf9baa115cd961a67d42b416c4bf (patch) | |
| tree | 20f3d063895796f54b9f521c0b35f65bbcd418c4 /lisp/calendar | |
| parent | 944d77f070da388b0c6e6578a9f868e88c088940 (diff) | |
| download | emacs-26bd978d87dfbf9baa115cd961a67d42b416c4bf.tar.gz emacs-26bd978d87dfbf9baa115cd961a67d42b416c4bf.zip | |
Fix some more docstring etc. quoting problems
Mostly these fixes prevent the transliteration of apostrophes
that should stay apostrophes. Also, prefer curved quotes in
Bahá’í proper names, as that’s the preferred Bahá’í style and
these names are chock-full of non-ASCII characters anyway.
* lisp/emacs-lisp/eieio-core.el (eieio-defclass-autoload)
(eieio-defclass-internal):
* lisp/emacs-lisp/eieio.el (defclass):
* lisp/hi-lock.el (hi-lock-mode):
Don’t transliterate Lisp apostrophes when generating a
doc string or diagnostic.
* lisp/international/mule-diag.el (list-coding-systems-1):
* lisp/international/ogonek.el (ogonek-jak, ogonek-how):
* lisp/mail/sendmail.el (sendmail-query-user-about-smtp):
* lisp/vc/ediff-mult.el (ediff-redraw-registry-buffer):
* lisp/vc/ediff-ptch.el (ediff-fixup-patch-map):
Substitute quotes before putting them in the help buffer.
Diffstat (limited to 'lisp/calendar')
| -rw-r--r-- | lisp/calendar/cal-bahai.el | 74 | ||||
| -rw-r--r-- | lisp/calendar/cal-hebrew.el | 2 | ||||
| -rw-r--r-- | lisp/calendar/cal-menu.el | 4 | ||||
| -rw-r--r-- | lisp/calendar/cal-tex.el | 2 | ||||
| -rw-r--r-- | lisp/calendar/calendar.el | 22 | ||||
| -rw-r--r-- | lisp/calendar/diary-lib.el | 10 | ||||
| -rw-r--r-- | lisp/calendar/holidays.el | 18 |
7 files changed, 66 insertions, 66 deletions
diff --git a/lisp/calendar/cal-bahai.el b/lisp/calendar/cal-bahai.el index b68ba8a866f..998dc6c7056 100644 --- a/lisp/calendar/cal-bahai.el +++ b/lisp/calendar/cal-bahai.el | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | ;;; cal-bahai.el --- calendar functions for the Bahá'í calendar. | 1 | ;;; cal-bahai.el --- calendar functions for the Bahá’í calendar. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2001-2015 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2001-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: John Wiegley <johnw@gnu.org> | 5 | ;; Author: John Wiegley <johnw@gnu.org> |
| 6 | ;; Keywords: calendar | 6 | ;; Keywords: calendar |
| 7 | ;; Human-Keywords: Bahá'í calendar, Bahá'í, Baha'i, Bahai, calendar, diary | 7 | ;; Human-Keywords: Bahá’í calendar, Bahá’í, Baha'i, Bahai, calendar, diary |
| 8 | ;; Package: calendar | 8 | ;; Package: calendar |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| @@ -25,9 +25,9 @@ | |||
| 25 | ;;; Commentary: | 25 | ;;; Commentary: |
| 26 | 26 | ||
| 27 | ;; This collection of functions implements the features of calendar.el | 27 | ;; This collection of functions implements the features of calendar.el |
| 28 | ;; and diary-lib.el that deal with the Bahá'í calendar. | 28 | ;; and diary-lib.el that deal with the Bahá’í calendar. |
| 29 | 29 | ||
| 30 | ;; The Bahá'í (http://www.bahai.org) calendar system is based on a | 30 | ;; The Bahá’í (http://www.bahai.org) calendar system is based on a |
| 31 | ;; solar cycle of 19 months with 19 days each. The four remaining | 31 | ;; solar cycle of 19 months with 19 days each. The four remaining |
| 32 | ;; "intercalary" days are called the Ayyám-i-Há (days of Há), and are | 32 | ;; "intercalary" days are called the Ayyám-i-Há (days of Há), and are |
| 33 | ;; placed between the 18th and 19th months. They are meant as a time | 33 | ;; placed between the 18th and 19th months. They are meant as a time |
| @@ -59,13 +59,13 @@ | |||
| 59 | ["Bahá" "Jalál" "Jamál" "‘Aẓamat" "Núr" "Raḥmat" "Kalimát" "Kamál" | 59 | ["Bahá" "Jalál" "Jamál" "‘Aẓamat" "Núr" "Raḥmat" "Kalimát" "Kamál" |
| 60 | "Asmá’" "‘Izzat" "Mashíyyat" "‘Ilm" "Qudrat" "Qawl" "Masá’il" | 60 | "Asmá’" "‘Izzat" "Mashíyyat" "‘Ilm" "Qudrat" "Qawl" "Masá’il" |
| 61 | "Sharaf" "Sulṭán" "Mulk" "‘Alá’"] | 61 | "Sharaf" "Sulṭán" "Mulk" "‘Alá’"] |
| 62 | "Array of the month names in the Bahá'í calendar.") | 62 | "Array of the month names in the Bahá’í calendar.") |
| 63 | 63 | ||
| 64 | (defconst calendar-bahai-epoch (calendar-absolute-from-gregorian '(3 21 1844)) | 64 | (defconst calendar-bahai-epoch (calendar-absolute-from-gregorian '(3 21 1844)) |
| 65 | "Absolute date of start of Bahá'í calendar = March 21, 1844 AD.") | 65 | "Absolute date of start of Bahá’í calendar = March 21, 1844 AD.") |
| 66 | 66 | ||
| 67 | (defun calendar-bahai-leap-year-p (year) | 67 | (defun calendar-bahai-leap-year-p (year) |
| 68 | "True if Bahá'í YEAR is a leap year in the Bahá'í calendar." | 68 | "True if Bahá’í YEAR is a leap year in the Bahá’í calendar." |
| 69 | (calendar-leap-year-p (+ year 1844))) | 69 | (calendar-leap-year-p (+ year 1844))) |
| 70 | 70 | ||
| 71 | (defconst calendar-bahai-leap-base | 71 | (defconst calendar-bahai-leap-base |
| @@ -74,7 +74,7 @@ | |||
| 74 | Used by `calendar-bahai-to-absolute'.") | 74 | Used by `calendar-bahai-to-absolute'.") |
| 75 | 75 | ||
| 76 | (defun calendar-bahai-to-absolute (date) | 76 | (defun calendar-bahai-to-absolute (date) |
| 77 | "Compute absolute date from Bahá'í date DATE. | 77 | "Compute absolute date from Bahá’í date DATE. |
| 78 | The absolute date is the number of days elapsed since the (imaginary) | 78 | The absolute date is the number of days elapsed since the (imaginary) |
| 79 | Gregorian date Sunday, December 31, 1 BC." | 79 | Gregorian date Sunday, December 31, 1 BC." |
| 80 | (let* ((month (calendar-extract-month date)) | 80 | (let* ((month (calendar-extract-month date)) |
| @@ -95,9 +95,9 @@ Gregorian date Sunday, December 31, 1 BC." | |||
| 95 | day))) ; days so far this month | 95 | day))) ; days so far this month |
| 96 | 96 | ||
| 97 | (defun calendar-bahai-from-absolute (date) | 97 | (defun calendar-bahai-from-absolute (date) |
| 98 | "Bahá'í date (month day year) corresponding to the absolute DATE." | 98 | "Bahá’í date (month day year) corresponding to the absolute DATE." |
| 99 | (if (< date calendar-bahai-epoch) | 99 | (if (< date calendar-bahai-epoch) |
| 100 | (list 0 0 0) ; pre-Bahá'í date | 100 | (list 0 0 0) ; pre-Bahá’í date |
| 101 | (let* ((greg (calendar-gregorian-from-absolute date)) | 101 | (let* ((greg (calendar-gregorian-from-absolute date)) |
| 102 | (gmonth (calendar-extract-month greg)) | 102 | (gmonth (calendar-extract-month greg)) |
| 103 | (year (+ (- (calendar-extract-year greg) 1844) | 103 | (year (+ (- (calendar-extract-year greg) 1844) |
| @@ -116,7 +116,7 @@ Gregorian date Sunday, December 31, 1 BC." | |||
| 116 | 116 | ||
| 117 | ;;;###cal-autoload | 117 | ;;;###cal-autoload |
| 118 | (defun calendar-bahai-date-string (&optional date) | 118 | (defun calendar-bahai-date-string (&optional date) |
| 119 | "String of Bahá'í date of Gregorian DATE. | 119 | "String of Bahá’í date of Gregorian DATE. |
| 120 | Defaults to today's date if DATE is not given." | 120 | Defaults to today's date if DATE is not given." |
| 121 | (let* ((bahai-date (calendar-bahai-from-absolute | 121 | (let* ((bahai-date (calendar-bahai-from-absolute |
| 122 | (calendar-absolute-from-gregorian | 122 | (calendar-absolute-from-gregorian |
| @@ -142,19 +142,19 @@ Defaults to today's date if DATE is not given." | |||
| 142 | 142 | ||
| 143 | ;;;###cal-autoload | 143 | ;;;###cal-autoload |
| 144 | (defun calendar-bahai-print-date () | 144 | (defun calendar-bahai-print-date () |
| 145 | "Show the Bahá'í calendar equivalent of the selected date." | 145 | "Show the Bahá’í calendar equivalent of the selected date." |
| 146 | (interactive) | 146 | (interactive) |
| 147 | (let ((s (calendar-bahai-date-string (calendar-cursor-to-date t)))) | 147 | (let ((s (calendar-bahai-date-string (calendar-cursor-to-date t)))) |
| 148 | (if (string-equal s "") | 148 | (if (string-equal s "") |
| 149 | (message "Date is pre-Bahá'í") | 149 | (message "Date is pre-Bahá’í") |
| 150 | (message "Bahá'í date: %s" s)))) | 150 | (message "Bahá’í date: %s" s)))) |
| 151 | 151 | ||
| 152 | (defun calendar-bahai-read-date () | 152 | (defun calendar-bahai-read-date () |
| 153 | "Interactively read the arguments for a Bahá'í date command. | 153 | "Interactively read the arguments for a Bahá’í date command. |
| 154 | Reads a year, month and day." | 154 | Reads a year, month and day." |
| 155 | (let* ((today (calendar-current-date)) | 155 | (let* ((today (calendar-current-date)) |
| 156 | (year (calendar-read | 156 | (year (calendar-read |
| 157 | "Bahá'í calendar year (not 0): " | 157 | "Bahá’í calendar year (not 0): " |
| 158 | (lambda (x) (not (zerop x))) | 158 | (lambda (x) (not (zerop x))) |
| 159 | (number-to-string | 159 | (number-to-string |
| 160 | (calendar-extract-year | 160 | (calendar-extract-year |
| @@ -163,19 +163,19 @@ Reads a year, month and day." | |||
| 163 | (completion-ignore-case t) | 163 | (completion-ignore-case t) |
| 164 | (month (cdr (assoc | 164 | (month (cdr (assoc |
| 165 | (completing-read | 165 | (completing-read |
| 166 | "Bahá'í calendar month name: " | 166 | "Bahá’í calendar month name: " |
| 167 | (mapcar 'list | 167 | (mapcar 'list |
| 168 | (append calendar-bahai-month-name-array nil)) | 168 | (append calendar-bahai-month-name-array nil)) |
| 169 | nil t) | 169 | nil t) |
| 170 | (calendar-make-alist calendar-bahai-month-name-array | 170 | (calendar-make-alist calendar-bahai-month-name-array |
| 171 | 1)))) | 171 | 1)))) |
| 172 | (day (calendar-read "Bahá'í calendar day (1-19): " | 172 | (day (calendar-read "Bahá’í calendar day (1-19): " |
| 173 | (lambda (x) (and (< 0 x) (<= x 19)))))) | 173 | (lambda (x) (and (< 0 x) (<= x 19)))))) |
| 174 | (list (list month day year)))) | 174 | (list (list month day year)))) |
| 175 | 175 | ||
| 176 | ;;;###cal-autoload | 176 | ;;;###cal-autoload |
| 177 | (defun calendar-bahai-goto-date (date &optional noecho) | 177 | (defun calendar-bahai-goto-date (date &optional noecho) |
| 178 | "Move cursor to Bahá'í date DATE; echo Bahá'í date unless NOECHO is non-nil." | 178 | "Move cursor to Bahá’í date DATE; echo Bahá’í date unless NOECHO is non-nil." |
| 179 | (interactive (calendar-bahai-read-date)) | 179 | (interactive (calendar-bahai-read-date)) |
| 180 | (calendar-goto-date (calendar-gregorian-from-absolute | 180 | (calendar-goto-date (calendar-gregorian-from-absolute |
| 181 | (calendar-bahai-to-absolute date))) | 181 | (calendar-bahai-to-absolute date))) |
| @@ -186,8 +186,8 @@ Reads a year, month and day." | |||
| 186 | 186 | ||
| 187 | ;;;###holiday-autoload | 187 | ;;;###holiday-autoload |
| 188 | (defun holiday-bahai (month day string) | 188 | (defun holiday-bahai (month day string) |
| 189 | "Holiday on MONTH, DAY (Bahá'í) called STRING. | 189 | "Holiday on MONTH, DAY (Bahá’í) called STRING. |
| 190 | If MONTH, DAY (Bahá'í) is visible in the current calendar window, | 190 | If MONTH, DAY (Bahá’í) is visible in the current calendar window, |
| 191 | returns the corresponding Gregorian date in the form of the | 191 | returns the corresponding Gregorian date in the form of the |
| 192 | list (((month day year) STRING)). Otherwise, returns nil." | 192 | list (((month day year) STRING)). Otherwise, returns nil." |
| 193 | ;; Since the calendar window shows 3 months at a time, there are | 193 | ;; Since the calendar window shows 3 months at a time, there are |
| @@ -199,7 +199,7 @@ list (((month day year) STRING)). Otherwise, returns nil." | |||
| 199 | (m (calendar-extract-month bahai-date)) | 199 | (m (calendar-extract-month bahai-date)) |
| 200 | (y (calendar-extract-year bahai-date)) | 200 | (y (calendar-extract-year bahai-date)) |
| 201 | date) | 201 | date) |
| 202 | (unless (< m 1) ; Bahá'í calendar doesn't apply | 202 | (unless (< m 1) ; Bahá’í calendar doesn't apply |
| 203 | ;; Cf holiday-fixed, holiday-islamic. | 203 | ;; Cf holiday-fixed, holiday-islamic. |
| 204 | ;; With a +- 3 month calendar window, and 19 months per year, | 204 | ;; With a +- 3 month calendar window, and 19 months per year, |
| 205 | ;; month 16 is special. When m16 is central is when the | 205 | ;; month 16 is special. When m16 is central is when the |
| @@ -209,7 +209,7 @@ list (((month day year) STRING)). Otherwise, returns nil." | |||
| 209 | ;; To see if other months are visible we can shift the range | 209 | ;; To see if other months are visible we can shift the range |
| 210 | ;; accordingly. | 210 | ;; accordingly. |
| 211 | (calendar-increment-month m y (- 16 month) 19) | 211 | (calendar-increment-month m y (- 16 month) 19) |
| 212 | (and (> m 12) ; Bahá'í date might be visible | 212 | (and (> m 12) ; Bahá’í date might be visible |
| 213 | (calendar-date-is-visible-p | 213 | (calendar-date-is-visible-p |
| 214 | (setq date (calendar-gregorian-from-absolute | 214 | (setq date (calendar-gregorian-from-absolute |
| 215 | (calendar-bahai-to-absolute (list month day y))))) | 215 | (calendar-bahai-to-absolute (list month day y))))) |
| @@ -219,9 +219,9 @@ list (((month day year) STRING)). Otherwise, returns nil." | |||
| 219 | 219 | ||
| 220 | ;;;###holiday-autoload | 220 | ;;;###holiday-autoload |
| 221 | (defun holiday-bahai-new-year () | 221 | (defun holiday-bahai-new-year () |
| 222 | "Holiday entry for the Bahá'í New Year, if visible in the calendar window." | 222 | "Holiday entry for the Bahá’í New Year, if visible in the calendar window." |
| 223 | (holiday-fixed 3 21 | 223 | (holiday-fixed 3 21 |
| 224 | (format "Bahá'í New Year (Naw-Ruz) %d" | 224 | (format "Bahá’í New Year (Naw-Ruz) %d" |
| 225 | (- displayed-year (1- 1844))))) | 225 | (- displayed-year (1- 1844))))) |
| 226 | 226 | ||
| 227 | ;;;###holiday-autoload | 227 | ;;;###holiday-autoload |
| @@ -246,12 +246,12 @@ Only considers the first, ninth, and twelfth days, unless ALL or | |||
| 246 | 246 | ||
| 247 | ;;;###diary-autoload | 247 | ;;;###diary-autoload |
| 248 | (defun diary-bahai-list-entries () | 248 | (defun diary-bahai-list-entries () |
| 249 | "Add any Bahá'í date entries from the diary file to `diary-entries-list'. | 249 | "Add any Bahá’í date entries from the diary file to `diary-entries-list'. |
| 250 | Bahá'í date diary entries must be prefaced by `diary-bahai-entry-symbol' | 250 | Bahá’í date diary entries must be prefaced by `diary-bahai-entry-symbol' |
| 251 | \(normally a `B'). The same diary date forms govern the style of the | 251 | \(normally a `B'). The same diary date forms govern the style of the |
| 252 | Bahá'í calendar entries, except that the Bahá'í month names cannot be | 252 | Bahá’í calendar entries, except that the Bahá’í month names cannot be |
| 253 | abbreviated. The Bahá'í months are numbered from 1 to 19 with Bahá being | 253 | abbreviated. The Bahá’í months are numbered from 1 to 19 with Bahá being |
| 254 | 1 and 19 being `Alá. If a Bahá'í date diary entry begins with | 254 | 1 and 19 being `Alá. If a Bahá’í date diary entry begins with |
| 255 | `diary-nonmarking-symbol', the entry will appear in the diary listing, but | 255 | `diary-nonmarking-symbol', the entry will appear in the diary listing, but |
| 256 | will not be marked in the calendar. This function is provided for use with | 256 | will not be marked in the calendar. This function is provided for use with |
| 257 | `diary-nongregorian-listing-hook'." | 257 | `diary-nongregorian-listing-hook'." |
| @@ -263,7 +263,7 @@ will not be marked in the calendar. This function is provided for use with | |||
| 263 | 263 | ||
| 264 | ;;;###diary-autoload | 264 | ;;;###diary-autoload |
| 265 | (defun calendar-bahai-mark-date-pattern (month day year &optional color) | 265 | (defun calendar-bahai-mark-date-pattern (month day year &optional color) |
| 266 | "Mark dates in calendar window that conform to Bahá'í date MONTH/DAY/YEAR. | 266 | "Mark dates in calendar window that conform to Bahá’í date MONTH/DAY/YEAR. |
| 267 | A value of 0 in any position is a wildcard. Optional argument COLOR is | 267 | A value of 0 in any position is a wildcard. Optional argument COLOR is |
| 268 | passed to `calendar-mark-visible-date' as MARK." | 268 | passed to `calendar-mark-visible-date' as MARK." |
| 269 | (calendar-mark-1 month day year 'calendar-bahai-from-absolute | 269 | (calendar-mark-1 month day year 'calendar-bahai-from-absolute |
| @@ -273,7 +273,7 @@ passed to `calendar-mark-visible-date' as MARK." | |||
| 273 | 273 | ||
| 274 | ;;;###diary-autoload | 274 | ;;;###diary-autoload |
| 275 | (defun diary-bahai-mark-entries () | 275 | (defun diary-bahai-mark-entries () |
| 276 | "Mark days in the calendar window that have Bahá'í date diary entries. | 276 | "Mark days in the calendar window that have Bahá’í date diary entries. |
| 277 | Marks each entry in `diary-file' (or included files) visible in the calendar | 277 | Marks each entry in `diary-file' (or included files) visible in the calendar |
| 278 | window. See `diary-bahai-list-entries' for more information." | 278 | window. See `diary-bahai-list-entries' for more information." |
| 279 | (diary-mark-entries-1 'calendar-bahai-mark-date-pattern | 279 | (diary-mark-entries-1 'calendar-bahai-mark-date-pattern |
| @@ -286,7 +286,7 @@ window. See `diary-bahai-list-entries' for more information." | |||
| 286 | ;;;###cal-autoload | 286 | ;;;###cal-autoload |
| 287 | (defun diary-bahai-insert-entry (arg) | 287 | (defun diary-bahai-insert-entry (arg) |
| 288 | "Insert a diary entry. | 288 | "Insert a diary entry. |
| 289 | For the Bahá'í date corresponding to the date indicated by point. | 289 | For the Bahá’í date corresponding to the date indicated by point. |
| 290 | Prefix argument ARG makes the entry nonmarking." | 290 | Prefix argument ARG makes the entry nonmarking." |
| 291 | (interactive "P") | 291 | (interactive "P") |
| 292 | (diary-insert-entry-1 nil arg calendar-bahai-month-name-array | 292 | (diary-insert-entry-1 nil arg calendar-bahai-month-name-array |
| @@ -296,7 +296,7 @@ Prefix argument ARG makes the entry nonmarking." | |||
| 296 | ;;;###cal-autoload | 296 | ;;;###cal-autoload |
| 297 | (defun diary-bahai-insert-monthly-entry (arg) | 297 | (defun diary-bahai-insert-monthly-entry (arg) |
| 298 | "Insert a monthly diary entry. | 298 | "Insert a monthly diary entry. |
| 299 | For the day of the Bahá'í month corresponding to the date indicated by point. | 299 | For the day of the Bahá’í month corresponding to the date indicated by point. |
| 300 | Prefix argument ARG makes the entry nonmarking." | 300 | Prefix argument ARG makes the entry nonmarking." |
| 301 | (interactive "P") | 301 | (interactive "P") |
| 302 | (diary-insert-entry-1 'monthly arg calendar-bahai-month-name-array | 302 | (diary-insert-entry-1 'monthly arg calendar-bahai-month-name-array |
| @@ -306,7 +306,7 @@ Prefix argument ARG makes the entry nonmarking." | |||
| 306 | ;;;###cal-autoload | 306 | ;;;###cal-autoload |
| 307 | (defun diary-bahai-insert-yearly-entry (arg) | 307 | (defun diary-bahai-insert-yearly-entry (arg) |
| 308 | "Insert an annual diary entry. | 308 | "Insert an annual diary entry. |
| 309 | For the day of the Bahá'í year corresponding to the date indicated by point. | 309 | For the day of the Bahá’í year corresponding to the date indicated by point. |
| 310 | Prefix argument ARG will make the entry nonmarking." | 310 | Prefix argument ARG will make the entry nonmarking." |
| 311 | (interactive "P") | 311 | (interactive "P") |
| 312 | (diary-insert-entry-1 'yearly arg calendar-bahai-month-name-array | 312 | (diary-insert-entry-1 'yearly arg calendar-bahai-month-name-array |
| @@ -318,8 +318,8 @@ Prefix argument ARG will make the entry nonmarking." | |||
| 318 | ;; To be called from diary-list-sexp-entries, where DATE is bound. | 318 | ;; To be called from diary-list-sexp-entries, where DATE is bound. |
| 319 | ;;;###diary-autoload | 319 | ;;;###diary-autoload |
| 320 | (defun diary-bahai-date () | 320 | (defun diary-bahai-date () |
| 321 | "Bahá'í calendar equivalent of date diary entry." | 321 | "Bahá’í calendar equivalent of date diary entry." |
| 322 | (format "Bahá'í date: %s" (calendar-bahai-date-string date))) | 322 | (format "Bahá’í date: %s" (calendar-bahai-date-string date))) |
| 323 | 323 | ||
| 324 | 324 | ||
| 325 | (provide 'cal-bahai) | 325 | (provide 'cal-bahai) |
diff --git a/lisp/calendar/cal-hebrew.el b/lisp/calendar/cal-hebrew.el index 8a975d8e862..8bb1b88ee62 100644 --- a/lisp/calendar/cal-hebrew.el +++ b/lisp/calendar/cal-hebrew.el | |||
| @@ -611,7 +611,7 @@ is provided for use with `diary-nongregorian-listing-hook'." | |||
| 611 | "Mark dates in calendar window that conform to Hebrew date MONTH/DAY/YEAR. | 611 | "Mark dates in calendar window that conform to Hebrew date MONTH/DAY/YEAR. |
| 612 | A value of 0 in any position is a wildcard. Optional argument COLOR is | 612 | A value of 0 in any position is a wildcard. Optional argument COLOR is |
| 613 | passed to `calendar-mark-visible-date' as MARK." | 613 | passed to `calendar-mark-visible-date' as MARK." |
| 614 | ;; FIXME not the same as the Bahai and Islamic cases, so can't use | 614 | ;; FIXME not the same as the Bahá’í and Islamic cases, so can't use |
| 615 | ;; calendar-mark-1. | 615 | ;; calendar-mark-1. |
| 616 | (with-current-buffer calendar-buffer | 616 | (with-current-buffer calendar-buffer |
| 617 | (if (and (not (zerop month)) (not (zerop day))) | 617 | (if (and (not (zerop month)) (not (zerop day))) |
diff --git a/lisp/calendar/cal-menu.el b/lisp/calendar/cal-menu.el index 7462df84566..251d811bc52 100644 --- a/lisp/calendar/cal-menu.el +++ b/lisp/calendar/cal-menu.el | |||
| @@ -52,7 +52,7 @@ | |||
| 52 | ["Insert Anniversary" diary-insert-anniversary-entry] | 52 | ["Insert Anniversary" diary-insert-anniversary-entry] |
| 53 | ["Insert Block" diary-insert-block-entry] | 53 | ["Insert Block" diary-insert-block-entry] |
| 54 | ["Insert Cyclic" diary-insert-cyclic-entry] | 54 | ["Insert Cyclic" diary-insert-cyclic-entry] |
| 55 | ("Insert Bahá'í" | 55 | ("Insert Bahá’í" |
| 56 | ["One time" diary-bahai-insert-entry] | 56 | ["One time" diary-bahai-insert-entry] |
| 57 | ["Monthly" diary-bahai-insert-monthly-entry] | 57 | ["Monthly" diary-bahai-insert-monthly-entry] |
| 58 | ["Yearly" diary-bahai-insert-yearly-entry]) | 58 | ["Yearly" diary-bahai-insert-yearly-entry]) |
| @@ -132,7 +132,7 @@ | |||
| 132 | ["Astronomical Date" calendar-astro-goto-day-number] | 132 | ["Astronomical Date" calendar-astro-goto-day-number] |
| 133 | ["Hebrew Date" calendar-hebrew-goto-date] | 133 | ["Hebrew Date" calendar-hebrew-goto-date] |
| 134 | ["Persian Date" calendar-persian-goto-date] | 134 | ["Persian Date" calendar-persian-goto-date] |
| 135 | ["Bahá'í Date" calendar-bahai-goto-date] | 135 | ["Bahá’í Date" calendar-bahai-goto-date] |
| 136 | ["Islamic Date" calendar-islamic-goto-date] | 136 | ["Islamic Date" calendar-islamic-goto-date] |
| 137 | ["Julian Date" calendar-julian-goto-date] | 137 | ["Julian Date" calendar-julian-goto-date] |
| 138 | ["Chinese Date" calendar-chinese-goto-date] | 138 | ["Chinese Date" calendar-chinese-goto-date] |
diff --git a/lisp/calendar/cal-tex.el b/lisp/calendar/cal-tex.el index e2e9182d626..e512faef15e 100644 --- a/lisp/calendar/cal-tex.el +++ b/lisp/calendar/cal-tex.el | |||
| @@ -1602,7 +1602,7 @@ informative header, and run HOOK." | |||
| 1602 | (goto-char (point-min)) | 1602 | (goto-char (point-min)) |
| 1603 | (when (search-forward "documentclass" nil t) | 1603 | (when (search-forward "documentclass" nil t) |
| 1604 | (forward-line 1) | 1604 | (forward-line 1) |
| 1605 | ;; Eg for some Bahai holidays. | 1605 | ;; E.g., for some Bahá’í holidays. |
| 1606 | ;; FIXME latin1 might not always be right. | 1606 | ;; FIXME latin1 might not always be right. |
| 1607 | (insert "\\usepackage[latin1]{inputenc}\n")))) | 1607 | (insert "\\usepackage[latin1]{inputenc}\n")))) |
| 1608 | (latex-mode) | 1608 | (latex-mode) |
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 07977afc397..86e5477aa6f 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -42,7 +42,7 @@ | |||
| 42 | ;; can be translated from the (usual) Gregorian calendar to the day of | 42 | ;; can be translated from the (usual) Gregorian calendar to the day of |
| 43 | ;; the year/days remaining in year, to the ISO commercial calendar, to | 43 | ;; the year/days remaining in year, to the ISO commercial calendar, to |
| 44 | ;; the Julian (old style) calendar, to the Hebrew calendar, to the | 44 | ;; the Julian (old style) calendar, to the Hebrew calendar, to the |
| 45 | ;; Islamic calendar, to the Bahá'í calendar, to the French | 45 | ;; Islamic calendar, to the Bahá’í calendar, to the French |
| 46 | ;; Revolutionary calendar, to the Mayan calendar, to the Chinese | 46 | ;; Revolutionary calendar, to the Mayan calendar, to the Chinese |
| 47 | ;; calendar, to the Coptic calendar, to the Ethiopic calendar, and to | 47 | ;; calendar, to the Coptic calendar, to the Ethiopic calendar, and to |
| 48 | ;; the astronomical (Julian) day number. Times of sunrise/sunset can | 48 | ;; the astronomical (Julian) day number. Times of sunrise/sunset can |
| @@ -53,7 +53,7 @@ | |||
| 53 | ;; The following files are part of the calendar/diary code: | 53 | ;; The following files are part of the calendar/diary code: |
| 54 | 54 | ||
| 55 | ;; appt.el Appointment notification | 55 | ;; appt.el Appointment notification |
| 56 | ;; cal-bahai.el Bahá'í calendar | 56 | ;; cal-bahai.el Bahá’í calendar |
| 57 | ;; cal-china.el Chinese calendar | 57 | ;; cal-china.el Chinese calendar |
| 58 | ;; cal-coptic.el Coptic/Ethiopic calendars | 58 | ;; cal-coptic.el Coptic/Ethiopic calendars |
| 59 | ;; cal-dst.el Daylight saving time rules | 59 | ;; cal-dst.el Daylight saving time rules |
| @@ -375,7 +375,7 @@ When this expression is evaluated, DAY, MONTH, and YEAR are | |||
| 375 | integers appropriate to the relevant date. For example, to | 375 | integers appropriate to the relevant date. For example, to |
| 376 | display the ISO date: | 376 | display the ISO date: |
| 377 | 377 | ||
| 378 | (setq calendar-date-echo-text '(format \"ISO date: %s\" | 378 | (setq calendar-date-echo-text \\='(format \"ISO date: %s\" |
| 379 | (calendar-iso-date-string | 379 | (calendar-iso-date-string |
| 380 | (list month day year)))) | 380 | (list month day year)))) |
| 381 | Changing this variable without using customize has no effect on | 381 | Changing this variable without using customize has no effect on |
| @@ -655,7 +655,7 @@ causes the diary entry \"Vacation\" to appear from November 1 through | |||
| 655 | November 10, 1990. See the documentation for the function | 655 | November 10, 1990. See the documentation for the function |
| 656 | `diary-list-sexp-entries' for more details. | 656 | `diary-list-sexp-entries' for more details. |
| 657 | 657 | ||
| 658 | Diary entries based on the Hebrew, the Islamic and/or the Bahá'í | 658 | Diary entries based on the Hebrew, the Islamic and/or the Bahá’í |
| 659 | calendar are also possible, but because these are somewhat slow, they | 659 | calendar are also possible, but because these are somewhat slow, they |
| 660 | are ignored unless you set the `diary-nongregorian-listing-hook' and | 660 | are ignored unless you set the `diary-nongregorian-listing-hook' and |
| 661 | the `diary-nongregorian-marking-hook' appropriately. See the | 661 | the `diary-nongregorian-marking-hook' appropriately. See the |
| @@ -690,7 +690,7 @@ details, see the documentation for the variable `diary-list-entries-hook'." | |||
| 690 | :group 'diary) | 690 | :group 'diary) |
| 691 | 691 | ||
| 692 | (defcustom diary-bahai-entry-symbol "B" | 692 | (defcustom diary-bahai-entry-symbol "B" |
| 693 | "Symbol indicating a diary entry according to the Bahá'í calendar." | 693 | "Symbol indicating a diary entry according to the Bahá’í calendar." |
| 694 | :type 'string | 694 | :type 'string |
| 695 | :group 'diary) | 695 | :group 'diary) |
| 696 | 696 | ||
| @@ -1013,9 +1013,9 @@ calendar." | |||
| 1013 | :group 'holidays) | 1013 | :group 'holidays) |
| 1014 | 1014 | ||
| 1015 | (defcustom calendar-bahai-all-holidays-flag nil | 1015 | (defcustom calendar-bahai-all-holidays-flag nil |
| 1016 | "If nil, show only major holidays from the Bahá'í calendar. | 1016 | "If nil, show only major holidays from the Bahá’í calendar. |
| 1017 | These are the days on which work and school must be suspended. | 1017 | These are the days on which work and school must be suspended. |
| 1018 | Otherwise, show all the holidays that would appear in a complete Bahá'í | 1018 | Otherwise, show all the holidays that would appear in a complete Bahá’í |
| 1019 | calendar." | 1019 | calendar." |
| 1020 | :type 'boolean | 1020 | :type 'boolean |
| 1021 | :group 'holidays) | 1021 | :group 'holidays) |
| @@ -1708,13 +1708,13 @@ remaining in the year, and the ISO week/year numbers: | |||
| 1708 | 1708 | ||
| 1709 | (list | 1709 | (list |
| 1710 | \"\" | 1710 | \"\" |
| 1711 | '(calendar-hebrew-date-string date) | 1711 | \\='(calendar-hebrew-date-string date) |
| 1712 | '(let* ((year (calendar-extract-year date)) | 1712 | \\='(let* ((year (calendar-extract-year date)) |
| 1713 | (d (calendar-day-number date)) | 1713 | (d (calendar-day-number date)) |
| 1714 | (days-remaining | 1714 | (days-remaining |
| 1715 | (- (calendar-day-number (list 12 31 year)) d))) | 1715 | (- (calendar-day-number (list 12 31 year)) d))) |
| 1716 | (format \"%d/%d\" d days-remaining)) | 1716 | (format \"%d/%d\" d days-remaining)) |
| 1717 | '(let* ((d (calendar-absolute-from-gregorian date)) | 1717 | \\='(let* ((d (calendar-absolute-from-gregorian date)) |
| 1718 | (iso-date (calendar-iso-from-absolute d))) | 1718 | (iso-date (calendar-iso-from-absolute d))) |
| 1719 | (format \"ISO week %d of %d\" | 1719 | (format \"ISO week %d of %d\" |
| 1720 | (calendar-extract-month iso-date) | 1720 | (calendar-extract-month iso-date) |
| @@ -2571,7 +2571,7 @@ DATE is (month day year). Calendars that do not apply are omitted." | |||
| 2571 | (unless (string-equal | 2571 | (unless (string-equal |
| 2572 | (setq odate (calendar-bahai-date-string date)) | 2572 | (setq odate (calendar-bahai-date-string date)) |
| 2573 | "") | 2573 | "") |
| 2574 | (format "Bahá'í date: %s" odate)) | 2574 | (format "Bahá’í date: %s" odate)) |
| 2575 | (format "Chinese date: %s" | 2575 | (format "Chinese date: %s" |
| 2576 | (calendar-chinese-date-string date)) | 2576 | (calendar-chinese-date-string date)) |
| 2577 | (unless (string-equal | 2577 | (unless (string-equal |
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index b21fc687144..be542d6a155 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -300,7 +300,7 @@ expressions that can involve the keywords `days' (a number), `date' | |||
| 300 | 300 | ||
| 301 | (defcustom diary-abbreviated-year-flag t | 301 | (defcustom diary-abbreviated-year-flag t |
| 302 | "Interpret a two-digit year DD in a diary entry as either 19DD or 20DD. | 302 | "Interpret a two-digit year DD in a diary entry as either 19DD or 20DD. |
| 303 | This applies to the Gregorian, Hebrew, Islamic, and Bahá'í calendars. | 303 | This applies to the Gregorian, Hebrew, Islamic, and Bahá’í calendars. |
| 304 | When the current century is added to a two-digit year, if the result | 304 | When the current century is added to a two-digit year, if the result |
| 305 | is more than 50 years in the future, the previous century is assumed. | 305 | is more than 50 years in the future, the previous century is assumed. |
| 306 | If the result is more than 50 years in the past, the next century is assumed. | 306 | If the result is more than 50 years in the past, the next century is assumed. |
| @@ -1531,7 +1531,7 @@ passed to `calendar-mark-visible-date' as MARK." | |||
| 1531 | (calendar-mark-month m y month day year color) | 1531 | (calendar-mark-month m y month day year color) |
| 1532 | (calendar-increment-month m y 1))))) | 1532 | (calendar-increment-month m y 1))))) |
| 1533 | 1533 | ||
| 1534 | ;; Bahai, Hebrew, Islamic. | 1534 | ;; Bahá’í, Hebrew, Islamic. |
| 1535 | (defun calendar-mark-complex (month day year fromabs &optional color) | 1535 | (defun calendar-mark-complex (month day year fromabs &optional color) |
| 1536 | "Mark dates in the calendar conforming to MONTH DAY YEAR of some system. | 1536 | "Mark dates in the calendar conforming to MONTH DAY YEAR of some system. |
| 1537 | The function FROMABS converts absolute dates to the appropriate date system. | 1537 | The function FROMABS converts absolute dates to the appropriate date system. |
| @@ -1561,7 +1561,7 @@ Optional argument COLOR is passed to `calendar-mark-visible-date' as MARK." | |||
| 1561 | (calendar-mark-visible-date | 1561 | (calendar-mark-visible-date |
| 1562 | (calendar-gregorian-from-absolute date) color))))) | 1562 | (calendar-gregorian-from-absolute date) color))))) |
| 1563 | 1563 | ||
| 1564 | ;; Bahai, Islamic. | 1564 | ;; Bahá’í, Islamic. |
| 1565 | (defun calendar-mark-1 (month day year fromabs toabs &optional color) | 1565 | (defun calendar-mark-1 (month day year fromabs toabs &optional color) |
| 1566 | "Mark dates in the calendar conforming to MONTH DAY YEAR of some system. | 1566 | "Mark dates in the calendar conforming to MONTH DAY YEAR of some system. |
| 1567 | The function FROMABS converts absolute dates to the appropriate date system. | 1567 | The function FROMABS converts absolute dates to the appropriate date system. |
| @@ -1659,8 +1659,8 @@ on a weekend: | |||
| 1659 | &%%(let ((dayname (calendar-day-of-week date)) | 1659 | &%%(let ((dayname (calendar-day-of-week date)) |
| 1660 | (day (calendar-extract-day date))) | 1660 | (day (calendar-extract-day date))) |
| 1661 | (or | 1661 | (or |
| 1662 | (and (= day 21) (memq dayname '(1 2 3 4 5))) | 1662 | (and (= day 21) (memq dayname \\='(1 2 3 4 5))) |
| 1663 | (and (memq day '(19 20)) (= dayname 5))) | 1663 | (and (memq day \\='(19 20)) (= dayname 5))) |
| 1664 | ) UIUC pay checks deposited | 1664 | ) UIUC pay checks deposited |
| 1665 | 1665 | ||
| 1666 | A number of built-in functions are available for this type of | 1666 | A number of built-in functions are available for this type of |
diff --git a/lisp/calendar/holidays.el b/lisp/calendar/holidays.el index d282d74392a..bd3a558dc2c 100644 --- a/lisp/calendar/holidays.el +++ b/lisp/calendar/holidays.el | |||
| @@ -173,15 +173,15 @@ See the documentation for `calendar-holidays' for details." | |||
| 173 | '((holiday-bahai-new-year) | 173 | '((holiday-bahai-new-year) |
| 174 | (holiday-bahai-ridvan) ; respects calendar-bahai-all-holidays-flag | 174 | (holiday-bahai-ridvan) ; respects calendar-bahai-all-holidays-flag |
| 175 | (holiday-fixed 5 23 "Declaration of the Báb") | 175 | (holiday-fixed 5 23 "Declaration of the Báb") |
| 176 | (holiday-fixed 5 29 "Ascension of Bahá'u'lláh") | 176 | (holiday-fixed 5 29 "Ascension of Bahá’u’lláh") |
| 177 | (holiday-fixed 7 9 "Martyrdom of the Báb") | 177 | (holiday-fixed 7 9 "Martyrdom of the Báb") |
| 178 | (holiday-fixed 10 20 "Birth of the Báb") | 178 | (holiday-fixed 10 20 "Birth of the Báb") |
| 179 | (holiday-fixed 11 12 "Birth of Bahá'u'lláh") | 179 | (holiday-fixed 11 12 "Birth of Bahá’u’lláh") |
| 180 | (if calendar-bahai-all-holidays-flag | 180 | (if calendar-bahai-all-holidays-flag |
| 181 | (append | 181 | (append |
| 182 | (holiday-fixed 11 26 "Day of the Covenant") | 182 | (holiday-fixed 11 26 "Day of the Covenant") |
| 183 | (holiday-fixed 11 28 "Ascension of `Abdu'l-Bahá"))))) | 183 | (holiday-fixed 11 28 "Ascension of `Abdu’l-Bahá"))))) |
| 184 | "Bahá'í holidays. | 184 | "Bahá’í holidays. |
| 185 | See the documentation for `calendar-holidays' for details." | 185 | See the documentation for `calendar-holidays' for details." |
| 186 | :type 'sexp | 186 | :type 'sexp |
| 187 | :group 'holidays) | 187 | :group 'holidays) |
| @@ -254,7 +254,7 @@ Several basic functions are provided for this purpose: | |||
| 254 | K>0, and MONTH's last day otherwise. | 254 | K>0, and MONTH's last day otherwise. |
| 255 | (holiday-hebrew MONTH DAY STRING) a fixed date on the Hebrew calendar | 255 | (holiday-hebrew MONTH DAY STRING) a fixed date on the Hebrew calendar |
| 256 | (holiday-islamic MONTH DAY STRING) a fixed date on the Islamic calendar | 256 | (holiday-islamic MONTH DAY STRING) a fixed date on the Islamic calendar |
| 257 | (holiday-bahai MONTH DAY STRING) a fixed date on the Bahá'í calendar | 257 | (holiday-bahai MONTH DAY STRING) a fixed date on the Bahá’í calendar |
| 258 | (holiday-julian MONTH DAY STRING) a fixed date on the Julian calendar | 258 | (holiday-julian MONTH DAY STRING) a fixed date on the Julian calendar |
| 259 | (holiday-sexp SEXP STRING) SEXP is a Gregorian-date-valued expression | 259 | (holiday-sexp SEXP STRING) SEXP is a Gregorian-date-valued expression |
| 260 | in the variable `year'; if it evaluates to | 260 | in the variable `year'; if it evaluates to |
| @@ -282,11 +282,11 @@ To add the Islamic feast celebrating Mohammed's birthday, use | |||
| 282 | (holiday-islamic 3 12 \"Mohammed's Birthday\") | 282 | (holiday-islamic 3 12 \"Mohammed's Birthday\") |
| 283 | 283 | ||
| 284 | since the Islamic months are numbered from 1 starting with Muharram. | 284 | since the Islamic months are numbered from 1 starting with Muharram. |
| 285 | To add an entry for the Bahá'í festival of Ridvan, use | 285 | To add an entry for the Bahá’í festival of Ridvan, use |
| 286 | 286 | ||
| 287 | (holiday-bahai 2 13 \"Festival of Ridvan\") | 287 | (holiday-bahai 2 13 \"Festival of Ridvan\") |
| 288 | 288 | ||
| 289 | since the Bahá'í months are numbered from 1 starting with Bahá. | 289 | since the Bahá’í months are numbered from 1 starting with Bahá. |
| 290 | To add Thomas Jefferson's birthday, April 2, 1743 (Julian), use | 290 | To add Thomas Jefferson's birthday, April 2, 1743 (Julian), use |
| 291 | 291 | ||
| 292 | (holiday-julian 4 2 \"Jefferson's Birthday\") | 292 | (holiday-julian 4 2 \"Jefferson's Birthday\") |
| @@ -296,7 +296,7 @@ example, to include American presidential elections, which occur on the first | |||
| 296 | Tuesday after the first Monday in November of years divisible by 4, add | 296 | Tuesday after the first Monday in November of years divisible by 4, add |
| 297 | 297 | ||
| 298 | (holiday-sexp | 298 | (holiday-sexp |
| 299 | '(if (zerop (% year 4)) | 299 | \\='(if (zerop (% year 4)) |
| 300 | (calendar-gregorian-from-absolute | 300 | (calendar-gregorian-from-absolute |
| 301 | (1+ (calendar-dayname-on-or-before | 301 | (1+ (calendar-dayname-on-or-before |
| 302 | 1 (+ 6 (calendar-absolute-from-gregorian | 302 | 1 (+ 6 (calendar-absolute-from-gregorian |
| @@ -460,7 +460,7 @@ The optional LABEL is used to label the buffer created." | |||
| 460 | (if holiday-islamic-holidays | 460 | (if holiday-islamic-holidays |
| 461 | (cons "Islamic" holiday-islamic-holidays)) | 461 | (cons "Islamic" holiday-islamic-holidays)) |
| 462 | (if holiday-bahai-holidays | 462 | (if holiday-bahai-holidays |
| 463 | (cons "Bahá'í" holiday-bahai-holidays)) | 463 | (cons "Bahá’í" holiday-bahai-holidays)) |
| 464 | (if holiday-oriental-holidays | 464 | (if holiday-oriental-holidays |
| 465 | (cons "Oriental" holiday-oriental-holidays)) | 465 | (cons "Oriental" holiday-oriental-holidays)) |
| 466 | (if holiday-solar-holidays | 466 | (if holiday-solar-holidays |