Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Cc: emacs-devel@gnu.org,tramp-devel@mail.freesoftware.fsf.org
Subject: Re: auth-source.el API change: Gnus and Emacs sync
Date: Sat, 12 Feb 2011 12:00:00 -0600	[thread overview]
Message-ID: <874o89jfq7.fsf@lifelogs.com> (raw)
In-Reply-To: <87zkq1bb68.fsf@gmx.de>

On Sat, 12 Feb 2011 15:05:35 +0100 Michael Albinus <michael.albinus@gmx.de> wrote: 

MA> Ted Zlatanov <tzz@lifelogs.com> writes:
TZ> How about this:
>> 
TZ> (setq auth-info
TZ> (tramp-compat-funcall
TZ> 'auth-source-search
TZ> :max 1
TZ> :user (or tramp-current-user t)
TZ> :host tramp-current-host
TZ> :port tramp-current-method))
>> 
TZ> That will match any user if tramp-current-user is nil.
>> 
>> Michael, I'll wait for your reply before comitting my patch in Emacs.
>> The backwards compatible wrapper of `auth-source-user-or-password'
>> should be OK until then.

MA> Sorry, I have overlooked your previous message. The patch looks OK.

I comitted my patch with some fixes, including tramp.el.  Until Katsumi
Yamaoka merges the Gnus changes, the trunk will be broken because
auth-source.el hasn't been updated from the Gnus trunk.  If that's a
problem, revert 103234.

I put a lot of work into the `auth-source-search' docstring and would
like to know if there's an easy way to carry that into auth.texi.
Otherwise I'll be duplicating the text.  For now I left it as a TODO.

Thanks
Ted




  reply	other threads:[~2011-02-12 18:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-10 22:37 Ted Zlatanov
2011-02-11  4:13 ` Joseph Gay
2011-02-11 14:12   ` Ted Zlatanov
2011-02-11 21:16     ` Joseph Gay
2011-02-11 22:06       ` Ted Zlatanov
2011-02-11  8:21 ` Michael Albinus
2011-02-11 13:54   ` Ted Zlatanov
2011-02-11 16:37     ` Michael Albinus
2011-02-11 17:28       ` Ted Zlatanov
2011-02-12 13:49         ` Ted Zlatanov
2011-02-12 14:05           ` Michael Albinus
2011-02-12 18:00             ` Ted Zlatanov [this message]
2011-02-11 17:30       ` tramp-imap removal? (was: auth-source.el API change: Gnus and Emacs sync) Ted Zlatanov
2011-02-11 18:15         ` tramp-imap removal? Robert Pluim
2011-02-12 13:55         ` Ted Zlatanov
2011-02-12 18:56           ` Steinar Bang
2011-02-14 15:21             ` Ted Zlatanov
2011-02-13 13:00           ` Michael Albinus
2011-02-13 13:27             ` imap-hash.el and imap.el removed (was: tramp-imap removal?) Ted Zlatanov
2011-02-12 13:48 ` auth-source.el API change: Gnus and Emacs sync 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=874o89jfq7.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=tramp-devel@mail.freesoftware.fsf.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).