unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: Richard Stallman <rms@gnu.org>, Emacs developers <emacs-devel@gnu.org>
Subject: Re: eww
Date: Mon, 13 Jan 2014 12:20:59 +0100	[thread overview]
Message-ID: <87zjn0gmas.fsf@bzg.ath.cx> (raw)
In-Reply-To: <CAAeL0STCbvwUWCCNDmmBD5Cj35NRRKBs9G6aXaxW8FbCfpJaBQ@mail.gmail.com> (Juanma Barranquero's message of "Sun, 12 Jan 2014 14:50:31 +0100")

[-- Attachment #1: Type: text/plain, Size: 1431 bytes --]

Juanma Barranquero <lekktu@gmail.com> writes:

> On Sun, Jan 12, 2014 at 2:46 PM, Richard Stallman <rms@gnu.org> wrote:
>
>> Before the first release that contains eww, I think we should set up
>> natural aliases for the commands, perhaps using the name "browse" or
>> "www" or "web" instead of "eww".  With natural names, users won't have
>> to wonder, "What in the world did they call that?"  We can avoid
>> adding one more difficulty to learning to use Emacs.
>>
>> I think epa also needs a set of natural aliases, with "crypt" instead
>> of "epa".
>
> We introduced define-alternatives for exactly that case. It's just
> that nobody has used it yet.

Try this:

  (define-alternatives web)
  (setq web-alternatives '(("eww" . eww)))
  M-x web RET TAB RET

Does not work without the attached patch.

I think it's safe to recommend `define-alternatives' for commands
only, not for function, and the docstring suggests this too.  If so,
I'll apply the patch.

Two other problems:

1) when there is only one "alternative", the user is asked which
   one he wants.  I think COMMAND should use the alternative without
   asking, and tell the user how to add other alternatives through
   COMMAND-alternatives for 2 secs the first time the alternative is
   chosen.

2) Once an alternative is chosen, setting COMMAND-alternatives will
   not take any effect, and I don't see a way to cancel the first
   choice.

What do you think?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: simple.el.patch --]
[-- Type: text/x-diff, Size: 857 bytes --]

=== modified file 'lisp/simple.el'
*** lisp/simple.el	2014-01-12 04:00:03 +0000
--- lisp/simple.el	2014-01-13 11:10:41 +0000
***************
*** 7694,7700 ****
                 (customize-save-variable ',varimp-sym
                                          (cdr (assoc-string val ,varalt-sym))))))
           (if ,varimp-sym
!              (funcall ,varimp-sym)
             (message ,(format "No implementation selected for command `%s'"
                               command-name)))))))
  
--- 7694,7700 ----
                 (customize-save-variable ',varimp-sym
                                          (cdr (assoc-string val ,varalt-sym))))))
           (if ,varimp-sym
!              (call-interactively ,varimp-sym)
             (message ,(format "No implementation selected for command `%s'"
                               command-name)))))))
  


