all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Instruct emacs --batch to wait for something
@ 2021-11-17 16:41 Rodrigo Morales
  2021-11-18 16:20 ` Marcin Borkowski
  0 siblings, 1 reply; 3+ messages in thread
From: Rodrigo Morales @ 2021-11-17 16:41 UTC (permalink / raw)
  To: help-gnu-emacs


I'm trying to use Emacs as a tool for getting the text representation of
a website. For doing this, I'm using "eww" and I've written the
following command that I intend to use in the command line.

#+begin_src bash
emacs \
  --batch \
  --eval='(eww "https://www.gnu.org/software/emacs/manual/html_node/emacs/Intro.html")' \
  --eval='(with-current-buffer "*eww*" (princ (buffer-string)))'
#+end_src

The problem with this command is that it shows the following instead of
showing the website.

#+RESULTS:
#+begin_example
Loading https://www.gnu.org/software/emacs/manual/html_node/emacs/Intro.html...
#+end_example

My question is: How can I instruct Emacs to wait for something when the
=--batch= flag is used?



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-18 19:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-17 16:41 Instruct emacs --batch to wait for something Rodrigo Morales
2021-11-18 16:20 ` Marcin Borkowski
2021-11-18 19:05   ` Rodrigo Morales

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.