From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77277 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Making Gnus ask my IMAP username and password after the recent auth-source changes Date: Thu, 24 Feb 2011 07:06:40 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87sjvdbmzj.fsf@lifelogs.com> References: <87sjvq127b.fsf@gmail.com> <878vxhmmvj.fsf@lifelogs.com> <87tyg53tju.fsf@gmail.com> <87ipwj4wu8.fsf@lifelogs.com> <87hbc39vwe.fsf@gmail.com> <87d3mqj36i.fsf@lifelogs.com> <87aahu3fwp.fsf@lifelogs.com> <87pqqq8bfk.fsf@gnus.org> <87zkptw0ws.fsf@lifelogs.com> <87fwrl0wj6.fsf@gnus.org> <87hbbvybwp.fsf@lifelogs.com> <87d3mj3zfs.fsf@gnus.org> <871v2yq040.fsf@lifelogs.com> <87y6562uif.fsf@gnus.org> <87aahmc7ij.fsf@lifelogs.com> <87fwrd7jik.fsf@gnus.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298552854 22229 80.91.229.12 (24 Feb 2011 13:07:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2011 13:07:34 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25604@lists.math.uh.edu Thu Feb 24 14:07:27 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Psauk-0002Jg-Mz for ding-account@gmane.org; Thu, 24 Feb 2011 14:07:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PsauN-00030t-PJ; Thu, 24 Feb 2011 07:07:03 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PsauL-00030W-Lm for ding@lists.math.uh.edu; Thu, 24 Feb 2011 07:07:01 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PsauG-0007JT-Ea for ding@lists.math.uh.edu; Thu, 24 Feb 2011 07:07:01 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PsauF-0001oD-Ng for ding@gnus.org; Thu, 24 Feb 2011 14:06:55 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PsauE-00021d-H4 for ding@gnus.org; Thu, 24 Feb 2011 14:06:54 +0100 Original-Received: from c-67-186-102-106.hsd1.il.comcast.net ([67.186.102.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Feb 2011 14:06:54 +0100 Original-Received: from tzz by c-67-186-102-106.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Feb 2011 14:06:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-67-186-102-106.hsd1.il.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:Ds1kDRQlICEpL7OJHmbPzvUBqNQ= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77277 Archived-At: On Thu, 24 Feb 2011 03:35:15 -0800 Lars Ingebrigtsen wrote: LI> Ted Zlatanov writes: >> Yeah, that sounds good. I don't like that it pollutes the search spec, >> though. How about something like >> >> (let ((auth-source-creation-prompts '(user "IMAP user name for %h? "))) >> ... auth-source-search invocation ... LI> True. On the other hand, the functions take a keyword list, so it's LI> less polluting than normal Emacs Lisp functions to add more args. It pollutes the search spec, which gets passed down to the backends. IOW a new :prompt parameter would have to be known and removed by every backend from the actual search intention, as opposed to the ignored-keys in `auth-source-search' which are removed at the top. It may have been better to put the *search* spec in a :search parameter to `auth-source-search' but it would have complicated the API even more. So I'm claiming it's The Perfect API instead. I pushed my patch in; let's see what people think. Also see Simon Josefsson's suggestions about the prompt. I'm sure we'll figure out something that works for everyone. Ted