aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeodor Zlatanov2011-02-14 12:24:43 +0000
committerKatsumi Yamaoka2011-02-14 12:24:43 +0000
commite45de620e7a4e29ad3f5f934a36b5fcd77e50375 (patch)
treedfdd9fecaf4c6ab5c57afb1812a10c879f5d62ea
parentd5e9a4e9a76d5cd3aa03a7cc8a6c2ab405bb9ca5 (diff)
downloademacs-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/ChangeLog6
-rw-r--r--lisp/gnus/auth-source.el8
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 @@
12011-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
12011-02-14 Lars Ingebrigtsen <larsi@gnus.org> 72011-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.
333Using the plist ENTRY, get the :host, :protocol, and :user search 333Using the plist ENTRY, get the :host, :protocol, and :user search
334parameters. Accepts :port as an alias to :protocol. Sets all 334parameters. Accepts :port as an alias to :protocol."
335the 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))