unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>, emacs-devel@gnu.org
Subject: RE: Generic dispatcher
Date: Sun, 30 Jun 2013 16:42:57 -0700 (PDT)	[thread overview]
Message-ID: <2611bec5-a180-4722-b913-328fcfee201a@default> (raw)
In-Reply-To: <jwv4ncf2pek.fsf-monnier+emacs@gnu.org>

> For epa/eww/mhe/... I think we should introduce a generic dispatcher.
> The way I see it, it would look like:
> 
> - M-x mail RET runs one of the mail backends.  First time around it
>   prompts the user to choose a MUA, then stores the result in a Custom
>   var and doesn't prompt any more.  This would rely on
>   a mail-alternatives variable holding various MUAs such as Gnus, MH-E,
>   ... and third party packages can easily register themselves in this
>   list via their autoloads.  The user can reconsider his choice with C-u
>   M-x mail RET in which case she gets prompted again.
> 
> - same for M-x irc RET
> - same for M-x encrypt RET
> - same for M-x browse RET
> - we could push this further (e.g. auctex vs tex-mode.el) but I'm not
>   sure it'd be such a great idea.

+1

1. Assuming all of the commands under the same dispatcher do very
similar things.  And assuming a user really wants to use multiple such,
rather than just have a preferred single such (e.g., via customize).

2. As "browsing" can apply (whether this comes to mind or not) to other
things besides the web (e.g. repositories, hierarchies, and graphs of
all sorts), consider naming your `browse' dispatcher more specifically:
`browse-web' or some such.

The alternative would be to have all such diverse kinds of
browsing/navigating on the same dispatch command, but I think that
would defeat the purpose.

More generally, I'd suggest keeping this sort of thing for tight
groups of closely related commands, not for wide categories of commands.



  parent reply	other threads:[~2013-06-30 23:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-30 22:46 Generic dispatcher Stefan Monnier
2013-06-30 23:11 ` Xue Fuqiao
2013-06-30 23:42 ` Drew Adams [this message]
2013-07-01  7:43 ` Teemu Likonen
2013-07-01 13:01 ` Ted Zlatanov
2013-07-01 23:23   ` Stefan Monnier

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=2611bec5-a180-4722-b913-328fcfee201a@default \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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).