unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mauro Aranda <maurooaranda@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: master 31be4d7: Add a way to use an external command to download HTML in eww
Date: Fri, 18 Sep 2020 08:34:07 -0300	[thread overview]
Message-ID: <CABczVwe+Q88g8PK4f_gng-jd564xmMA_Nr7XuRW9mQV-7j+_Qw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2314 bytes --]

larsi@gnus.org (Lars Ingebrigtsen) writes:

> branch: master
> commit 31be4d7ca48fd21bdcd5428ce4164790efd39099
> Author: Lars Ingebrigtsen <larsi@gnus.org>
> Commit: Lars Ingebrigtsen <larsi@gnus.org>
>
>     Add a way to use an external command to download HTML in eww
>
>     * doc/misc/eww.texi (Advanced): Document it.
>
>     * lisp/net/eww.el (eww-retrieve): New function.
>     (eww-reload): Use it.
>     (eww): Ditto.
>     (eww-retrieve-command): New variable.
> ---
>  doc/misc/eww.texi | 17 +++++++++++++++++
>  etc/NEWS          |  5 +++++
>  lisp/net/eww.el   | 32 ++++++++++++++++++++++++++++++--
>  3 files changed, 52 insertions(+), 2 deletions(-)
>
> diff --git a/doc/misc/eww.texi b/doc/misc/eww.texi
> index 85be112..e814d0a 100644
> --- a/doc/misc/eww.texi
> +++ b/doc/misc/eww.texi
> @@ -212,6 +212,23 @@ in an external browser by customizing
>  @node Advanced
>  @chapter Advanced
>
> +@findex eww-retrieve-command
> +  EWW normally uses @code{url-retrieve} to fetch the @acronym{HTML}
> +before rendering it. It can sometimes be convenient to use an external
> +program to do this, and @code{eww-retrieve-command} should then be a
> +list that specifies a command and the parameters.  For instance, to
> +use the Chromium browser, you could say something like this:
> +
> +@lisp
> +(setq eww-retrieve-command
> +      '("chromium" "--headless"
> +    "--virtual-time-budget=3000"
> +    "--dump-dom"))
> +@end lisp

[...]

> diff --git a/lisp/net/eww.el b/lisp/net/eww.el
> index 07aa48a..bc23fb9 100644
> --- a/lisp/net/eww.el
> +++ b/lisp/net/eww.el
> @@ -134,6 +134,15 @@ The string will be passed through
`substitute-command-keys'."
>    :type '(choice (const :tag "Unlimited" nil)
>                   integer))
>
> +(defcustom eww-retrieve-command nil
> +  "Command to retrieve an URL via an external program.
> +If nil, `url-retrieve' is used to download the data.  If non-nil,
> +this should be a list where the first item is the program, and
> +the rest are the arguments."
> +  :version "28.1"
> +  :type '(choice (const :tag "Use `url-retrieve'" nil)
> +                 (list string)))
> +

The docstring and the example says that the variable can be a list of
strings.  But the type says it can be a list of only one element, a
string.  Did you mean `repeat' instead of `list'?

[-- Attachment #2: Type: text/html, Size: 3022 bytes --]

             reply	other threads:[~2020-09-18 11:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-18 11:34 Mauro Aranda [this message]
2020-09-18 13:03 ` master 31be4d7: Add a way to use an external command to download HTML in eww Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABczVwe+Q88g8PK4f_gng-jd564xmMA_Nr7XuRW9mQV-7j+_Qw@mail.gmail.com \
    --to=maurooaranda@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).