[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

visiting remote files on webserver

From: lee
Subject: visiting remote files on webserver
Date: Sun, 17 Aug 2014 14:58:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)


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."
  (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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]