diff options
| author | Teodor Zlatanov | 2011-02-14 12:24:43 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-02-14 12:24:43 +0000 |
| commit | e45de620e7a4e29ad3f5f934a36b5fcd77e50375 (patch) | |
| tree | dfdd9fecaf4c6ab5c57afb1812a10c879f5d62ea | |
| parent | d5e9a4e9a76d5cd3aa03a7cc8a6c2ab405bb9ca5 (diff) | |
| download | emacs-e45de620e7a4e29ad3f5f934a36b5fcd77e50375.tar.gz emacs-e45de620e7a4e29ad3f5f934a36b5fcd77e50375.zip | |
auth-source.el (auth-source-backend-parse-parameters): Don't rely on `plist-get' to accept non-list parameters (XEmacs issue). Fix docstring.
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/auth-source.el | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 9dd336a1f09..747f71f835a 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-02-14 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 2 | |||
| 3 | * auth-source.el (auth-source-backend-parse-parameters): Don't rely on | ||
| 4 | `plist-get' to accept non-list parameters (XEmacs issue). Fix | ||
| 5 | docstring. | ||
| 6 | |||
| 1 | 2011-02-14 Lars Ingebrigtsen <larsi@gnus.org> | 7 | 2011-02-14 Lars Ingebrigtsen <larsi@gnus.org> |
| 2 | 8 | ||
| 3 | * nnimap.el (nnimap-inhibit-logging): New variable. | 9 | * nnimap.el (nnimap-inhibit-logging): New variable. |
diff --git a/lisp/gnus/auth-source.el b/lisp/gnus/auth-source.el index 8f4a6ddc7b4..be698ad35d0 100644 --- a/lisp/gnus/auth-source.el +++ b/lisp/gnus/auth-source.el | |||
| @@ -331,9 +331,11 @@ If the value is not a list, symmetric encryption will be used." | |||
| 331 | (defun auth-source-backend-parse-parameters (entry backend) | 331 | (defun auth-source-backend-parse-parameters (entry backend) |
| 332 | "Fills in the extra auth-source-backend parameters of ENTRY. | 332 | "Fills in the extra auth-source-backend parameters of ENTRY. |
| 333 | Using the plist ENTRY, get the :host, :protocol, and :user search | 333 | Using the plist ENTRY, get the :host, :protocol, and :user search |
| 334 | parameters. Accepts :port as an alias to :protocol. Sets all | 334 | parameters. Accepts :port as an alias to :protocol." |
| 335 | the parameters to t if they are missing." | 335 | (let ((entry (if (stringp entry) |
| 336 | (let (val) | 336 | nil |
| 337 | entry)) | ||
| 338 | val) | ||
| 337 | (when (setq val (plist-get entry :host)) | 339 | (when (setq val (plist-get entry :host)) |
| 338 | (oset backend host val)) | 340 | (oset backend host val)) |
| 339 | (when (setq val (plist-get entry :user)) | 341 | (when (setq val (plist-get entry :user)) |