1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-20 18:17:20 +00:00

lisp/gnus/gnus.el: Avoid byte-compiler warning.

(gnus-method-ephemeral-p): Move after declaration of defsubst
`gnus-sloppily-equal-method-parameters' to avoid a warning.
This commit is contained in:
Juanma Barranquero 2012-02-10 00:30:27 +01:00
parent 7582f84423
commit a427f84dd2
2 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2012-02-09 Juanma Barranquero <lekktu@gmail.com>
* gnus.el (gnus-method-ephemeral-p): Move after declaration of defsubst
`gnus-sloppily-equal-method-parameters' to avoid a warning.
2012-02-09 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-msg.el (gnus-msg-mail): Use `message-mail' if Gnus isn't
@ -1489,7 +1494,7 @@
2011-06-21 Andrew Cohen <cohen@andy.bu.edu>
* nnimap.el (nnimap-find-article-by-message-id): return nil when no
* nnimap.el (nnimap-find-article-by-message-id): Return nil when no
article found.
2011-06-18 Teodor Zlatanov <tzz@lifelogs.com>

View File

@ -3581,13 +3581,6 @@ that that variable is buffer-local to the summary buffers."
gnus-valid-select-methods)))
(equal (nth 1 m1) (nth 1 m2)))))))
(defun gnus-method-ephemeral-p (method)
(let ((equal nil))
(dolist (ephemeral gnus-ephemeral-servers)
(when (gnus-sloppily-equal-method-parameters method ephemeral)
(setq equal t)))
equal))
(defsubst gnus-sloppily-equal-method-parameters (m1 m2)
;; Check parameters for sloppy equality.
(let ((p1 (copy-sequence (cddr m1)))
@ -3616,6 +3609,13 @@ that that variable is buffer-local to the summary buffers."
;; If p2 now is empty, they were equal.
(null p2))))
(defun gnus-method-ephemeral-p (method)
(let ((equal nil))
(dolist (ephemeral gnus-ephemeral-servers)
(when (gnus-sloppily-equal-method-parameters method ephemeral)
(setq equal t)))
equal))
(defun gnus-methods-sloppily-equal (m1 m2)
;; Same method.
(or