diff options
| author | Paul Eggert | 2017-05-03 18:21:20 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-05-03 18:23:17 -0700 |
| commit | 250d24fa7333046fb187cf4f544dc4358f16e2df (patch) | |
| tree | d11ecab41924c46da95722b8b4cf144e82d98cb8 | |
| parent | 5c1631b9e9e6a6429e14810a3309f56bb901853d (diff) | |
| download | emacs-250d24fa7333046fb187cf4f544dc4358f16e2df.tar.gz emacs-250d24fa7333046fb187cf4f544dc4358f16e2df.zip | |
Spelling fixes
* lisp/gnus/nndiary.el (nndiary-last-occurrence):
Rename from nndiary-last-occurence.
(nndiary-next-occurrence):
Rename from nndiary-next-occurence. All uses changed.
| -rw-r--r-- | doc/lispref/processes.texi | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-diary.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/nndiary.el | 22 |
4 files changed, 18 insertions, 16 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index 1d200ce1362..292d55d50c5 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi | |||
| @@ -690,7 +690,7 @@ information, is available via the @code{process-contact} function. | |||
| 690 | The current working directory of the subprocess is set to the current | 690 | The current working directory of the subprocess is set to the current |
| 691 | buffer's value of @code{default-directory} if that is local (as | 691 | buffer's value of @code{default-directory} if that is local (as |
| 692 | determined by `unhandled-file-name-directory'), or "~" otherwise. If | 692 | determined by `unhandled-file-name-directory'), or "~" otherwise. If |
| 693 | you want to run a process in a remote direcotry use | 693 | you want to run a process in a remote directory use |
| 694 | @code{start-file-process}. | 694 | @code{start-file-process}. |
| 695 | @end defun | 695 | @end defun |
| 696 | 696 | ||
diff --git a/lisp/gnus/gnus-diary.el b/lisp/gnus/gnus-diary.el index 99d3a2b38ee..b81c6d08f5e 100644 --- a/lisp/gnus/gnus-diary.el +++ b/lisp/gnus/gnus-diary.el | |||
| @@ -159,7 +159,7 @@ There are currently two built-in format functions: | |||
| 159 | ;; Code partly stolen from article-make-date-line | 159 | ;; Code partly stolen from article-make-date-line |
| 160 | (let* ((extras (mail-header-extra header)) | 160 | (let* ((extras (mail-header-extra header)) |
| 161 | (sched (gnus-diary-header-schedule extras)) | 161 | (sched (gnus-diary-header-schedule extras)) |
| 162 | (occur (nndiary-next-occurence sched (current-time))) | 162 | (occur (nndiary-next-occurrence sched (current-time))) |
| 163 | (now (current-time)) | 163 | (now (current-time)) |
| 164 | (real-time (time-subtract occur now))) | 164 | (real-time (time-subtract occur now))) |
| 165 | (if (null real-time) | 165 | (if (null real-time) |
| @@ -194,7 +194,7 @@ There are currently two built-in format functions: | |||
| 194 | ;; Returns a formatted time string for the next occurrence of this message. | 194 | ;; Returns a formatted time string for the next occurrence of this message. |
| 195 | (let* ((extras (mail-header-extra header)) | 195 | (let* ((extras (mail-header-extra header)) |
| 196 | (sched (gnus-diary-header-schedule extras)) | 196 | (sched (gnus-diary-header-schedule extras)) |
| 197 | (occur (nndiary-next-occurence sched (current-time)))) | 197 | (occur (nndiary-next-occurrence sched (current-time)))) |
| 198 | (format-time-string gnus-diary-time-format occur))) | 198 | (format-time-string gnus-diary-time-format occur))) |
| 199 | 199 | ||
| 200 | 200 | ||
| @@ -206,8 +206,8 @@ There are currently two built-in format functions: | |||
| 206 | (e2 (mail-header-extra h2)) | 206 | (e2 (mail-header-extra h2)) |
| 207 | (s1 (gnus-diary-header-schedule e1)) | 207 | (s1 (gnus-diary-header-schedule e1)) |
| 208 | (s2 (gnus-diary-header-schedule e2)) | 208 | (s2 (gnus-diary-header-schedule e2)) |
| 209 | (o1 (nndiary-next-occurence s1 now)) | 209 | (o1 (nndiary-next-occurrence s1 now)) |
| 210 | (o2 (nndiary-next-occurence s2 now))) | 210 | (o2 (nndiary-next-occurrence s2 now))) |
| 211 | (if (and (= (car o1) (car o2)) (= (cadr o1) (cadr o2))) | 211 | (if (and (= (car o1) (car o2)) (= (cadr o1) (cadr o2))) |
| 212 | (< (mail-header-number h1) (mail-header-number h2)) | 212 | (< (mail-header-number h1) (mail-header-number h2)) |
| 213 | (time-less-p o1 o2)))) | 213 | (time-less-p o1 o2)))) |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 183cd46fa45..9bdd0c66f56 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -8600,7 +8600,7 @@ these articles." | |||
| 8600 | ;; subject, while the second pop gets us back to the state | 8600 | ;; subject, while the second pop gets us back to the state |
| 8601 | ;; before we started to deal with the thread. presumably we want | 8601 | ;; before we started to deal with the thread. presumably we want |
| 8602 | ;; to think of the thread and its associated subject matches as | 8602 | ;; to think of the thread and its associated subject matches as |
| 8603 | ;; a single thing so that we onnly need to pop once to get back | 8603 | ;; a single thing so that we need to pop only once to get back |
| 8604 | ;; to the original view. | 8604 | ;; to the original view. |
| 8605 | (pop gnus-newsgroup-limits) | 8605 | (pop gnus-newsgroup-limits) |
| 8606 | (gnus-summary-position-point)))) | 8606 | (gnus-summary-position-point)))) |
diff --git a/lisp/gnus/nndiary.el b/lisp/gnus/nndiary.el index bed35b55b3a..0390b5b8d28 100644 --- a/lisp/gnus/nndiary.el +++ b/lisp/gnus/nndiary.el | |||
| @@ -1304,9 +1304,7 @@ all. This may very well take some time.") | |||
| 1304 | res)) | 1304 | res)) |
| 1305 | (sort res 'time-less-p))) | 1305 | (sort res 'time-less-p))) |
| 1306 | 1306 | ||
| 1307 | ;; FIXME: "occurrence" is misspelled in this function name. | 1307 | (defun nndiary-last-occurrence (sched) |
| 1308 | |||
| 1309 | (defun nndiary-last-occurence (sched) | ||
| 1310 | ;; Returns the last occurrence of schedule SCHED as an Emacs time struct, or | 1308 | ;; Returns the last occurrence of schedule SCHED as an Emacs time struct, or |
| 1311 | ;; nil for permanent schedule or errors. | 1309 | ;; nil for permanent schedule or errors. |
| 1312 | (let ((minute (nndiary-max (nth 0 sched))) | 1310 | (let ((minute (nndiary-max (nth 0 sched))) |
| @@ -1385,10 +1383,11 @@ all. This may very well take some time.") | |||
| 1385 | (nnheader-report 'nndiary "Undecidable schedule") | 1383 | (nnheader-report 'nndiary "Undecidable schedule") |
| 1386 | nil)) | 1384 | nil)) |
| 1387 | )))) | 1385 | )))) |
| 1386 | (define-obsolete-function-alias | ||
| 1387 | 'nndiary-last-occurence | ||
| 1388 | 'nndiary-last-occurrence "26.1") | ||
| 1388 | 1389 | ||
| 1389 | ;; FIXME: "occurrence" is misspelled in this function name. | 1390 | (defun nndiary-next-occurrence (sched now) |
| 1390 | |||
| 1391 | (defun nndiary-next-occurence (sched now) | ||
| 1392 | ;; Returns the next occurrence of schedule SCHED, starting from time NOW. | 1391 | ;; Returns the next occurrence of schedule SCHED, starting from time NOW. |
| 1393 | ;; If there's no next occurrence, returns the last one (if any) which is then | 1392 | ;; If there's no next occurrence, returns the last one (if any) which is then |
| 1394 | ;; in the past. | 1393 | ;; in the past. |
| @@ -1517,10 +1516,13 @@ all. This may very well take some time.") | |||
| 1517 | )) | 1516 | )) |
| 1518 | ))) | 1517 | ))) |
| 1519 | )) | 1518 | )) |
| 1520 | (nndiary-last-occurence sched)) | 1519 | (nndiary-last-occurrence sched)) |
| 1521 | ;; else | 1520 | ;; else |
| 1522 | (nndiary-last-occurence sched)) | 1521 | (nndiary-last-occurrence sched)) |
| 1523 | )) | 1522 | )) |
| 1523 | (define-obsolete-function-alias | ||
| 1524 | 'nndiary-next-occurence | ||
| 1525 | 'nndiary-next-occurrence "26.1") | ||
| 1524 | 1526 | ||
| 1525 | (defun nndiary-expired-article-p (file) | 1527 | (defun nndiary-expired-article-p (file) |
| 1526 | (with-temp-buffer | 1528 | (with-temp-buffer |
| @@ -1529,7 +1531,7 @@ all. This may very well take some time.") | |||
| 1529 | ;; An article has expired if its last schedule (if any) is in the | 1531 | ;; An article has expired if its last schedule (if any) is in the |
| 1530 | ;; past. A permanent schedule never expires. | 1532 | ;; past. A permanent schedule never expires. |
| 1531 | (and sched | 1533 | (and sched |
| 1532 | (setq sched (nndiary-last-occurence sched)) | 1534 | (setq sched (nndiary-last-occurrence sched)) |
| 1533 | (time-less-p sched (current-time)))) | 1535 | (time-less-p sched (current-time)))) |
| 1534 | ;; else | 1536 | ;; else |
| 1535 | (nnheader-report 'nndiary "Could not read file %s" file) | 1537 | (nnheader-report 'nndiary "Could not read file %s" file) |
| @@ -1543,7 +1545,7 @@ all. This may very well take some time.") | |||
| 1543 | (sched (nndiary-schedule))) | 1545 | (sched (nndiary-schedule))) |
| 1544 | ;; The article should be re-considered as unread if there's a reminder | 1546 | ;; The article should be re-considered as unread if there's a reminder |
| 1545 | ;; between the group timestamp and the current time. | 1547 | ;; between the group timestamp and the current time. |
| 1546 | (when (and sched (setq sched (nndiary-next-occurence sched now))) | 1548 | (when (and sched (setq sched (nndiary-next-occurrence sched now))) |
| 1547 | (let ((reminders ;; add the next occurrence itself at the end. | 1549 | (let ((reminders ;; add the next occurrence itself at the end. |
| 1548 | (append (nndiary-compute-reminders sched) (list sched)))) | 1550 | (append (nndiary-compute-reminders sched) (list sched)))) |
| 1549 | (while (and reminders (time-less-p (car reminders) timestamp)) | 1551 | (while (and reminders (time-less-p (car reminders) timestamp)) |