From: Eli Zaretskii <eliz@gnu.org>
To: Visuwesh <visuweshm@gmail.com>
Cc: 73638@debbugs.gnu.org, tsdh@gnu.org
Subject: bug#73638: 31.0.50; doc-view: imenu index cannot be made for LaTeX PDFs
Date: Sun, 06 Oct 2024 09:39:47 +0300 [thread overview]
Message-ID: <86frp9vioc.fsf@gnu.org> (raw)
In-Reply-To: <87ttdphhir.fsf@gmail.com> (message from Visuwesh on Sun, 06 Oct 2024 11:58:28 +0530)
> From: Visuwesh <visuweshm@gmail.com>
> Cc: Tassilo Horn <tsdh@gnu.org>, 73638@debbugs.gnu.org
> Date: Sun, 06 Oct 2024 11:58:28 +0530
>
> > Can't we invoke the JS interpreter with this script as the command, or
> > invoke it as async subprocess and pipe the script to it via standard
> > input?
>
> When "mutool run" is called without any script argument, it opens a
> REPL. We would need to `process-send-string' to the REPL but the REPL
> reports syntax error when I try to do so. This is after trying to
> "minify" the JS script. Maybe I am doing something wrong. I've
> attached my test lisp at the end.
>
> I do not understand what you suggest by the former however.
Many programs that include an interpreter can accept a script either
as a file or as a string passed through the command line, with or
without a special command-line option. One example is Awk, another is
Python.
In any case, the process-send-string method sounds like the best
alternative to me, so I hope someone will explain how to do it
correctly (does mutool have some forum where you could ask
questions?). If that is unworkable for some reason, I guess
generating a temporary file with the script is the next thing I would
try.
Thanks.
next prev parent reply other threads:[~2024-10-06 6:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-05 11:06 bug#73638: 31.0.50; doc-view: imenu index cannot be made for LaTeX PDFs Visuwesh
2024-10-05 19:56 ` Tassilo Horn
2024-10-06 5:42 ` Eli Zaretskii
2024-10-06 6:28 ` Visuwesh
2024-10-06 6:39 ` Eli Zaretskii [this message]
2024-10-06 8:16 ` Tassilo Horn
2024-10-06 10:32 ` Visuwesh
2024-10-06 11:26 ` Tassilo Horn
2024-10-06 12:32 ` Visuwesh
2024-10-07 7:02 ` Tassilo Horn
2024-10-07 9:26 ` Visuwesh
2024-10-07 9:55 ` Visuwesh
2024-10-07 11:03 ` Tassilo Horn
2024-10-07 12:53 ` Visuwesh
2024-10-07 15:04 ` Tassilo Horn
2024-10-08 9:44 ` Visuwesh
2024-10-08 15:43 ` Tassilo Horn
2024-10-06 6:39 ` Visuwesh
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86frp9vioc.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=73638@debbugs.gnu.org \
--cc=tsdh@gnu.org \
--cc=visuweshm@gmail.com \
/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 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.