diff options
| author | Miles Bader | 2004-09-29 06:35:14 +0000 |
|---|---|---|
| committer | Miles Bader | 2004-09-29 06:35:14 +0000 |
| commit | c1d7d28589c020b2b72d795638e100eda852d6aa (patch) | |
| tree | eea73090996311ff671fa5b88c792d0088f33a59 | |
| parent | a12c6dcaf2c99009c4f44423af5138961a194e23 (diff) | |
| download | emacs-c1d7d28589c020b2b72d795638e100eda852d6aa.tar.gz emacs-c1d7d28589c020b2b72d795638e100eda852d6aa.zip | |
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-580
Merge from gnus--rel--5.10
Patches applied:
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-37
Update from CVS
| -rw-r--r-- | lisp/gnus/ChangeLog | 22 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-diary.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-fun.el | 7 | ||||
| -rw-r--r-- | lisp/gnus/gnus-picon.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus.el | 32 | ||||
| -rw-r--r-- | lisp/gnus/mml-sec.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/mml-smime.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/nnfolder.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/nnml.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/spam.el | 6 |
11 files changed, 41 insertions, 42 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index d0023ce9aa5..3cdda661e86 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,25 @@ | |||
| 1 | 2004-09-28 Jesper Harder <harder@ifa.au.dk> | ||
| 2 | |||
| 3 | * gnus-picon.el: Require cl. | ||
| 4 | |||
| 5 | * mml-sec.el (mml-signencrypt-style): Don't depend on Gnus. | ||
| 6 | |||
| 7 | * mml-smime.el: Require cl. Autoload message-fetch-field. | ||
| 8 | |||
| 9 | * gnus-fun.el: Require gnus-ems and gnus-util. | ||
| 10 | |||
| 11 | * gnus-diary.el (gnus-diary-header-schedule): caddr -> car (cddr | ||
| 12 | |||
| 13 | * gnus-art.el (gnus-article-edit-mode): Define before first | ||
| 14 | reference. | ||
| 15 | |||
| 16 | * gnus.el (gnus-method-to-server): Move defsubst before first use. | ||
| 17 | |||
| 18 | * spam.el (spam-check-spamoracle, spam-spamoracle-learn): Fix | ||
| 19 | format string mismatch. | ||
| 20 | * nnml.el (nnml-request-set-mark, nnml-save-marks): do. | ||
| 21 | * nnfolder.el (nnfolder-request-set-mark, nnfolder-save-marks): do. | ||
| 22 | |||
| 1 | 2004-09-27 Reiner Steib <Reiner.Steib@gmx.de> | 23 | 2004-09-27 Reiner Steib <Reiner.Steib@gmx.de> |
| 2 | 24 | ||
| 3 | * gnus.el (gnus-version-number): Set to 5.11. | 25 | * gnus.el (gnus-version-number): Set to 5.11. |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 5544c28f967..d4dbe1319e0 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -1464,6 +1464,8 @@ Initialized from `text-mode-syntax-table.") | |||
| 1464 | 1464 | ||
| 1465 | (defvar gnus-inhibit-hiding nil) | 1465 | (defvar gnus-inhibit-hiding nil) |
| 1466 | 1466 | ||
| 1467 | (defvar gnus-article-edit-mode nil) | ||
| 1468 | |||
| 1467 | ;;; Macros for dealing with the article buffer. | 1469 | ;;; Macros for dealing with the article buffer. |
| 1468 | 1470 | ||
| 1469 | (defmacro gnus-with-article-headers (&rest forms) | 1471 | (defmacro gnus-with-article-headers (&rest forms) |
diff --git a/lisp/gnus/gnus-diary.el b/lisp/gnus/gnus-diary.el index 120b812c209..e82d77fa58b 100644 --- a/lisp/gnus/gnus-diary.el +++ b/lisp/gnus/gnus-diary.el | |||
| @@ -204,7 +204,7 @@ There are currently two built-in format functions: | |||
| 204 | (let ((head (cdr (assoc (intern (format "X-Diary-%s" (car elt))) | 204 | (let ((head (cdr (assoc (intern (format "X-Diary-%s" (car elt))) |
| 205 | headers)))) | 205 | headers)))) |
| 206 | (when head | 206 | (when head |
| 207 | (nndiary-parse-schedule-value head (cadr elt) (caddr elt))))) | 207 | (nndiary-parse-schedule-value head (cadr elt) (car (cddr elt)))))) |
| 208 | nndiary-headers)) | 208 | nndiary-headers)) |
| 209 | 209 | ||
| 210 | ;; #### NOTE: Gnus sometimes gives me a HEADER not corresponding to any | 210 | ;; #### NOTE: Gnus sometimes gives me a HEADER not corresponding to any |
diff --git a/lisp/gnus/gnus-fun.el b/lisp/gnus/gnus-fun.el index 087c30da5df..82282e084f7 100644 --- a/lisp/gnus/gnus-fun.el +++ b/lisp/gnus/gnus-fun.el | |||
| @@ -26,8 +26,11 @@ | |||
| 26 | ;;; Code: | 26 | ;;; Code: |
| 27 | 27 | ||
| 28 | (eval-when-compile | 28 | (eval-when-compile |
| 29 | (require 'cl) | 29 | (require 'cl)) |
| 30 | (require 'mm-util)) | 30 | |
| 31 | (require 'mm-util) | ||
| 32 | (require 'gnus-ems) | ||
| 33 | (require 'gnus-util) | ||
| 31 | 34 | ||
| 32 | (defcustom gnus-x-face-directory (expand-file-name "x-faces" gnus-directory) | 35 | (defcustom gnus-x-face-directory (expand-file-name "x-faces" gnus-directory) |
| 33 | "*Directory where X-Face PBM files are stored." | 36 | "*Directory where X-Face PBM files are stored." |
diff --git a/lisp/gnus/gnus-picon.el b/lisp/gnus/gnus-picon.el index dbb96333d75..817696ed974 100644 --- a/lisp/gnus/gnus-picon.el +++ b/lisp/gnus/gnus-picon.el | |||
| @@ -40,8 +40,9 @@ | |||
| 40 | ;; | 40 | ;; |
| 41 | ;;; Code: | 41 | ;;; Code: |
| 42 | 42 | ||
| 43 | (eval-when-compile (require 'cl)) | ||
| 44 | |||
| 43 | (require 'gnus) | 45 | (require 'gnus) |
| 44 | (require 'custom) | ||
| 45 | (require 'gnus-art) | 46 | (require 'gnus-art) |
| 46 | 47 | ||
| 47 | ;;; User variables: | 48 | ;;; User variables: |
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el index 87c7702193b..28ef2c22a15 100644 --- a/lisp/gnus/gnus.el +++ b/lisp/gnus/gnus.el | |||
| @@ -3308,38 +3308,6 @@ that that variable is buffer-local to the summary buffers." | |||
| 3308 | (push (cons server result) gnus-server-method-cache)) | 3308 | (push (cons server result) gnus-server-method-cache)) |
| 3309 | result))) | 3309 | result))) |
| 3310 | 3310 | ||
| 3311 | (defsubst gnus-method-to-server (method) | ||
| 3312 | (catch 'server-name | ||
| 3313 | (setq method (or method gnus-select-method)) | ||
| 3314 | |||
| 3315 | ;; Perhaps it is already in the cache. | ||
| 3316 | (mapc (lambda (name-method) | ||
| 3317 | (if (equal (cdr name-method) method) | ||
| 3318 | (throw 'server-name (car name-method)))) | ||
| 3319 | gnus-server-method-cache) | ||
| 3320 | |||
| 3321 | (mapc | ||
| 3322 | (lambda (server-alist) | ||
| 3323 | (mapc (lambda (name-method) | ||
| 3324 | (when (gnus-methods-equal-p (cdr name-method) method) | ||
| 3325 | (unless (member name-method gnus-server-method-cache) | ||
| 3326 | (push name-method gnus-server-method-cache)) | ||
| 3327 | (throw 'server-name (car name-method)))) | ||
| 3328 | server-alist)) | ||
| 3329 | (let ((alists (list gnus-server-alist | ||
| 3330 | gnus-predefined-server-alist))) | ||
| 3331 | (if gnus-select-method | ||
| 3332 | (push (list (cons "native" gnus-select-method)) alists)) | ||
| 3333 | alists)) | ||
| 3334 | |||
| 3335 | (let* ((name (if (member (cadr method) '(nil "")) | ||
| 3336 | (format "%s" (car method)) | ||
| 3337 | (format "%s:%s" (car method) (cadr method)))) | ||
| 3338 | (name-method (cons name method))) | ||
| 3339 | (unless (member name-method gnus-server-method-cache) | ||
| 3340 | (push name-method gnus-server-method-cache)) | ||
| 3341 | name))) | ||
| 3342 | |||
| 3343 | (defsubst gnus-server-get-method (group method) | 3311 | (defsubst gnus-server-get-method (group method) |
| 3344 | ;; Input either a server name, and extended server name, or a | 3312 | ;; Input either a server name, and extended server name, or a |
| 3345 | ;; select method, and return a select method. | 3313 | ;; select method, and return a select method. |
diff --git a/lisp/gnus/mml-sec.el b/lisp/gnus/mml-sec.el index c9f5cb80190..b8107364411 100644 --- a/lisp/gnus/mml-sec.el +++ b/lisp/gnus/mml-sec.el | |||
| @@ -113,7 +113,7 @@ You can also customize or set `mml-signencrypt-style-alist' instead." | |||
| 113 | (setf (second style-item) style) | 113 | (setf (second style-item) style) |
| 114 | ;; otherwise, just return the current value | 114 | ;; otherwise, just return the current value |
| 115 | (second style-item)) | 115 | (second style-item)) |
| 116 | (gnus-message 3 "Warning, attempt to set invalid signencrypt-style")))) | 116 | (message "Warning, attempt to set invalid signencrypt style")))) |
| 117 | 117 | ||
| 118 | ;;; Security functions | 118 | ;;; Security functions |
| 119 | 119 | ||
diff --git a/lisp/gnus/mml-smime.el b/lisp/gnus/mml-smime.el index 596585afc72..3313d6a4118 100644 --- a/lisp/gnus/mml-smime.el +++ b/lisp/gnus/mml-smime.el | |||
| @@ -25,9 +25,12 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Code: | 26 | ;;; Code: |
| 27 | 27 | ||
| 28 | (eval-when-compile (require 'cl)) | ||
| 29 | |||
| 28 | (require 'smime) | 30 | (require 'smime) |
| 29 | (require 'mm-decode) | 31 | (require 'mm-decode) |
| 30 | (autoload 'message-narrow-to-headers "message") | 32 | (autoload 'message-narrow-to-headers "message") |
| 33 | (autoload 'message-fetch-field "message") | ||
| 31 | 34 | ||
| 32 | (defun mml-smime-sign (cont) | 35 | (defun mml-smime-sign (cont) |
| 33 | (when (null smime-keys) | 36 | (when (null smime-keys) |
diff --git a/lisp/gnus/nnfolder.el b/lisp/gnus/nnfolder.el index 142202cb4d2..369631ce653 100644 --- a/lisp/gnus/nnfolder.el +++ b/lisp/gnus/nnfolder.el | |||
| @@ -1174,7 +1174,7 @@ This command does not work if you use short group names." | |||
| 1174 | (let ((range (nth 0 action)) | 1174 | (let ((range (nth 0 action)) |
| 1175 | (what (nth 1 action)) | 1175 | (what (nth 1 action)) |
| 1176 | (marks (nth 2 action))) | 1176 | (marks (nth 2 action))) |
| 1177 | (assert (or (eq what 'add) (eq what 'del)) t | 1177 | (assert (or (eq what 'add) (eq what 'del)) nil |
| 1178 | "Unknown request-set-mark action: %s" what) | 1178 | "Unknown request-set-mark action: %s" what) |
| 1179 | (dolist (mark marks) | 1179 | (dolist (mark marks) |
| 1180 | (setq nnfolder-marks (gnus-update-alist-soft | 1180 | (setq nnfolder-marks (gnus-update-alist-soft |
diff --git a/lisp/gnus/nnml.el b/lisp/gnus/nnml.el index cb820b094c1..4a9cfd32943 100644 --- a/lisp/gnus/nnml.el +++ b/lisp/gnus/nnml.el | |||
| @@ -923,7 +923,7 @@ Use the nov database for the current group if available." | |||
| 923 | (let ((range (nth 0 action)) | 923 | (let ((range (nth 0 action)) |
| 924 | (what (nth 1 action)) | 924 | (what (nth 1 action)) |
| 925 | (marks (nth 2 action))) | 925 | (marks (nth 2 action))) |
| 926 | (assert (or (eq what 'add) (eq what 'del)) t | 926 | (assert (or (eq what 'add) (eq what 'del)) nil |
| 927 | "Unknown request-set-mark action: %s" what) | 927 | "Unknown request-set-mark action: %s" what) |
| 928 | (dolist (mark marks) | 928 | (dolist (mark marks) |
| 929 | (setq nnml-marks (gnus-update-alist-soft | 929 | (setq nnml-marks (gnus-update-alist-soft |
diff --git a/lisp/gnus/spam.el b/lisp/gnus/spam.el index 6fb99db157a..85534f3828c 100644 --- a/lisp/gnus/spam.el +++ b/lisp/gnus/spam.el | |||
| @@ -1746,7 +1746,7 @@ REMOVE not nil, remove the ADDRESSES." | |||
| 1746 | (goto-char (point-min)) | 1746 | (goto-char (point-min)) |
| 1747 | (when (re-search-forward "^X-Spam: yes;" nil t) | 1747 | (when (re-search-forward "^X-Spam: yes;" nil t) |
| 1748 | spam-split-group)) | 1748 | spam-split-group)) |
| 1749 | (error "Error running spamoracle" status)))))))) | 1749 | (error "Error running spamoracle: %s" status)))))))) |
| 1750 | 1750 | ||
| 1751 | (defun spam-spamoracle-learn (articles article-is-spam-p &optional unregister) | 1751 | (defun spam-spamoracle-learn (articles article-is-spam-p &optional unregister) |
| 1752 | "Run spamoracle in training mode." | 1752 | "Run spamoracle in training mode." |
| @@ -1768,8 +1768,8 @@ REMOVE not nil, remove the ADDRESSES." | |||
| 1768 | `("-f" ,spam-spamoracle-database | 1768 | `("-f" ,spam-spamoracle-database |
| 1769 | "add" ,arg) | 1769 | "add" ,arg) |
| 1770 | `("add" ,arg))))) | 1770 | `("add" ,arg))))) |
| 1771 | (when (not (eq 0 status)) | 1771 | (unless (eq 0 status) |
| 1772 | (error "Error running spamoracle" status))))))) | 1772 | (error "Error running spamoracle: %s" status))))))) |
| 1773 | 1773 | ||
| 1774 | (defun spam-spamoracle-learn-ham (articles &optional unregister) | 1774 | (defun spam-spamoracle-learn-ham (articles &optional unregister) |
| 1775 | (spam-spamoracle-learn articles nil unregister)) | 1775 | (spam-spamoracle-learn articles nil unregister)) |