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

Re: saving a buffer without images [PATCH attached]



On 2016-09-18 09:59, Boruch Baum wrote:
> I agree with Kevin on all points. Here's my patch for one, and my
> comment for the other.
>
> On 2016-09-10 12:54, Kevin Ryde wrote:
> > In the filename query "Save this page to:", could it say what it's about
> > to save, ie. html only or with images?
>
> Patch attached.

I don't like my own patch. A lisp-ier way would be to place the 'if'
statement withing the 'read-file-name' statement and eliminate the
variable 'save-prompt', ie.

  (list (read-file-name
    (if (not w3m-save-buffer-html-only)
       "Save this page (with images) to: "
      "Save this page (html only) to: ")

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0