From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan =?iso-8859-1?Q?Reich=F6r?= Newsgroups: gmane.emacs.help Subject: Re: URL Browsing Behaviour with find-file-at-point() Date: Tue, 10 Jul 2007 22:15:11 +0200 Organization: Tele2UTA Telecommunications GmbH Message-ID: <874pkcrp68.fsf@utanet.at> References: <1184016446.239950.232900@c77g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1184100034 2321 80.91.229.12 (10 Jul 2007 20:40:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Jul 2007 20:40:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 10 22:40:31 2007 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.50) id 1I8MVa-0008Mg-K3 for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jul 2007 22:40:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8MVa-0000rP-5X for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jul 2007 16:40:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newshunter!cosy.sbg.ac.at!newsfeed.utanet.at!newsreader2.utanet.at!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: linzu2-215-239.utaonline.at Original-X-Trace: newsreader2.utanet.at 1184098579 19183 212.152.215.239 (10 Jul 2007 20:16:19 GMT) Original-X-Complaints-To: abuse@uta.at Original-NNTP-Posting-Date: Tue, 10 Jul 2007 20:16:19 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) Cancel-Lock: sha1:8QtocsB8AXjMZngsRa4hwVhwkN4= Original-Xref: shelby.stanford.edu gnu.emacs.help:149992 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:45577 Archived-At: Nordlöw writes: > Hello again, Hackers > > Browsing an URL such as http://www.xsteve.at/prg/emacs/psvn.el > with the command find-file-at-point() opens the file in my web > browser. > It would like this command to open all URLs matching auto-mode-alist > directly in an Emacs instead. How can I achieve this? Hm. Since you did some advertisement for my homepage, I will try to help you ;-) You could use the emacs-wget interface: http://pop-club.hp.infoseek.co.jp/emacs/emacs-wget/ http://pop-club.hp.infoseek.co.jp/emacs/emacs-wget/USAGE The just type M-x wget RET The file is downloaded to the folder ~/download I have added the the following customization to open the downloaded file: (defun wget-open-downloaded-file () (let* ((dir (cdr (assoc proc wget-process-dir-alist))) (file (or (cdr (assoc proc wget-process-saved-alist)) (wget-process-file-name proc))) (full-file-name (expand-file-name file dir))) (message "downloaded %s" full-file-name) (find-file full-file-name))) (add-hook 'wget-after-hook 'wget-open-downloaded-file) Stefan.