]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/net/eww.el (eww-download): Doc fix (bug#75585)
authorEli Zaretskii <eliz@gnu.org>
Sat, 18 Jan 2025 10:56:48 +0000 (12:56 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 18 Jan 2025 22:03:32 +0000 (23:03 +0100)
(cherry picked from commit 853719c4c23a4ae0802a6eed3f855dc88381997f)

lisp/net/eww.el

index dabc5eee98789ffee9d57e7c721da2dfe0ee0c5e..632c2a1437efb9a9d0873a16e7ad34252c37b146 100644 (file)
@@ -2209,8 +2209,16 @@ Differences in #targets are ignored."
   (kill-new (plist-get eww-data :url)))
 
 (defun eww-download ()
-  "Download URL to `eww-download-directory'.
-Use link at point if there is one, else the current page's URL."
+  "Download a Web page to `eww-download-directory'.
+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)
   (let ((dir (if (stringp eww-download-directory)
                  eww-download-directory