From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.devel Subject: Re: Rename `eww' to `web' Date: Fri, 5 Jul 2013 07:37:05 +0200 Message-ID: <721BE148-C02C-4BD6-A5E6-555EC6FD7517@informatimago.com> References: <8738s087wj.fsf@gmail.com> <87bo6mjv4s.fsf@lifelogs.com> <871u7gavwx.fsf@catnip.gol.com> <87obaj39sc.fsf@lifelogs.com> <4btxkb7gw7.fsf@fencepost.gnu.org> <87k3l72z81.fsf@lifelogs.com> <87obaixhkr.fsf@informatimago.com> <878v1lamn9.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1373003625 24701 80.91.229.3 (5 Jul 2013 05:53:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2013 05:53:45 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 05 07:53:45 2013 Return-path: Envelope-to: ged-emacs-devel@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 1Uuyxk-0001Vy-Oq for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 07:53:44 +0200 Original-Received: from localhost ([::1]:56943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uuyxj-0005gs-P5 for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 01:53:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uuykb-0004MG-F0 for emacs-devel@gnu.org; Fri, 05 Jul 2013 01:40:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uuyka-0000OM-Hd for emacs-devel@gnu.org; Fri, 05 Jul 2013 01:40:09 -0400 Original-Received: from voyager.informatimago.com ([88.198.62.69]:46379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uuyka-00005O-C3 for emacs-devel@gnu.org; Fri, 05 Jul 2013 01:40:08 -0400 Original-Received: from [192.168.7.192] (AMontsouris-651-1-34-198.w82-123.abo.wanadoo.fr [82.123.109.198]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by voyager.informatimago.com (Postfix) with ESMTPSA id 6C3C743C1A6; Fri, 5 Jul 2013 07:39:55 +0200 (CEST) In-Reply-To: <878v1lamn9.fsf@mail.jurta.org> X-Mailer: iPad Mail (9B206) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 88.198.62.69 X-Mailman-Approved-At: Fri, 05 Jul 2013 01:53:41 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161558 Archived-At: On 05/07/2013, at 02:04, Juri Linkov wrote: >> Let's just have a configuration module that let map user interface >> commands to the selected package. >>=20 >> M-x mail --> vm, gnus, mew, or whatever. >> M-x news --> gnus or something else. >> M-x web --> w3m, www, eww or whatever. >> M-x elisp -> ielm or *scratch* >=20 > Maybe something like >=20 > (defcustom browse-web-function 'eww > "Function to start WWW browsing." > :type '(choice > (function-item :tag "eww" :value eww) > ...)) >=20 > (defun browse-web (url) > (interactive "sEnter URL or keywords: ") > (funcall browse-web-function url)) >=20 > Then external packages could register themselves by adding more alternativ= es > to this user option by calling at the end of e.g. the w3m package: >=20 > (custom-add-option 'browse-web-function '(function-item :tag "w3m" :value= w3m)) Indeed, for browse-url, there's already something in place. I'm suggesting i= t could be generalized, by defining generic user interface commands for seve= ral applications. --=20 __Pascal Bourguignon__=