bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#8050: Gnus does not connect to my IMAP server any more


From: Ted Zlatanov
Subject: Re: bug#8050: Gnus does not connect to my IMAP server any more
Date: Wed, 09 Mar 2011 05:20:36 -0600
User-agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux)

(argh, accidentally posted this to just the Gnus bug tracker list,
resending to bug-gnu-emacs)

On Tue, 08 Mar 2011 22:04:17 -0500 Stefan Monnier <address@hidden> wrote: 

SM> Oh, I didn't even remember read-char-choice, but yes, that's probably
SM> a better starting point.  We should actually make y-or-n-p use
SM> read-char-choice.

I added `auth-source-read-char-choice' to do the prompting.  It will use
`read-char-choice' opportunistically and construct the a/b/c prompt
supplement automatically.  If you want me to modify `y-or-n-p' to use
`read-char-choice' let me know and I'll submit a patch.

>> I really like the way dropdown-list.el does selection (see
>> http://www.emacswiki.org/cgi-bin/wiki/dropdown-list.el, "overlays stolen
>> from company-mode.el").  It shows the list of choices inside the buffer
>> as a true popup.  To me that looks much better than y-or-n-p if the
>> terminal supports it.  If Emacs doesn't have anything similar, I think
>> it's a nice addition to the core UI functionality.  Let me know and I'll
>> propose it on emacs-devel if necessary.

SM> I don't know what that would look like in your y/n/N/e/? case.

Try (dropdown-list '("choose one: y" "............n" "............N"))
since that's how it will look with the new
`auth-source-char-read-choice' function.

I disabled `dropdown-list' in that function because it didn't work when
called from the :save-function lambda, although it worked interactively.
I think it needs to be outside the echo area but couldn't figure out how
to fix it.  Can I say "switch to any non-echo area window"?

Ted


reply via email to

[Prev in Thread] Current Thread [Next in Thread]