On Sat, 2023-03-25 at 17:05 +0300, Eli Zaretskii wrote: > > From: lux > > Cc: 62435@debbugs.gnu.org > > Date: Sat, 25 Mar 2023 21:42:44 +0800 > > > > > > +(defcustom eww-default-download-directory "~/Downloads/" > > +  "The default directory where downloaded files will be saved." > > +  :version "29.0" >               ^^^^^^ > This should be "30.1". > > >  (defun eww--download-directory () > >    "Return the name of the download directory. > >  If ~/Downloads/ exists, that will be used, and if not, the > >  DOWNLOAD XDG user directory will be returned.  If that's > >  undefined, ~/Downloads/ is returned anyway." > > -  (or (and (file-exists-p "~/Downloads/") > > -           "~/Downloads/") > > +  (or (and (file-exists-p eww-default-download-directory) > > +           eww-default-download-directory) > >        (when-let ((dir (xdg-user-dir "DOWNLOAD"))) > >          (file-name-as-directory dir)) > > -      "~/Downloads/")) > > +      eww-default-download-directory)) > > Please update the doc string as well. > > Done, please review, thank you.