diff options
| author | Katsumi Yamaoka | 2010-09-29 01:09:50 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-29 01:09:50 +0000 |
| commit | 0c43b6f8d5d1458b51dc144efca682c811ebfc44 (patch) | |
| tree | c457f4d674ce6623bfbf5134e986afab162dc39d | |
| parent | a6f3211f1090a904aaa81c388fbae7b560794432 (diff) | |
| download | emacs-0c43b6f8d5d1458b51dc144efca682c811ebfc44.tar.gz emacs-0c43b6f8d5d1458b51dc144efca682c811ebfc44.zip | |
Remove Emacs 21 stuff.
mm-util.el (mm-codepage-iso-8859-list, mm-charset-eval-alist, mm-mime-charset): Comment fix.
rfc2047.el (rfc2047-syntax-table): Comment fix.
utf7.el (utf7-utf-16-coding-system): Comment fix.
nnrss.el (nnrss-read-server-data, nnrss-read-group-data): Use `load' rather than `insert-file-contents' and `eval-region'.
pgg.el (pgg-run-at-time-1): Define it for XEmacs only; fix if/else construction.
time-date.el: No need to require cl for Emacs 21.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/calendar/time-date.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/gnus/mm-util.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/nnrss.el | 14 | ||||
| -rw-r--r-- | lisp/gnus/rfc2047.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/utf7.el | 2 | ||||
| -rw-r--r-- | lisp/pgg.el | 66 |
8 files changed, 57 insertions, 57 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0ffce6e1335..e3703ebaba1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-09-29 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * pgg.el (pgg-run-at-time-1): Define it for XEmacs only; fix if/else | ||
| 4 | construction. | ||
| 5 | |||
| 6 | * calendar/time-date.el: No need to require cl for Emacs 21. | ||
| 7 | |||
| 1 | 2010-09-28 Glenn Morris <rgm@gnu.org> | 8 | 2010-09-28 Glenn Morris <rgm@gnu.org> |
| 2 | 9 | ||
| 3 | * calendar/appt.el (appt-check): Minor simplification. | 10 | * calendar/appt.el (appt-check): Minor simplification. |
diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el index 0c435714306..84fc465f984 100644 --- a/lisp/calendar/time-date.el +++ b/lisp/calendar/time-date.el | |||
| @@ -39,9 +39,6 @@ | |||
| 39 | 39 | ||
| 40 | ;;; Code: | 40 | ;;; Code: |
| 41 | 41 | ||
| 42 | ;; Only necessary for `declare' when compiling Gnus with Emacs 21. | ||
| 43 | (eval-when-compile (require 'cl)) | ||
| 44 | |||
| 45 | (defmacro with-decoded-time-value (varlist &rest body) | 42 | (defmacro with-decoded-time-value (varlist &rest body) |
| 46 | "Decode a time value and bind it according to VARLIST, then eval BODY. | 43 | "Decode a time value and bind it according to VARLIST, then eval BODY. |
| 47 | 44 | ||
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 0be5caee803..6c96a4fa8b9 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2010-09-29 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * mm-util.el (mm-codepage-iso-8859-list, mm-charset-eval-alist) | ||
| 4 | (mm-mime-charset) | ||
| 5 | * rfc2047.el (rfc2047-syntax-table) | ||
| 6 | * utf7.el (utf7-utf-16-coding-system): Comment fix. | ||
| 7 | |||
| 8 | * nnrss.el (nnrss-read-server-data, nnrss-read-group-data): Use `load' | ||
| 9 | rather than `insert-file-contents' and `eval-region'. | ||
| 10 | |||
| 1 | 2010-09-28 Katsumi Yamaoka <yamaoka@jpl.org> | 11 | 2010-09-28 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 12 | ||
| 3 | * mail-source.el (mail-source-report-new-mail) | 13 | * mail-source.el (mail-source-report-new-mail) |
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el index 7f0d3388e04..c997a36a1bd 100644 --- a/lisp/gnus/mm-util.el +++ b/lisp/gnus/mm-util.el | |||
| @@ -383,8 +383,7 @@ See `mm-codepage-iso-8859-list' and `mm-codepage-ibm-list'.") | |||
| 383 | (defcustom mm-codepage-iso-8859-list | 383 | (defcustom mm-codepage-iso-8859-list |
| 384 | (list 1250 ;; Windows-1250 is a variant of Latin-2 heavily used by Microsoft | 384 | (list 1250 ;; Windows-1250 is a variant of Latin-2 heavily used by Microsoft |
| 385 | ;; Outlook users in Czech republic. Use this to allow reading of | 385 | ;; Outlook users in Czech republic. Use this to allow reading of |
| 386 | ;; their e-mails. cp1250 should be defined by M-x codepage-setup | 386 | ;; their e-mails. |
| 387 | ;; (Emacs 21). | ||
| 388 | '(1252 . 1) ;; Windows-1252 is a superset of iso-8859-1 (West | 387 | '(1252 . 1) ;; Windows-1252 is a superset of iso-8859-1 (West |
| 389 | ;; Europe). See also `gnus-article-dumbquotes-map'. | 388 | ;; Europe). See also `gnus-article-dumbquotes-map'. |
| 390 | '(1254 . 9) ;; Windows-1254 is a superset of iso-8859-9 (Turkish). | 389 | '(1254 . 9) ;; Windows-1254 is a superset of iso-8859-9 (Turkish). |
| @@ -494,8 +493,8 @@ Unless LIST is given, `mm-codepage-ibm-list' is used." | |||
| 494 | (defcustom mm-charset-eval-alist | 493 | (defcustom mm-charset-eval-alist |
| 495 | (if (featurep 'xemacs) | 494 | (if (featurep 'xemacs) |
| 496 | nil ;; I don't know what would be useful for XEmacs. | 495 | nil ;; I don't know what would be useful for XEmacs. |
| 497 | '(;; Emacs 21 offers 1250 1251 1253 1257. Emacs 22 provides autoloads for | 496 | '(;; Emacs 22 provides autoloads for 1250-1258 |
| 498 | ;; 1250-1258 (i.e. `mm-codepage-setup' does nothing). | 497 | ;; (i.e. `mm-codepage-setup' does nothing). |
| 499 | (windows-1250 . (mm-codepage-setup 1250 t)) | 498 | (windows-1250 . (mm-codepage-setup 1250 t)) |
| 500 | (windows-1251 . (mm-codepage-setup 1251 t)) | 499 | (windows-1251 . (mm-codepage-setup 1251 t)) |
| 501 | (windows-1253 . (mm-codepage-setup 1253 t)) | 500 | (windows-1253 . (mm-codepage-setup 1253 t)) |
| @@ -966,7 +965,6 @@ If the charset is `composition', return the actual one." | |||
| 966 | (if (eq charset 'unknown) | 965 | (if (eq charset 'unknown) |
| 967 | (error "The message contains non-printable characters, please use attachment")) | 966 | (error "The message contains non-printable characters, please use attachment")) |
| 968 | (if (and (fboundp 'coding-system-get) (fboundp 'get-charset-property)) | 967 | (if (and (fboundp 'coding-system-get) (fboundp 'get-charset-property)) |
| 969 | ;; This exists in Emacs 20. | ||
| 970 | (or | 968 | (or |
| 971 | (and (mm-preferred-coding-system charset) | 969 | (and (mm-preferred-coding-system charset) |
| 972 | (or (coding-system-get | 970 | (or (coding-system-get |
diff --git a/lisp/gnus/nnrss.el b/lisp/gnus/nnrss.el index 379fee2eb8f..aa3b79a1022 100644 --- a/lisp/gnus/nnrss.el +++ b/lisp/gnus/nnrss.el | |||
| @@ -561,12 +561,7 @@ which RSS 2.0 allows." | |||
| 561 | (let ((file (nnrss-make-filename "nnrss" server)) | 561 | (let ((file (nnrss-make-filename "nnrss" server)) |
| 562 | (file-name-coding-system nnmail-pathname-coding-system)) | 562 | (file-name-coding-system nnmail-pathname-coding-system)) |
| 563 | (when (file-exists-p file) | 563 | (when (file-exists-p file) |
| 564 | ;; In Emacs 21.3 and earlier, `load' doesn't support non-ASCII | 564 | (load file nil t t)))) |
| 565 | ;; file names. So, we use `insert-file-contents' instead. | ||
| 566 | (mm-with-multibyte-buffer | ||
| 567 | (let ((coding-system-for-read nnrss-file-coding-system)) | ||
| 568 | (insert-file-contents file) | ||
| 569 | (eval-region (point-min) (point-max))))))) | ||
| 570 | 565 | ||
| 571 | (defun nnrss-save-server-data (server) | 566 | (defun nnrss-save-server-data (server) |
| 572 | (gnus-make-directory nnrss-directory) | 567 | (gnus-make-directory nnrss-directory) |
| @@ -590,12 +585,7 @@ which RSS 2.0 allows." | |||
| 590 | (let ((file (nnrss-make-filename group server)) | 585 | (let ((file (nnrss-make-filename group server)) |
| 591 | (file-name-coding-system nnmail-pathname-coding-system)) | 586 | (file-name-coding-system nnmail-pathname-coding-system)) |
| 592 | (when (file-exists-p file) | 587 | (when (file-exists-p file) |
| 593 | ;; In Emacs 21.3 and earlier, `load' doesn't support non-ASCII | 588 | (load file nil t t) |
| 594 | ;; file names. So, we use `insert-file-contents' instead. | ||
| 595 | (mm-with-multibyte-buffer | ||
| 596 | (let ((coding-system-for-read nnrss-file-coding-system)) | ||
| 597 | (insert-file-contents file) | ||
| 598 | (eval-region (point-min) (point-max)))) | ||
| 599 | (dolist (e nnrss-group-data) | 589 | (dolist (e nnrss-group-data) |
| 600 | (puthash (nth 9 e) t nnrss-group-hashtb) | 590 | (puthash (nth 9 e) t nnrss-group-hashtb) |
| 601 | (when (and (car e) (> nnrss-group-min (car e))) | 591 | (when (and (car e) (> nnrss-group-min (car e))) |
diff --git a/lisp/gnus/rfc2047.el b/lisp/gnus/rfc2047.el index 4fd1086ace0..8a7153969a5 100644 --- a/lisp/gnus/rfc2047.el +++ b/lisp/gnus/rfc2047.el | |||
| @@ -342,8 +342,8 @@ The buffer may be narrowed." | |||
| 342 | (defconst rfc2047-syntax-table | 342 | (defconst rfc2047-syntax-table |
| 343 | ;; (make-char-table 'syntax-table '(2)) only works in Emacs. | 343 | ;; (make-char-table 'syntax-table '(2)) only works in Emacs. |
| 344 | (let ((table (make-syntax-table))) | 344 | (let ((table (make-syntax-table))) |
| 345 | ;; The following is done to work for setting all elements of the table | 345 | ;; The following is done to work for setting all elements of the table; |
| 346 | ;; in Emacs 21-23 and XEmacs; it appears to be the cleanest way. | 346 | ;; it appears to be the cleanest way. |
| 347 | ;; Play safe and don't assume the form of the word syntax entry -- | 347 | ;; Play safe and don't assume the form of the word syntax entry -- |
| 348 | ;; copy it from ?a. | 348 | ;; copy it from ?a. |
| 349 | (if (fboundp 'set-char-table-range) ; Emacs | 349 | (if (fboundp 'set-char-table-range) ; Emacs |
diff --git a/lisp/gnus/utf7.el b/lisp/gnus/utf7.el index 74bd092a3dd..47c3b0f4c5d 100644 --- a/lisp/gnus/utf7.el +++ b/lisp/gnus/utf7.el | |||
| @@ -78,7 +78,7 @@ | |||
| 78 | (defconst utf7-utf-16-coding-system | 78 | (defconst utf7-utf-16-coding-system |
| 79 | (cond ((mm-coding-system-p 'utf-16-be-no-signature) ; Mule-UCS | 79 | (cond ((mm-coding-system-p 'utf-16-be-no-signature) ; Mule-UCS |
| 80 | 'utf-16-be-no-signature) | 80 | 'utf-16-be-no-signature) |
| 81 | ((and (mm-coding-system-p 'utf-16-be) ; Emacs 21.3, Emacs 22 | 81 | ((and (mm-coding-system-p 'utf-16-be) ; Emacs |
| 82 | ;; Avoid versions with BOM. | 82 | ;; Avoid versions with BOM. |
| 83 | (= 2 (length (encode-coding-string "a" 'utf-16-be)))) | 83 | (= 2 (length (encode-coding-string "a" 'utf-16-be)))) |
| 84 | 'utf-16-be) | 84 | 'utf-16-be) |
diff --git a/lisp/pgg.el b/lisp/pgg.el index 8827424ce34..de227394f29 100644 --- a/lisp/pgg.el +++ b/lisp/pgg.el | |||
| @@ -43,10 +43,8 @@ | |||
| 43 | ;;; | 43 | ;;; |
| 44 | 44 | ||
| 45 | (eval-when-compile | 45 | (eval-when-compile |
| 46 | ;; Define it as a null macro for Emacs in order to suppress a byte | 46 | (when (featurep 'xemacs) |
| 47 | ;; compile warning that Emacs 21 issues. | 47 | (defmacro pgg-run-at-time-1 (time repeat function args) |
| 48 | (defmacro pgg-run-at-time-1 (time repeat function args) | ||
| 49 | (when (featurep 'xemacs) | ||
| 50 | (if (condition-case nil | 48 | (if (condition-case nil |
| 51 | (let ((delete-itimer 'delete-itimer) | 49 | (let ((delete-itimer 'delete-itimer) |
| 52 | (itimer-driver-start 'itimer-driver-start) | 50 | (itimer-driver-start 'itimer-driver-start) |
| @@ -75,36 +73,36 @@ | |||
| 75 | `(let ((time ,time)) | 73 | `(let ((time ,time)) |
| 76 | (apply #'start-itimer "pgg-run-at-time" | 74 | (apply #'start-itimer "pgg-run-at-time" |
| 77 | ,function (if time (max time 1e-9) 1e-9) | 75 | ,function (if time (max time 1e-9) 1e-9) |
| 78 | ,repeat nil t ,args))) | 76 | ,repeat nil t ,args)) |
| 79 | `(let ((time ,time) | 77 | `(let ((time ,time) |
| 80 | (itimers (list nil))) | 78 | (itimers (list nil))) |
| 81 | (setcar | 79 | (setcar |
| 82 | itimers | 80 | itimers |
| 83 | (apply #'start-itimer "pgg-run-at-time" | 81 | (apply #'start-itimer "pgg-run-at-time" |
| 84 | (lambda (itimers repeat function &rest args) | 82 | (lambda (itimers repeat function &rest args) |
| 85 | (let ((itimer (car itimers))) | 83 | (let ((itimer (car itimers))) |
| 86 | (if repeat | 84 | (if repeat |
| 87 | (progn | 85 | (progn |
| 88 | (set-itimer-function | 86 | (set-itimer-function |
| 89 | itimer | 87 | itimer |
| 90 | (lambda (itimer repeat function &rest args) | 88 | (lambda (itimer repeat function &rest args) |
| 91 | (set-itimer-restart itimer repeat) | 89 | (set-itimer-restart itimer repeat) |
| 92 | (set-itimer-function itimer function) | 90 | (set-itimer-function itimer function) |
| 93 | (set-itimer-function-arguments itimer args) | 91 | (set-itimer-function-arguments itimer args) |
| 94 | (apply function args))) | 92 | (apply function args))) |
| 95 | (set-itimer-function-arguments | 93 | (set-itimer-function-arguments |
| 96 | itimer | 94 | itimer |
| 97 | (append (list itimer repeat function) args))) | 95 | (append (list itimer repeat function) args))) |
| 98 | (set-itimer-function | 96 | (set-itimer-function |
| 99 | itimer | 97 | itimer |
| 100 | (lambda (itimer function &rest args) | 98 | (lambda (itimer function &rest args) |
| 101 | (delete-itimer itimer) | 99 | (delete-itimer itimer) |
| 102 | (apply function args))) | 100 | (apply function args))) |
| 103 | (set-itimer-function-arguments | 101 | (set-itimer-function-arguments |
| 104 | itimer | 102 | itimer |
| 105 | (append (list itimer function) args))))) | 103 | (append (list itimer function) args))))) |
| 106 | 1e-9 (if time (max time 1e-9) 1e-9) | 104 | 1e-9 (if time (max time 1e-9) 1e-9) |
| 107 | nil t itimers ,repeat ,function ,args)))))) | 105 | nil t itimers ,repeat ,function ,args))))))) |
| 108 | 106 | ||
| 109 | (eval-and-compile | 107 | (eval-and-compile |
| 110 | (if (featurep 'xemacs) | 108 | (if (featurep 'xemacs) |