unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* visiting remote files on webserver
@ 2014-08-17 12:58 lee
  2014-08-17 16:24 ` saint
  0 siblings, 1 reply; 10+ messages in thread
From: lee @ 2014-08-17 12:58 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

isn't something like the following already available by default:


(defun my-curl-find-file ()
  "Use curl to retrieve something and create a buffer to display what
was retrieved.

What to use as source and the name of a new buffer to insert the
output of curl into are being read from the minibuffer."
  (interactive)
  (let ((source (read-from-minibuffer "Retrieve: "))
	(dest-buffer-name (read-from-minibuffer "Into buffer: ")))
    (unless (or (string-equal "" source)
		(string-equal "" dest-buffer-name))
      (switch-to-buffer dest-buffer-name)
      (call-process "curl" nil t t "-sS" source))))


Since I couldn't find anything like that as part of emacs, I came up
with the above.  It works fine, though it seems unlikely that this isn't
already implemented.


-- 
Knowledge is volatile and fluid.  Software is power.



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

end of thread, other threads:[~2014-08-22 12:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-17 12:58 visiting remote files on webserver lee
2014-08-17 16:24 ` saint
2014-08-17 20:45   ` lee
2014-08-18  0:26     ` Eric Abrahamsen
2014-08-18 18:30       ` lee
2014-08-19  1:45         ` Eric Abrahamsen
2014-08-21 19:32           ` lee
2014-08-22  1:16             ` Eric Abrahamsen
2014-08-22  3:30             ` Stefan Monnier
2014-08-22 12:19             ` ken

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).