(auth-source-netrc-element-or-first): New function to DTRT for
parameter extraction.
(auth-source-netrc-create): Use it and fix multiple parameter print
- bug.
+ bug. Use the default passed from above (given-default) or the
+ built-in (user-login-name for :user).
2011-02-23 Lars Ingebrigtsen <larsi@gnus.org>
(or
(auth-source-netrc-element-or-first
(aget valist 'user))
+ (plist-get artificial :user)
"[any user]")
(or
(auth-source-netrc-element-or-first
(aget valist 'host))
+ (plist-get artificial :host)
"[any host]")
(or
(auth-source-netrc-element-or-first
(aget valist 'port))
+ (plist-get artificial :port)
"[any port]"))))
- (t data)))
+ (t (or data default))))
(when data
(setq artificial (plist-put artificial