* Re: master 31be4d7: Add a way to use an external command to download HTML in eww
@ 2020-09-18 11:34 Mauro Aranda
2020-09-18 13:03 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Mauro Aranda @ 2020-09-18 11:34 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: emacs-devel
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: master 31be4d7: Add a way to use an external command to download HTML in eww
2020-09-18 11:34 master 31be4d7: Add a way to use an external command to download HTML in eww Mauro Aranda
@ 2020-09-18 13:03 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-18 13:03 UTC (permalink / raw)
To: Mauro Aranda; +Cc: emacs-devel
Mauro Aranda <maurooaranda@gmail.com> writes:
> 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'?
Yup. Now fixed.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-18 13:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-18 11:34 master 31be4d7: Add a way to use an external command to download HTML in eww Mauro Aranda
2020-09-18 13:03 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.