all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.