XEmacs bugfix for plist-get.
authorTed Zlatanov <tzz@lifelogs.com>
Mon, 14 Feb 2011 11:18:42 +0000 (05:18 -0600)
committerTed Zlatanov <tzz@lifelogs.com>
Mon, 14 Feb 2011 11:18:42 +0000 (05:18 -0600)
* auth-source.el (auth-source-backend-parse-parameters): Don't rely on
`plist-get' to accept non-list parameters (XEmacs issue).  Fix
docstring.

lisp/ChangeLog
lisp/auth-source.el

index 9d8efa2..310947c 100644 (file)
@@ -1,3 +1,9 @@
+2011-02-14  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * auth-source.el (auth-source-backend-parse-parameters): Don't rely on
+       `plist-get' to accept non-list parameters (XEmacs issue).  Fix
+       docstring.
+
 2011-02-14  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * nnimap.el (nnimap-inhibit-logging): New variable.
index 8f4a6dd..be698ad 100644 (file)
@@ -331,9 +331,11 @@ If the value is not a list, symmetric encryption will be used."
 (defun auth-source-backend-parse-parameters (entry backend)
   "Fills in the extra auth-source-backend parameters of ENTRY.
 Using the plist ENTRY, get the :host, :protocol, and :user search
-parameters.  Accepts :port as an alias to :protocol.  Sets all
-the parameters to t if they are missing."
-  (let (val)
+parameters.  Accepts :port as an alias to :protocol."
+  (let ((entry (if (stringp entry)
+                   nil
+                 entry))
+        val)
     (when (setq val (plist-get entry :host))
       (oset backend host val))
     (when (setq val (plist-get entry :user))