1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 22:41:06 -08:00

; * lisp/net/eww.el (eww-download): Doc fix (bug#75585)

This commit is contained in:
Eli Zaretskii 2025-01-18 12:56:48 +02:00
parent 45ec5865aa
commit 853719c4c2

View file

@ -2162,8 +2162,16 @@ Differences in #targets are ignored."
(kill-new (plist-get eww-data :url))) (kill-new (plist-get eww-data :url)))
(defun eww-download () (defun eww-download ()
"Download URL to `eww-download-directory'. "Download a Web page to `eww-download-directory'.
Use link at point if there is one, else the current page's URL." Use link at point if there is one, else the current page's URL.
This command downloads the page to the download directory, under
a file name generated from the last portion of the page's URL,
after the last slash. (If URL ends in a slash, the page will be
saved under the name \"!\".)
If there's already a file by that name in the download directory,
this command will modify the name to make it unique.
The command shows in the echo-area the actual file name where the
page was saved."
(interactive nil eww-mode) (interactive nil eww-mode)
(let ((dir (if (stringp eww-download-directory) (let ((dir (if (stringp eww-download-directory)
eww-download-directory eww-download-directory