From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Open Hypspec with w3m Date: Fri, 28 Jan 2011 18:05:34 -0500 Organization: A noiseless patient Spider Message-ID: References: <87bp30bzdg.fsf@notengoamigos.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296259023 25454 80.91.229.12 (28 Jan 2011 23:57:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Jan 2011 23:57:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 29 00:56:59 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PiyBX-0004zm-Cq for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Jan 2011 00:56:59 +0100 Original-Received: from localhost ([127.0.0.1]:42214 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PixyE-0005Vx-UR for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Jan 2011 18:43:14 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Injection-Info: mx02.eternal-september.org; posting-host="KHcuAMW8RJ/5FQppbCjjnQ"; logging-data="12329"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TbD5UXKZO/XCeVO9eSpEn" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:5IqTm24G94auVbher7BSfGyAcx8= sha1:7UzpRNFXb65Sgb/r2s3DvHbEIOU= Original-Xref: usenet.stanford.edu gnu.emacs.help:184661 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78814 Archived-At: > So is there a way to override 'hyperspec-lookup so that it always > behaves as if browse-url-browser-function was 'w3m-browse-url? You can use defadvice (with `around' advice) on hyperspec-lookup to let-bind browse-url-browser-function for the duration of that function. Stefan PS: Another attack vector is to globally set browse-url-browser-function to a function that either invokes emacs-23m or firefox depending on the URL. Some Emacs maintainer I know might even be willing to accept patches to provide such a feature more generally, e.g. via a configuration variable that lists URL patterns that should use emacs-w3m.