]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor fixes for last change
authorEli Zaretskii <eliz@gnu.org>
Fri, 8 Feb 2019 07:53:32 +0000 (09:53 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 8 Feb 2019 07:53:32 +0000 (09:53 +0200)
* etc/NEWS: Announce the change in EWW download behavior.

* lisp/net/eww.el (eww-download): Doc fix.  (Bug#34291)

etc/NEWS
lisp/net/eww.el

index 7ee49bf6b5451132616207d44411395cc88d2a56..75c8dc0b8e02b0fdee08ebcc4f18037ce64c388d 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -654,6 +654,11 @@ and its value has been changed to Duck Duck Go.
 
 ** eww/shr
 
++++
+*** The 'd' ('eww-download') command now falls back to current page's URL.
+If this command is invoked with no URL at point, it now downloads the
+current page instead of signaling an error.
+
 *** When opening external links in eww/shr (typically with the
 'C-u RET' keystroke on a link), the link will be flashed with the new
 'shr-selected-link' face to give the user feedback that the command
index 0c8bffa579ba7b390aa79c25ea1e80d819647cfe..a3f22aeb8a0ea71f32eb3ad3d82b5baa02d57b50 100644 (file)
@@ -1532,7 +1532,7 @@ Differences in #targets are ignored."
 
 (defun eww-download ()
   "Download URL to `eww-download-directory'.
-Use link under point if there is one, else the current page URL."
+Use link at point if there is one, else the current page's URL."
   (interactive)
   (access-file eww-download-directory "Download failed")
   (let ((url (or (get-text-property (point) 'shr-url)