diff options
| author | Glenn Morris | 2007-12-09 04:14:11 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-12-09 04:14:11 +0000 |
| commit | 1d1df709e13c089bdc4567d8553b53e8411edd1a (patch) | |
| tree | 48e18d8558add7975dad62ff2e0d2a0cc2f7131e | |
| parent | 8d0f97a4a39b2624476ccc52452299fef53d1dc7 (diff) | |
| download | emacs-1d1df709e13c089bdc4567d8553b53e8411edd1a.tar.gz emacs-1d1df709e13c089bdc4567d8553b53e8411edd1a.zip | |
(declare-function): Add compatibility definition.
(password-read, password-cache-add, password-cache-remove): Declare as
functions.
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/sieve-manage.el | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index e271520f14e..e54a5f4783e 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -3,8 +3,8 @@ | |||
| 3 | * gnus-uu.el (gnus-uu-yenc-article): Use insert-buffer-substring. | 3 | * gnus-uu.el (gnus-uu-yenc-article): Use insert-buffer-substring. |
| 4 | 4 | ||
| 5 | * gnus-art.el, gnus-spec.el, gnus-sum.el, gnus-util.el: | 5 | * gnus-art.el, gnus-spec.el, gnus-sum.el, gnus-util.el: |
| 6 | * message.el, mm-view.el, smime.el: Add declare-function compatibility | 6 | * message.el, mm-view.el, sieve-manage, smime.el: |
| 7 | definition. | 7 | Add declare-function compatibility definition. |
| 8 | 8 | ||
| 9 | * gnus-art.el (w3-region, w3m-region, Info-menu): | 9 | * gnus-art.el (w3-region, w3m-region, Info-menu): |
| 10 | * gnus-spec.el (gnus-summary-from-or-to-or-newsgroups): | 10 | * gnus-spec.el (gnus-summary-from-or-to-or-newsgroups): |
| @@ -13,6 +13,8 @@ | |||
| 13 | * message.el (mail-abbrev-in-expansion-header-p): | 13 | * message.el (mail-abbrev-in-expansion-header-p): |
| 14 | * mm-view.el (w3-do-setup, w3-region, w3-prepare-buffer) | 14 | * mm-view.el (w3-do-setup, w3-region, w3-prepare-buffer) |
| 15 | (w3m-detect-meta-charset, w3m-region): | 15 | (w3m-detect-meta-charset, w3m-region): |
| 16 | * sieve-manage.el (password-read, password-cache-add) | ||
| 17 | (password-cache-remove): | ||
| 16 | * smime.el (password-read-and-add): Declare as functions. | 18 | * smime.el (password-read-and-add): Declare as functions. |
| 17 | 19 | ||
| 18 | 2007-12-08 David Kastrup <dak@gnu.org> | 20 | 2007-12-08 David Kastrup <dak@gnu.org> |
diff --git a/lisp/gnus/sieve-manage.el b/lisp/gnus/sieve-manage.el index 5cf14f7eb32..a4b763650c8 100644 --- a/lisp/gnus/sieve-manage.el +++ b/lisp/gnus/sieve-manage.el | |||
| @@ -76,6 +76,9 @@ | |||
| 76 | 76 | ||
| 77 | ;;; Code: | 77 | ;;; Code: |
| 78 | 78 | ||
| 79 | ;; For Emacs < 22.2. | ||
| 80 | (eval-and-compile | ||
| 81 | (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | ||
| 79 | (or (require 'password-cache nil t) | 82 | (or (require 'password-cache nil t) |
| 80 | (require 'password)) | 83 | (require 'password)) |
| 81 | (eval-when-compile | 84 | (eval-when-compile |
| @@ -193,6 +196,10 @@ Valid states are `closed', `initial', `nonauth', and `auth'.") | |||
| 193 | (when (fboundp 'set-buffer-multibyte) | 196 | (when (fboundp 'set-buffer-multibyte) |
| 194 | (set-buffer-multibyte nil))) | 197 | (set-buffer-multibyte nil))) |
| 195 | 198 | ||
| 199 | (declare-function password-read "password-cache" (prompt &optional key)) | ||
| 200 | (declare-function password-cache-add "password-cache" (key password)) | ||
| 201 | (declare-function password-cache-remove "password-cache" (key)) | ||
| 202 | |||
| 196 | ;; Uses the dynamically bound `reason' variable. | 203 | ;; Uses the dynamically bound `reason' variable. |
| 197 | (defvar reason) | 204 | (defvar reason) |
| 198 | (defun sieve-manage-interactive-login (buffer loginfunc) | 205 | (defun sieve-manage-interactive-login (buffer loginfunc) |