all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* URL Browsing Behaviour with find-file-at-point()
@ 2007-07-09 21:27 Nordlöw
  2007-07-09 22:29 ` Peter Dyballa
  2007-07-10 20:15 ` Stefan Reichör
  0 siblings, 2 replies; 3+ messages in thread
From: Nordlöw @ 2007-07-09 21:27 UTC (permalink / raw)
  To: help-gnu-emacs

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?

Thanks in advance,

/Nordlöw

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: URL Browsing Behaviour with find-file-at-point()
  2007-07-09 21:27 URL Browsing Behaviour with find-file-at-point() Nordlöw
@ 2007-07-09 22:29 ` Peter Dyballa
  2007-07-10 20:15 ` Stefan Reichör
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Dyballa @ 2007-07-09 22:29 UTC (permalink / raw)
  To: Nordlöw; +Cc: help-gnu-emacs


Am 09.07.2007 um 23:27 schrieb Nordlöw:

> It would like this command to open all URLs matching auto-mode-alist
> directly in an Emacs instead. How can I achieve this?

The variable browse-url-browser-function should give some clues.

--
Greetings

   Pete

   Basic, n.:
A programming language.  Related to certain social diseases in
that those who have it will not admit it in polite company.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: URL Browsing Behaviour with find-file-at-point()
  2007-07-09 21:27 URL Browsing Behaviour with find-file-at-point() Nordlöw
  2007-07-09 22:29 ` Peter Dyballa
@ 2007-07-10 20:15 ` Stefan Reichör
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Reichör @ 2007-07-10 20:15 UTC (permalink / raw)
  To: help-gnu-emacs

Nordlöw <per.nordlow@gmail.com> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-10 20:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-09 21:27 URL Browsing Behaviour with find-file-at-point() Nordlöw
2007-07-09 22:29 ` Peter Dyballa
2007-07-10 20:15 ` Stefan Reichör

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.