From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Rename `eww' to `web' Date: Fri, 05 Jul 2013 03:04:18 +0300 Organization: JURTA Message-ID: <878v1lamn9.fsf@mail.jurta.org> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372983346 20278 80.91.229.3 (5 Jul 2013 00:15:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2013 00:15:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Pascal J. Bourguignon" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 05 02:15:46 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 1Uutgg-0007jI-1F for ged-emacs-devel@m.gmane.org; Fri, 05 Jul 2013 02:15:46 +0200 Original-Received: from localhost ([::1]:60007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uutgf-00006L-JM for ged-emacs-devel@m.gmane.org; Thu, 04 Jul 2013 20:15:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uutga-00005m-9E for emacs-devel@gnu.org; Thu, 04 Jul 2013 20:15:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UutgW-0006Q8-35 for emacs-devel@gnu.org; Thu, 04 Jul 2013 20:15:40 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:35042 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UutgV-0006Pv-OS for emacs-devel@gnu.org; Thu, 04 Jul 2013 20:15:35 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 60188258B9E915; Thu, 4 Jul 2013 17:15:34 -0700 (PDT) In-Reply-To: <87obaixhkr.fsf@informatimago.com> (Pascal J. Bourguignon's message of "Thu, 04 Jul 2013 21:15:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 69.163.218.105 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:161552 Archived-At: > Let's just have a configuration module that let map user interface > commands to the selected package. > > 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* Maybe something like (defcustom browse-web-function 'eww "Function to start WWW browsing." :type '(choice (function-item :tag "eww" :value eww) ...)) (defun browse-web (url) (interactive "sEnter URL or keywords: ") (funcall browse-web-function url)) Then external packages could register themselves by adding more alternatives to this user option by calling at the end of e.g. the w3m package: (custom-add-option 'browse-web-function '(function-item :tag "w3m" :value w3m))