From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#14751: 24.3.50; Global binding and a tool bar icon for browsing the web Date: Wed, 03 Jul 2013 01:51:56 +0300 Organization: JURTA Message-ID: <87sizwlgmr.fsf@mail.jurta.org> References: <87d2r489xy.fsf@gmail.com> <04d78985-6c3b-4d3d-b0e8-86affa285d2a@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372806975 1199 80.91.229.3 (2 Jul 2013 23:16:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jul 2013 23:16:15 +0000 (UTC) Cc: Jambunathan K , 14751@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 03 01:16:16 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Uu9o0-00067L-1e for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jul 2013 01:16:16 +0200 Original-Received: from localhost ([::1]:44559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uu9nz-0005wS-KX for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jul 2013 19:16:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uu9nr-0005pv-QH for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2013 19:16:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uu9nn-0005Fa-Aa for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2013 19:16:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uu9nn-0005F9-4v for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2013 19:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Uu9nm-0001Yn-Mh for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2013 19:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Jul 2013 23:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14751-submit@debbugs.gnu.org id=B14751.13728069255934 (code B ref 14751); Tue, 02 Jul 2013 23:16:02 +0000 Original-Received: (at 14751) by debbugs.gnu.org; 2 Jul 2013 23:15:25 +0000 Original-Received: from localhost ([127.0.0.1]:53110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uu9nA-0001XZ-T8 for submit@debbugs.gnu.org; Tue, 02 Jul 2013 19:15:25 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:41496 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uu9n7-0001XJ-V0 for 14751@debbugs.gnu.org; Tue, 02 Jul 2013 19:15:22 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 7E92D258B9E91C; Tue, 2 Jul 2013 16:15:20 -0700 (PDT) In-Reply-To: <04d78985-6c3b-4d3d-b0e8-86affa285d2a@default> (Drew Adams's message of "Sun, 30 Jun 2013 16:24:11 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:75822 Archived-At: > It is helpful to have a key that follows a URL at point. `M-x ffap-bindings RET C-x C-f http://www.gnu.org/software/emacs/ RET' > (I do suggest adding the start-browsing command to a menu, though.) === modified file 'lisp/menu-bar.el' --- lisp/menu-bar.el 2013-02-25 21:10:59 +0000 +++ lisp/menu-bar.el 2013-07-02 22:47:53 +0000 @@ -1490,6 +1490,8 @@ (defvar menu-bar-tools-menu (bindings--define-key menu [separator-net] menu-bar-separator) + (bindings--define-key menu [browse-web] + '(menu-item "Browse the Web..." eww)) (bindings--define-key menu [directory-search] '(menu-item "Directory Search" eudc-tools-menu)) (bindings--define-key menu [compose-mail] Also since it's verified that `eww' can correctly display gnu.org pages without problems, the link "Emacs Guided Tour" on the start page could be opened using eww (with an additional benefit of demonstrating to newbies that Emacs can be used to browse the Web): === modified file 'lisp/startup.el' --- lisp/startup.el 2013-06-30 22:29:23 +0000 +++ lisp/startup.el 2013-07-02 22:44:38 +0000 @@ -1674,6 +1674,7 @@ (defun fancy-startup-screen (&optional c (insert "\n") (fancy-startup-tail concise)) (use-local-map splash-screen-keymap) + (setq-local browse-url-browser-function 'eww-browse-url) (setq tab-width 22 buffer-read-only t) (set-buffer-modified-p nil) @@ -1711,6 +1712,7 @@ (defun fancy-about-screen () (goto-char (point-min)) (force-mode-line-update)) (use-local-map splash-screen-keymap) + (setq-local browse-url-browser-function 'eww-browse-url) (setq tab-width 22) (setq buffer-read-only t) (goto-char (point-min))