From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77302 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: auth-source.el: help-print-return-message Date: Thu, 24 Feb 2011 15:57:36 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <8739ndt7sf.fsf@lifelogs.com> References: <87fwrdntqn.fsf@marauder.physik.uni-ulm.de> <871v2xz13o.fsf@lifelogs.com> <877hcpnoce.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1298584725 16605 80.91.229.12 (24 Feb 2011 21:58:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2011 21:58:45 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25629@lists.math.uh.edu Thu Feb 24 22:58:40 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 1PsjCm-0003TH-UI for ding-account@gmane.org; Thu, 24 Feb 2011 22:58:37 +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 1PsjC5-000614-D1; Thu, 24 Feb 2011 15:57:53 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PsjC3-00060k-Ip for ding@lists.math.uh.edu; Thu, 24 Feb 2011 15:57:51 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PsjC2-0002Zc-4p for ding@lists.math.uh.edu; Thu, 24 Feb 2011 15:57:51 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PsjC0-00048j-0Y for ding@gnus.org; Thu, 24 Feb 2011 22:57:48 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PsjBz-000340-Ik for ding@gnus.org; Thu, 24 Feb 2011 22:57:47 +0100 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Feb 2011 22:57:47 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Feb 2011 22:57:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 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:bgfYMwzKIs9yjDUhHu2ZOU0CNAI= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77302 Archived-At: On Thu, 24 Feb 2011 21:56:33 +0100 Reiner Steib wrote: RS> On Do, Feb 24 2011, Ted Zlatanov wrote: >> This function is supposed to DTRT to dismiss the help buffer (which I >> create with `help-mode'). I asked in the bug report and I'll ask here: >> can someone tell me a good way to show pop-up help in Emacs? I looked >> at the source and everyone does it differently (I counted 5 different >> ways before I have up). Also it has to work in XEmacs and older Emacsen >> so I hope someone can help me out. RS> The prompts for scoring (-> `gnus-score-insert-helpī) and RS> `save-buffers-kill-emacsī (-> `map-y-or-n-pī) are similar. The first one is complicated and would tie auth-source.el tightly with the rest of Gnus (which I'm trying to avoid because autoloading `auth-source-search' should work outside of Gnus). I pushed in a change to use `save-excursion' and `delete-window' because all the other setups seemed too complicated. But if it's not working right, please let me know. I also think that maybe I want something other than read-char. It errors out if I hit a cursor key, for instance. What would be a good function to use that supports prompts in XEmacs? `read-key'? `read-char-exclusive'? Thanks! Ted