From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77298 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 13:25:31 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <871v2xz13o.fsf@lifelogs.com> References: <87fwrdntqn.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298575593 30090 80.91.229.12 (24 Feb 2011 19:26:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2011 19:26:33 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25625@lists.math.uh.edu Thu Feb 24 20:26:29 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 1PsgpX-0004RK-FI for ding-account@gmane.org; Thu, 24 Feb 2011 20:26: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 1PsgpA-0005HU-N2; Thu, 24 Feb 2011 13:26:04 -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 1Psgp8-0005H6-EO for ding@lists.math.uh.edu; Thu, 24 Feb 2011 13:26:02 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Psgoy-0001w3-9i for ding@lists.math.uh.edu; Thu, 24 Feb 2011 13:26:02 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Psgox-0001DB-3a for ding@gnus.org; Thu, 24 Feb 2011 20:25:51 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Psgow-0003wO-5a for ding@gnus.org; Thu, 24 Feb 2011 20:25:50 +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 20:25:50 +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 20:25:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 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:t526T4M+OSix/VLfe+B6Fb7W26M= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77298 Archived-At: On Thu, 24 Feb 2011 20:00:00 +0100 Reiner Steib wrote: RS> when compiling Gnus (from git), I get... RS> $ emacs --version RS> GNU Emacs 23.1.1 RS> [...] RS> $ make RS> [...] RS> In end of data: RS> auth-source.el:1331:1:Warning: the function `help-print-return-message' is not RS> known to be defined. RS> When opening the IMAP server, I hit `?' at the "Save auth info to file" RS> prompt: RS> | Opening TLS connection to `imap.foo.invalid'...done RS> | Save auth info to file ~/.authinfo.gpg? y/n/N/e/?: RS> | Unable to open server nnimap+imap.foo.invalid due to: \ RS> | Symbol's function definition is void: help-print-return-message RS> | Opening nnimap server on imap.foo.invalid...failed: RS> | Server denied access RS> | nnimap+imap.foo.invalid:INBOX error: BAD Please login first 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. One way I thought might work is just to replace the y/n/N part of the prompt with the expanded versions (and then ? again will unexpand them). So: "prompt ... y/n/?" => user inputs ?? => "prompt ... yes/no but ... /?" => user inputs ?? => back to original prompt This has the advantage of not requiring new windows. Thanks! Ted