From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#19368: 25.0.50; NSM prompt is not self-explanatory enough Date: Thu, 04 Feb 2016 18:24:30 +1100 Message-ID: <878u31ym35.fsf@gnus.org> References: <83bnn762d6.fsf@gnu.org> <83lhma43ty.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454570784 28666 80.91.229.3 (4 Feb 2016 07:26:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2016 07:26:24 +0000 (UTC) Cc: 19368@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 04 08:26:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aREIu-0007z3-10 for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Feb 2016 08:26:12 +0100 Original-Received: from localhost ([::1]:40035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aREIt-0006J0-D8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Feb 2016 02:26:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aREIn-0006I1-PI for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 02:26:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aREIk-0007TD-2s for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 02:26:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aREIj-0007T9-VF for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 02:26:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aREIj-000405-LR for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 02:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Feb 2016 07:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19368 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19368-submit@debbugs.gnu.org id=B19368.145457070915316 (code B ref 19368); Thu, 04 Feb 2016 07:26:01 +0000 Original-Received: (at 19368) by debbugs.gnu.org; 4 Feb 2016 07:25:09 +0000 Original-Received: from localhost ([127.0.0.1]:58875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aREHq-0003yr-5W for submit@debbugs.gnu.org; Thu, 04 Feb 2016 02:25:09 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:46458) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aREHl-0003yM-6L for 19368@debbugs.gnu.org; Thu, 04 Feb 2016 02:25:04 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aREHN-0001cw-6Q; Thu, 04 Feb 2016 08:24:37 +0100 In-Reply-To: <83lhma43ty.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 14 Dec 2014 18:02:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) X-MailScanner-ID: 1aREHN-0001cw-6Q MailScanner-NULL-Check: 1455175478.10219@ZhGEcHdaXtj1zGYHhE/QjQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112396 Archived-At: Eli Zaretskii writes: >> From: Lars Magne Ingebrigtsen >> Date: Sun, 14 Dec 2014 09:12:21 +0100 >> >> Yeah. But shouldn't we have a general multiple-choice library function >> for these (sort of) extended y-or-n-p functions? >> >> While writing the NSM function, I was looking around for one, but the >> only thing I found was `gnus-multiple-choice'. :-) So I had >> implemented this before. A call using that function here would be >> >> (gnus-multiple-choice "Continue connecting?" '((?a "always") >> (?s "session only") >> (?n "no"))) >> >> Or something. If the user types something else, you get a help buffer >> and stuff. >> >> Shall I make that into a general function (it needs some tweaking in the >> prompting department)? > > Sounds useful, thanks. Bonus points for optionally popping a dialog > (via x-popup-dialog) when the command was invoked by a mouse. Ok, I'll start implementing this, and we can tweak the look a bit. This will be on the trunk, and not in emacs-25. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no