diff options
| -rw-r--r-- | lisp/gnus/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus.el | 26 |
2 files changed, 15 insertions, 13 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 9cc8462e12b..8bd3f83b860 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2010-11-01 Glenn Morris <rgm@gnu.org> | 1 | 2010-11-01 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * gnus.el (gnus-sloppily-equal-method-parameters): Move defn before use. | ||
| 4 | |||
| 3 | * sieve-manage.el: Require 'cl when compiling. | 5 | * sieve-manage.el: Require 'cl when compiling. |
| 4 | 6 | ||
| 5 | * gnus-util.el (iswitchb-read-buffer): Declare rather than autoload. | 7 | * gnus-util.el (iswitchb-read-buffer): Declare rather than autoload. |
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el index 6f4ef631ae8..82cfd672be7 100644 --- a/lisp/gnus/gnus.el +++ b/lisp/gnus/gnus.el | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | ;;; gnus.el --- a newsreader for GNU Emacs | 1 | ;;; gnus.el --- a newsreader for GNU Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1987, 1988, 1989, 1990, 1993, 1994, 1995, 1996, 1997, 1998, | 3 | ;; Copyright (C) 1987, 1988, 1989, 1990, 1993, 1994, 1995, 1996, 1997, |
| 4 | ;; 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | 4 | ;; 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, |
| 5 | ;; Free Software Foundation, Inc. | 5 | ;; 2010 Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | ;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet> | 7 | ;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet> |
| 8 | ;; Lars Magne Ingebrigtsen <larsi@gnus.org> | 8 | ;; Lars Magne Ingebrigtsen <larsi@gnus.org> |
| @@ -3546,16 +3546,6 @@ that that variable is buffer-local to the summary buffers." | |||
| 3546 | gnus-valid-select-methods))) | 3546 | gnus-valid-select-methods))) |
| 3547 | (equal (nth 1 m1) (nth 1 m2))))))) | 3547 | (equal (nth 1 m1) (nth 1 m2))))))) |
| 3548 | 3548 | ||
| 3549 | (defun gnus-methods-sloppily-equal (m1 m2) | ||
| 3550 | ;; Same method. | ||
| 3551 | (or | ||
| 3552 | (eq m1 m2) | ||
| 3553 | ;; Type and name are equal. | ||
| 3554 | (and | ||
| 3555 | (eq (car m1) (car m2)) | ||
| 3556 | (equal (cadr m1) (cadr m2)) | ||
| 3557 | (gnus-sloppily-equal-method-parameters m1 m2)))) | ||
| 3558 | |||
| 3559 | (defsubst gnus-sloppily-equal-method-parameters (m1 m2) | 3549 | (defsubst gnus-sloppily-equal-method-parameters (m1 m2) |
| 3560 | ;; Check parameters for sloppy equalness. | 3550 | ;; Check parameters for sloppy equalness. |
| 3561 | (let ((p1 (copy-sequence (cddr m1))) | 3551 | (let ((p1 (copy-sequence (cddr m1))) |
| @@ -3584,6 +3574,16 @@ that that variable is buffer-local to the summary buffers." | |||
| 3584 | ;; If p2 now is empty, they were equal. | 3574 | ;; If p2 now is empty, they were equal. |
| 3585 | (null p2)))) | 3575 | (null p2)))) |
| 3586 | 3576 | ||
| 3577 | (defun gnus-methods-sloppily-equal (m1 m2) | ||
| 3578 | ;; Same method. | ||
| 3579 | (or | ||
| 3580 | (eq m1 m2) | ||
| 3581 | ;; Type and name are equal. | ||
| 3582 | (and | ||
| 3583 | (eq (car m1) (car m2)) | ||
| 3584 | (equal (cadr m1) (cadr m2)) | ||
| 3585 | (gnus-sloppily-equal-method-parameters m1 m2)))) | ||
| 3586 | |||
| 3587 | (defun gnus-server-equal (m1 m2) | 3587 | (defun gnus-server-equal (m1 m2) |
| 3588 | "Say whether two methods are equal." | 3588 | "Say whether two methods are equal." |
| 3589 | (let ((m1 (cond ((null m1) gnus-select-method) | 3589 | (let ((m1 (cond ((null m1) gnus-select-method) |