From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: shortest amount of keystrokes to see URL in an external browser Date: Fri, 24 Jun 2011 16:34:24 -0700 Message-ID: References: <8762nuakkx.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1308958572 594 80.91.229.12 (24 Jun 2011 23:36:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Jun 2011 23:36:12 +0000 (UTC) To: help-gnu-emacs@gnu.org, jidanni@jidanni.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 25 01:36:08 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QaFuy-0002u1-L0 for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Jun 2011 01:36:08 +0200 Original-Received: from localhost ([::1]:48330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaFux-00047n-Sd for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jun 2011 19:36:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaFtQ-00047X-P9 for help-gnu-emacs@gnu.org; Fri, 24 Jun 2011 19:34:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QaFtP-0008Qe-Kj for help-gnu-emacs@gnu.org; Fri, 24 Jun 2011 19:34:32 -0400 Original-Received: from p3plsmtpa01-07.prod.phx3.secureserver.net ([72.167.82.87]:54708) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QaFtP-0008QZ-8p for help-gnu-emacs@gnu.org; Fri, 24 Jun 2011 19:34:31 -0400 Original-Received: (qmail 12359 invoked from network); 24 Jun 2011 23:34:27 -0000 Original-Received: from unknown (209.85.161.41) by p3plsmtpa01-07.prod.phx3.secureserver.net (72.167.82.87) with ESMTP; 24 Jun 2011 23:34:27 -0000 Original-Received: by fxg9 with SMTP id 9so121667fxg.0 for ; Fri, 24 Jun 2011 16:34:25 -0700 (PDT) Original-Received: by 10.223.143.67 with SMTP id t3mr5073423fau.105.1308958465576; Fri, 24 Jun 2011 16:34:25 -0700 (PDT) Original-Received: by 10.223.73.201 with HTTP; Fri, 24 Jun 2011 16:34:24 -0700 (PDT) In-Reply-To: <8762nuakkx.fsf@jidanni.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 72.167.82.87 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81430 Archived-At: On Fri, Jun 24, 2011 at 4:14 PM, wrote: > It turns out I need to re-engineer the entire > > (defun find-file-at-point (&optional filename) > =A0"Find FILENAME, guessing a default from text around point. > If `ffap-url-regexp' is not nil, the FILENAME may also be an URL. > With a prefix, this command behaves exactly like `ffap-file-finder'. > If `ffap-require-prefix' is set, the prefix meaning is reversed. > See also the variables `ffap-dired-wildcards', `ffap-newfile-prompt', > and the functions `ffap-file-at-point' and `ffap-url-at-point'." > =A0(interactive) > > to make the prefix to now mean "use and external browser", to achieve > what I want. > > Oh woe is me. > > There is > > no way > > old > > me > > is going to get involved in that. If you got as far as looking at the code for `find-file-at-point', perhaps it occurred to you to customize `ffap-url-fetcher' to `browse-url-firefox'? :-) -PJ