Gnus development mailing list
 help / color / mirror / Atom feed
From: Michael Piotrowski <mxp@dynalabs.de>
To: ding@gnus.org
Subject: Re: auth-sources default
Date: Sat, 12 Feb 2011 17:19:30 -0500	[thread overview]
Message-ID: <x639nsx5e5.fsf@dynalabs.de> (raw)
In-Reply-To: <87vd0phqw9.fsf@lifelogs.com>

On 2011-02-12, Ted Zlatanov <tzz@lifelogs.com> wrote:

>> At least for me, the default setting of `auth-sources'--or any other
>> setting where `auth-sources' just contains strings--doesn't seem to work
>> in the new version of auth-sources.el.  The problem seems to be in
>> `auth-source-backend-parse': `auth-source-backend-parse-parameters' is
>> called with the original entry (i.e., a plain string) in any case, and
>> then `plist-get' fails.
>
>> As a workaround one can set `auth-sources' to a plist, but I guess it
>> would be good if the default worked ;-)
>
> I'm not sure what you're seeing but it works for me:
>
> (auth-source-backend-parse "test")
>
> => [object auth-source-backend "test" netrc "test" t t t
> auth-source-netrc-create auth-source-netrc-search]

Well, I get

  Malformed property list: "test", "test"

> Try to run this:
>
> (mapcar 'auth-source-backend-parse auth-sources)
>
> and check the output.  It should be a list of backend instances like
> above.

Unfortunately not.  It works when `auth-sources' is a plist such as

  (:source "~/.authinfo" :host t :protocol t)

but not when it's a list of strings.

I inserted

  (message "%S // %S" entry backend)

at the start of `auth-source-backend-parse-parameters'.  When evaluating
(auth-source-backend-parse "test"), I get the following output:

  "test" // [object auth-source-backend "test" netrc "test" t t t auth-source-netrc-create auth-source-netrc-search]
  (:source "test") // [object auth-source-backend "test" netrc "test" t t t auth-source-netrc-create auth-source-netrc-search]

> Maybe you still have an old .elc file?  Or you're using Emacs'
> auth-source.el, which hasn't been updated yet?

No, I checked this.  I'm using XEmacs 21.4.22; according to the
documentation, GNU Emacs' `plist-get' "accepts a malformed plist
argument".  This is not the case in XEmacs--maybe that's the problem?

Greetings

-- 
Dr.-Ing. Michael Piotrowski, M.A.                   <mxp@dynalabs.de>
Public key at <http://www.dynalabs.de/mxp/pubkey.txt> (ID 0x1614A044)




  reply	other threads:[~2011-02-12 22:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-12 20:52 Michael Piotrowski
2011-02-12 21:41 ` Ted Zlatanov
2011-02-12 22:19   ` Michael Piotrowski [this message]
2011-02-12 23:07     ` Ted Zlatanov
2011-02-13 14:07       ` Ted Zlatanov
2011-02-14 15:19         ` Ted Zlatanov
2011-02-14 18:46           ` Michael Piotrowski
2011-02-14 21:09             ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x639nsx5e5.fsf@dynalabs.de \
    --to=mxp@dynalabs.de \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).