diff options
| author | Miles Bader | 2005-10-04 22:51:06 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-10-04 22:51:06 +0000 |
| commit | 8753ddeed0c759c971e74b586cedd0b6ed6d738c (patch) | |
| tree | 82ea61612a85050a6ceda6cabbbcfba5d5a18415 | |
| parent | f88febbb69a15284d79ba460050aa10310676a74 (diff) | |
| download | emacs-8753ddeed0c759c971e74b586cedd0b6ed6d738c.tar.gz emacs-8753ddeed0c759c971e74b586cedd0b6ed6d738c.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-574
Merge from gnus--rel--5.10
2005-10-04 Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/mm-url.el (mm-url-predefined-programs): Add switches for curl.
* lisp/gnus/gnus-util.el (gnus-remove-duplicates): Remove.
* lisp/gnus/nnmail.el (nnmail-article-group): Use mm-delete-duplicates
instead of gnus-remove-duplicates.
* lisp/gnus/message.el (message-remove-duplicates): Remove.
(message-idna-to-ascii-rhs-1): Use mm-delete-duplicates instead of
message-remove-duplicates.
* lisp/gnus/mm-util.el (mm-delete-duplicates): Use `delete-dups' if
available, else use implementation from `delete-dups'.
| -rw-r--r-- | lisp/gnus/ChangeLog | 18 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog.2 | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 10 | ||||
| -rw-r--r-- | lisp/gnus/mm-url.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/mm-util.el | 23 | ||||
| -rw-r--r-- | lisp/gnus/nnmail.el | 2 |
7 files changed, 36 insertions, 29 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 69bfd79b460..d013524a1c8 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,4 +1,20 @@ | |||
| 1 | 2005-09-30 Katsumi Yamaoka <yamaoka@jpl.org> | 1 | 2005-10-04 Reiner Steib <Reiner.Steib@gmx.de> |
| 2 | |||
| 3 | * mm-url.el (mm-url-predefined-programs): Add switches for curl. | ||
| 4 | |||
| 5 | * gnus-util.el (gnus-remove-duplicates): Remove. | ||
| 6 | |||
| 7 | * nnmail.el (nnmail-article-group): Use mm-delete-duplicates | ||
| 8 | instead of gnus-remove-duplicates. | ||
| 9 | |||
| 10 | * message.el (message-remove-duplicates): Remove. | ||
| 11 | (message-idna-to-ascii-rhs-1): Use mm-delete-duplicates instead of | ||
| 12 | message-remove-duplicates. | ||
| 13 | |||
| 14 | * mm-util.el (mm-delete-duplicates): Use `delete-dups' if | ||
| 15 | available, else use implementation from `delete-dups'. | ||
| 16 | |||
| 17 | 2005-10-02 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | 18 | ||
| 3 | * time-date.el: Autoload parse-time-string, XEmacs needs it. | 19 | * time-date.el: Autoload parse-time-string, XEmacs needs it. |
| 4 | 20 | ||
diff --git a/lisp/gnus/ChangeLog.2 b/lisp/gnus/ChangeLog.2 index f39bf525db8..50b978e7e75 100644 --- a/lisp/gnus/ChangeLog.2 +++ b/lisp/gnus/ChangeLog.2 | |||
| @@ -7390,7 +7390,7 @@ | |||
| 7390 | instead of mm-auto-save-coding-system for the draft or delayed | 7390 | instead of mm-auto-save-coding-system for the draft or delayed |
| 7391 | group. | 7391 | group. |
| 7392 | 7392 | ||
| 7393 | 2002-10-28 Josh <huber@alum.wpi.edu> | 7393 | 2002-10-28 Josh Huber <huber@alum.wpi.edu> |
| 7394 | 7394 | ||
| 7395 | * mml.el (mml-mode-map): Fixed keybindings for mml-secure-* | 7395 | * mml.el (mml-mode-map): Fixed keybindings for mml-secure-* |
| 7396 | functions. | 7396 | functions. |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 5556a815d2a..f7fb279f20f 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -1037,14 +1037,6 @@ This function saves the current buffer." | |||
| 1037 | (set-buffer gnus-group-buffer) | 1037 | (set-buffer gnus-group-buffer) |
| 1038 | (eq major-mode 'gnus-group-mode)))) | 1038 | (eq major-mode 'gnus-group-mode)))) |
| 1039 | 1039 | ||
| 1040 | (defun gnus-remove-duplicates (list) | ||
| 1041 | (let (new) | ||
| 1042 | (while list | ||
| 1043 | (or (member (car list) new) | ||
| 1044 | (setq new (cons (car list) new))) | ||
| 1045 | (setq list (cdr list))) | ||
| 1046 | (nreverse new))) | ||
| 1047 | |||
| 1048 | (defun gnus-remove-if (predicate list) | 1040 | (defun gnus-remove-if (predicate list) |
| 1049 | "Return a copy of LIST with all items satisfying PREDICATE removed." | 1041 | "Return a copy of LIST with all items satisfying PREDICATE removed." |
| 1050 | (let (out) | 1042 | (let (out) |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 95a6dbc3b6d..d64d8dbd2bf 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -2027,14 +2027,6 @@ With prefix-argument just set Follow-Up, don't cross-post." | |||
| 2027 | 2027 | ||
| 2028 | ;;; End of functions adopted from `message-utils.el'. | 2028 | ;;; End of functions adopted from `message-utils.el'. |
| 2029 | 2029 | ||
| 2030 | (defun message-remove-duplicates (list) | ||
| 2031 | (let (new) | ||
| 2032 | (while list | ||
| 2033 | (or (member (car list) new) | ||
| 2034 | (setq new (cons (car list) new))) | ||
| 2035 | (setq list (cdr list))) | ||
| 2036 | (nreverse new))) | ||
| 2037 | |||
| 2038 | (defun message-remove-header (header &optional is-regexp first reverse) | 2030 | (defun message-remove-header (header &optional is-regexp first reverse) |
| 2039 | "Remove HEADER in the narrowed buffer. | 2031 | "Remove HEADER in the narrowed buffer. |
| 2040 | If IS-REGEXP, HEADER is a regular expression. | 2032 | If IS-REGEXP, HEADER is a regular expression. |
| @@ -4963,7 +4955,7 @@ subscribed address (and not the additional To and Cc header contents)." | |||
| 4963 | rhs ace address) | 4955 | rhs ace address) |
| 4964 | (when field | 4956 | (when field |
| 4965 | (dolist (rhs | 4957 | (dolist (rhs |
| 4966 | (message-remove-duplicates | 4958 | (mm-delete-duplicates |
| 4967 | (mapcar (lambda (rhs) (or (cadr (split-string rhs "@")) "")) | 4959 | (mapcar (lambda (rhs) (or (cadr (split-string rhs "@")) "")) |
| 4968 | (mapcar 'downcase | 4960 | (mapcar 'downcase |
| 4969 | (mapcar | 4961 | (mapcar |
diff --git a/lisp/gnus/mm-url.el b/lisp/gnus/mm-url.el index 4fd39e477f6..b24f9d4132a 100644 --- a/lisp/gnus/mm-url.el +++ b/lisp/gnus/mm-url.el | |||
| @@ -64,7 +64,7 @@ | |||
| 64 | '((wget "wget" "--user-agent=mm-url" "-q" "-O" "-") | 64 | '((wget "wget" "--user-agent=mm-url" "-q" "-O" "-") |
| 65 | (w3m "w3m" "-dump_source") | 65 | (w3m "w3m" "-dump_source") |
| 66 | (lynx "lynx" "-source") | 66 | (lynx "lynx" "-source") |
| 67 | (curl "curl" "--silent"))) | 67 | (curl "curl" "--silent" "--user-agent mm-url" "--location"))) |
| 68 | 68 | ||
| 69 | (defcustom mm-url-program | 69 | (defcustom mm-url-program |
| 70 | (cond | 70 | (cond |
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el index 339bd0f746a..42ca8e232fd 100644 --- a/lisp/gnus/mm-util.el +++ b/lisp/gnus/mm-util.el | |||
| @@ -568,14 +568,21 @@ If the charset is `composition', return the actual one." | |||
| 568 | ;; This is for XEmacs. | 568 | ;; This is for XEmacs. |
| 569 | (mm-mule-charset-to-mime-charset charset))) | 569 | (mm-mule-charset-to-mime-charset charset))) |
| 570 | 570 | ||
| 571 | (defun mm-delete-duplicates (list) | 571 | (if (fboundp 'delete-dups) |
| 572 | "Simple substitute for CL `delete-duplicates', testing with `equal'." | 572 | (defalias 'mm-delete-duplicates 'delete-dups) |
| 573 | (let (result head) | 573 | (defun mm-delete-duplicates (list) |
| 574 | (while list | 574 | "Destructively remove `equal' duplicates from LIST. |
| 575 | (setq head (car list)) | 575 | Store the result in LIST and return it. LIST must be a proper list. |
| 576 | (setq list (delete head list)) | 576 | Of several `equal' occurrences of an element in LIST, the first |
| 577 | (setq result (cons head result))) | 577 | one is kept. |
| 578 | (nreverse result))) | 578 | |
| 579 | This is a compatibility function for Emacsen without `delete-dups'." | ||
| 580 | ;; Code from `subr.el' in Emacs 22: | ||
| 581 | (let ((tail list)) | ||
| 582 | (while tail | ||
| 583 | (setcdr tail (delete (car tail) (cdr tail))) | ||
| 584 | (setq tail (cdr tail)))) | ||
| 585 | list)) | ||
| 579 | 586 | ||
| 580 | ;; Fixme: This is used in places when it should be testing the | 587 | ;; Fixme: This is used in places when it should be testing the |
| 581 | ;; default multibyteness. See mm-default-multibyte-p. | 588 | ;; default multibyteness. See mm-default-multibyte-p. |
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el index 98563143243..ad913d441b7 100644 --- a/lisp/gnus/nnmail.el +++ b/lisp/gnus/nnmail.el | |||
| @@ -1142,7 +1142,7 @@ FUNC will be called with the group name to determine the article number." | |||
| 1142 | 5 "Error in `nnmail-split-methods'; using `bogus' mail group") | 1142 | 5 "Error in `nnmail-split-methods'; using `bogus' mail group") |
| 1143 | (sit-for 1) | 1143 | (sit-for 1) |
| 1144 | '("bogus"))))) | 1144 | '("bogus"))))) |
| 1145 | (setq split (gnus-remove-duplicates split)) | 1145 | (setq split (mm-delete-duplicates split)) |
| 1146 | ;; The article may be "cross-posted" to `junk'. What | 1146 | ;; The article may be "cross-posted" to `junk'. What |
| 1147 | ;; to do? Just remove the `junk' spec. Don't really | 1147 | ;; to do? Just remove the `junk' spec. Don't really |
| 1148 | ;; see anything else to do... | 1148 | ;; see anything else to do... |