[-- Attachment #3: Type: text/plain, Size: 14 bytes --]


-- 
 Bastien

  reply	other threads:[~2014-01-13 11:20 UTC|newest]

Thread overview: 196+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-12 13:46 eww Richard Stallman
2014-01-12 13:50 ` eww Juanma Barranquero
2014-01-13 11:20   ` Bastien [this message]
2014-01-13 17:44     ` eww Davis Herring
2014-01-13 22:19       ` eww Bastien
2014-01-13 19:36     ` eww Richard Stallman
2014-01-13 22:29       ` eww Bastien
2014-01-14 17:06         ` eww Richard Stallman
2014-01-14 20:22           ` eww Bastien
2014-01-15 12:29             ` eww Richard Stallman
2014-01-17 12:50               ` Creating aliases for epa-* comands => crypt-* commands? (was: eww) Bastien
2014-01-17 14:21                 ` Creating aliases for epa-* comands => crypt-* commands? Stefan Monnier
2014-01-17 14:30                   ` Bastien
2014-01-17 15:12                     ` Stefan Monnier
2014-01-17 15:18                       ` Vibhav Pant
2014-01-17 15:54                       ` Bastien
2014-01-18 12:33                       ` Richard Stallman
2014-01-18 12:33                     ` Richard Stallman
2014-01-18 12:33                   ` Richard Stallman
2014-01-19  1:53                     ` Stefan Monnier
2014-01-19 12:13                       ` Richard Stallman
2014-01-13 19:36     ` eww Richard Stallman
2014-01-13 22:25       ` eww Bastien
2014-01-14  0:00         ` eww Stefan Monnier
2014-01-14  9:43           ` eww Bastien
2014-01-14 11:09             ` eww Nicolas Richard
2014-01-14 16:39               ` eww Bastien
2014-01-14 16:57                 ` eww Nicolas Richard
2014-01-14 18:21                   ` eww Bastien
2014-01-14 21:31                     ` eww Nicolas Richard
2014-01-14 22:36                       ` eww Bastien
2014-01-15 12:29                     ` eww Richard Stallman
2014-01-15 14:07                       ` eww Andreas Schwab
2014-01-15 16:10                         ` eww Nicolas Richard
2014-01-16 17:56                           ` eww Richard Stallman
2014-01-16 18:19                             ` eww Andreas Schwab
2014-01-17 14:10                               ` eww Richard Stallman
2014-01-17 15:04                                 ` eww Stefan Monnier
2014-01-17 15:28                                   ` eww Eli Zaretskii
2014-01-17 16:04                                     ` eww Stefan Monnier
2014-01-18 12:33                                   ` eww Richard Stallman
2014-01-19  2:12                                     ` eww Stefan Monnier
2014-01-19 11:35                                       ` eww Francesco Potortì
2014-01-20  9:14                                       ` eww Richard Stallman
2014-01-17 15:06                                 ` eww Andreas Schwab
2014-01-17 15:23                                 ` eww Francesco Potortì
2014-01-17 13:06                             ` eww Bastien
2014-01-17 14:22                               ` eww Stefan Monnier
2014-01-17 14:59                                 ` eww Bastien
2014-01-18  6:12                               ` eww Richard Stallman
2014-01-16 17:57                         ` eww Richard Stallman
2014-01-14 17:58             ` eww Stefan Monnier
2014-01-14 18:22               ` eww Bastien
2014-01-14 17:06           ` eww Richard Stallman
2014-01-13 22:18     ` eww Bastien
2014-01-14  0:45       ` eww Juanma Barranquero
2014-01-13 15:41   ` eww Richard Stallman
2014-01-13 18:05     ` eww Lars Magne Ingebrigtsen
2014-01-14 17:05       ` eww Richard Stallman
2014-01-14 19:39         ` eww Bastien
2014-01-15 12:29           ` eww Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2013-06-16 14:53 eww Lars Magne Ingebrigtsen
2013-06-16 15:21 ` eww Adam Sjøgren
2013-06-16 15:29   ` eww Lars Magne Ingebrigtsen
2013-06-16 15:46     ` eww Lars Magne Ingebrigtsen
2013-06-16 17:01       ` eww Dmitry Gutov
2013-06-16 17:06         ` eww Lars Magne Ingebrigtsen
2013-06-17 21:00           ` eww Lars Magne Ingebrigtsen
2013-06-17 21:13             ` eww Stefan Monnier
2013-06-17 21:30               ` eww Lars Magne Ingebrigtsen
2013-06-17 22:04                 ` eww Lars Magne Ingebrigtsen
2013-06-17 22:39                   ` eww Rasmus
2013-06-17 22:43                     ` eww Lars Magne Ingebrigtsen
2013-06-17 23:35             ` eww Ted Zlatanov
2013-06-18 12:09             ` eww Thomas Fitzsimmons
2013-06-18 14:57               ` eww Lars Magne Ingebrigtsen
2013-06-18 17:02                 ` eww Thomas Fitzsimmons
2013-06-19  8:59                   ` eww Lars Magne Ingebrigtsen
2013-06-18 17:21               ` eww Tom Tromey
2013-06-19  6:53                 ` eww Lars Magne Ingebrigtsen
2013-06-18  2:19 ` eww Tom Tromey
2013-06-18 11:23   ` eww Lars Magne Ingebrigtsen
2013-06-18 14:34     ` eww Tom Tromey
2013-06-18 15:01       ` eww Lars Magne Ingebrigtsen
2013-06-18 15:43         ` eww Tom Tromey
2013-06-18 14:39     ` eww Tom Tromey
2013-06-18 15:14       ` eww Lars Magne Ingebrigtsen
2013-06-18 15:48         ` eww Lars Magne Ingebrigtsen
2013-06-18 17:40           ` eww Eli Zaretskii
2013-06-19  1:14             ` eww Stephen J. Turnbull
2013-06-19  6:58             ` eww Lars Magne Ingebrigtsen
2013-06-19 14:50               ` eww Eli Zaretskii
2013-06-18 18:04           ` eww Karl Fogel
2013-06-18 18:29             ` eww Eli Zaretskii
2013-06-19  7:13               ` eww Lars Magne Ingebrigtsen
2013-06-19  8:43                 ` eww Andreas Schwab
2013-06-19  9:03                   ` eww Lars Magne Ingebrigtsen
2013-06-19  9:13                     ` eww Andreas Schwab
2013-06-19 12:27                 ` eww Stefan Monnier
2013-06-19 13:50                   ` eww Stefan Monnier
2013-06-19 14:02                   ` eww Lars Magne Ingebrigtsen
2013-06-21 14:03                     ` eww Stefan Monnier
2013-06-25 19:57                       ` eww Lars Magne Ingebrigtsen
2013-06-19 14:55                 ` eww Eli Zaretskii
2013-06-19 19:46                   ` eww Lars Magne Ingebrigtsen
2013-06-19 19:59                     ` eww Eli Zaretskii
2013-06-19 20:13                       ` eww Lars Magne Ingebrigtsen
2013-06-19 22:12                       ` eww Johan Bockgård
2013-06-19 20:22                     ` eww Stefan Monnier
2013-06-18 19:00           ` eww Ted Zlatanov
2013-06-18 20:19             ` eww Stefan Monnier
2013-06-18 21:37               ` eww Ted Zlatanov
2013-06-18 23:21                 ` eww Stefan Monnier
2013-06-19  4:15                   ` eww Ted Zlatanov
2013-06-19  7:22               ` eww Lars Magne Ingebrigtsen
2013-06-19 10:38               ` eww Christopher Schmidt
2013-06-19 12:35                 ` eww Stefan Monnier
2013-06-20  7:17                   ` eww Lars Magne Ingebrigtsen
2013-06-20 20:10                     ` eww Stefan Monnier
2013-06-21  6:58                       ` eww Lars Magne Ingebrigtsen
2013-06-28 15:12                         ` eww Ted Zlatanov
2013-07-06 15:17                           ` eww Lars Ingebrigtsen
2013-06-25 23:11                       ` eww Lars Magne Ingebrigtsen
2013-06-26  6:49                         ` eww Daimrod
2013-06-26 11:55                           ` eww Lars Magne Ingebrigtsen
2013-06-19  4:21           ` eww Ted Zlatanov
2013-06-19  7:25             ` eww Lars Magne Ingebrigtsen
2013-06-19 22:45               ` eww Ted Zlatanov
2013-06-20  9:01                 ` eww Lars Magne Ingebrigtsen
2013-07-01 22:48                   ` eww Ted Zlatanov
2013-07-02  6:03                     ` eww Thierry Volpiatto
2013-07-06 15:19                     ` eww Lars Ingebrigtsen
2013-07-06 22:32                       ` eww Xue Fuqiao
2013-07-06 22:57                         ` eww Lars Ingebrigtsen
2013-07-08 12:34                       ` eww Ted Zlatanov
2013-07-08 12:55                         ` eww Lars Magne Ingebrigtsen
2013-06-19  8:21             ` eww chad
2013-06-19 12:32               ` eww Stefan Monnier
2013-06-19 20:55               ` eww Juri Linkov
2013-06-19 21:16                 ` eww Tom Tromey
2013-06-19 13:50           ` eww Tom Tromey
2013-06-18 16:17         ` eww Tom Tromey
2013-06-18 16:45           ` eww Christopher Schmidt
2013-06-18 19:06           ` eww Steinar Bang
2013-06-19  6:50           ` eww Lars Magne Ingebrigtsen
2013-06-19 17:13             ` eww Tom Tromey
2013-06-19 19:31               ` eww Lars Magne Ingebrigtsen
2013-06-18 19:07     ` eww Stefan Monnier
2013-06-18 11:31   ` eww Lars Magne Ingebrigtsen
2013-06-18 14:42     ` eww Tom Tromey
2013-06-18 15:04       ` eww Lars Magne Ingebrigtsen
2013-06-18 19:13         ` eww Stefan Monnier
2013-06-18 19:17           ` eww Eli Zaretskii
2013-06-18 20:21             ` eww Stefan Monnier
2013-06-18 23:34               ` eww James Cloos
2013-06-19  2:50               ` eww Eli Zaretskii
2013-06-19  4:49                 ` eww Stefan Monnier
2013-06-19  8:17               ` eww Stephen Leake
2013-06-18 23:03             ` eww Xue Fuqiao
2013-06-18 23:56               ` eww Paul Eggert
2013-06-19  7:52                 ` eww Xue Fuqiao
2013-06-19 15:03                   ` eww Eli Zaretskii
2013-06-19  3:03               ` eww Eli Zaretskii
2013-06-18 19:27           ` eww Tom Tromey
2013-06-18 23:40     ` eww Juri Linkov
2013-06-19  0:51       ` eww Stefan Monnier
2013-06-19 10:34         ` eww Christopher Schmidt
2013-06-19  7:34       ` eww Lars Magne Ingebrigtsen
2013-06-20 22:52         ` eww Juri Linkov
2013-06-21  6:56           ` eww Lars Magne Ingebrigtsen
2013-06-19 14:06     ` eww Drew Adams
2013-06-19 15:36       ` eww Jambunathan K
2013-06-20  4:10         ` eww Richard Stallman
2013-06-20  4:28           ` eww Paul Eggert
2013-06-20  7:18           ` eww Lars Magne Ingebrigtsen
2013-06-18 11:32 ` eww joakim
2013-06-18 12:16   ` eww Andreas Schwab
2013-06-18 13:57   ` eww Lars Magne Ingebrigtsen
2013-06-18 14:01     ` eww joakim
2013-06-19 10:21 ` eww Ivan Kanis
2013-06-19 11:52   ` eww Steinar Bang
2013-06-19 12:14   ` eww Ivan Kanis
2013-08-01 11:59 ` eww John Williams
2013-08-02  0:20   ` eww John Williams
2013-08-02  0:27     ` eww Lars Magne Ingebrigtsen
2013-08-02  0:46       ` eww John Williams
2013-08-02 12:27         ` eww Lars Magne Ingebrigtsen
2013-08-02 21:39           ` eww John Williams
2013-08-03 11:08             ` eww Lars Magne Ingebrigtsen
2013-08-04  3:59               ` eww John Williams
2013-08-05  2:10                 ` eww Lars Magne Ingebrigtsen
2013-08-05  3:29                   ` eww John Williams
2013-08-07  0:46                   ` eww John Williams
2013-08-07  1:24                     ` eww Lars Magne Ingebrigtsen
2013-08-02 19:48       ` eww Richard Stallman
2013-08-03 11:30         ` eww Lars Magne Ingebrigtsen

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=87zjn0gmas.fsf@bzg.ath.cx \
    --to=bzg@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    --cc=rms@gnu.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).