unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: 19368@debbugs.gnu.org
Subject: bug#19368: 25.0.50; NSM prompt is not self-explanatory enough
Date: Sun, 14 Dec 2014 18:02:33 +0200	[thread overview]
Message-ID: <83lhma43ty.fsf@gnu.org> (raw)
In-Reply-To: <m3iohewsyi.fsf@stories.gnus.org>

> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> 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.

Btw, if you do that, userlock.el cries for using this functionality,
and likewise hack-local-variables-confirm.





  reply	other threads:[~2014-12-14 16:02 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87a8j3llba.fsf@lifelogs.com>
2014-12-13 14:39 ` bug#19368: 25.0.50; NSM prompt is not self-explanatory enough Eli Zaretskii
2014-12-14  4:43   ` Stefan Monnier
2014-12-14 11:37     ` Ted Zlatanov
2016-02-05  3:43     ` Lars Ingebrigtsen
2014-12-14  8:12   ` Lars Magne Ingebrigtsen
2014-12-14 16:02     ` Eli Zaretskii [this message]
2014-12-14 22:48       ` Stefan Monnier
2014-12-21 11:50         ` Lars Ingebrigtsen
2016-02-04  7:24       ` Lars Ingebrigtsen
2016-02-04 16:47         ` Eli Zaretskii
2016-02-05  3:53       ` Lars Ingebrigtsen
2016-02-05  3:35   ` Lars Ingebrigtsen
2016-02-05  7:42     ` Eli Zaretskii
2016-02-05  7:46       ` Lars Ingebrigtsen
2016-02-05  9:34         ` Eli Zaretskii
2016-02-06  3:09           ` Lars Ingebrigtsen
2016-06-02 14:31   ` Archived problem report bug#19368 (bug#19368: 25.0.50; NSM prompt is not self-explanatory enough) GNU bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83lhma43ty.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=19368@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).