From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard G Riley Subject: Re: Following HTML link from org-mode in existing w3m Date: Fri, 18 Jul 2008 18:57:54 +0200 Message-ID: References: <87d4lb9q4l.fsf@debian-asztal.csanyi-pal.info> <877ibj2nqx.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJtHM-0002Ce-MG for emacs-orgmode@gnu.org; Fri, 18 Jul 2008 12:58:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJtHL-0002CO-9v for emacs-orgmode@gnu.org; Fri, 18 Jul 2008 12:58:00 -0400 Received: from [199.232.76.173] (port=35957 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJtHL-0002CL-57 for emacs-orgmode@gnu.org; Fri, 18 Jul 2008 12:57:59 -0400 Received: from yx-out-1718.google.com ([74.125.44.156]:60174) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJtHK-0001R0-TT for emacs-orgmode@gnu.org; Fri, 18 Jul 2008 12:57:59 -0400 Received: by yx-out-1718.google.com with SMTP id 34so136291yxf.66 for ; Fri, 18 Jul 2008 09:57:57 -0700 (PDT) In-Reply-To: <877ibj2nqx.fsf@bzg.ath.cx> (Bastien Guerry's message of "Fri, 18 Jul 2008 17:52:38 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Guerry Cc: emacs-orgmode@gnu.org Bastien Guerry writes: > Manish writes: > >> > I wish that that the html: link in org-mode can be opened in an >> > existing w3m window. Is this possible? >> >> Should be, it's Emacs after all. Try customizing group browse-url. > > I use this: > > (setq browse-url-browser-function 'w3m-browse-url) You might also be interested in this (global-set-key (quote [f4]) (lambda() (interactive) (cond ((setq url (w3m-url-valid (w3m-anchor))) (browse-url-firefox url)) (t (command-execute 'browse-url-firefox))))) (setq browse-url-browser-function 'w3m-browse-url) Here I can open a "link" in an html email/post in external firefox using F4 but standard return is w3m. There are many pages where w3m doesn't cut the mustard. The "cond" statement above extracts the url from a formatted link in an html article/mail in a w3m/gnus-html buffer.