From: Utkarsh Singh <utkarsh190601@gmail.com>
To: 49018@debbugs.gnu.org
Subject: bug#49018: 28.0.50; [PATCH] Add tex-start-options to tex-compile-commands
Date: Mon, 14 Jun 2021 15:06:36 +0530 [thread overview]
Message-ID: <87h7i0hjob.fsf@gmail.com> (raw)
Hi,
Tex-mode support a defcustom called `tex-start-options' which can be
used to provide command line options to Tex programs but
`tex-compile-command' variable ignores this defcustom which is used in
function `tex-compile' to compile Tex documents.
LaTex provides a package called 'minted' which is a generic syntax
highlighter, it requires '--shell-escape' as command line option to work
properly.
From 22eb119d897077ad42c7d345977979e385bd16ed Mon Sep 17 00:00:00 2001
From: Utkarsh Singh <utkarsh190601@gmail.com>
Date: Mon, 14 Jun 2021 14:51:23 +0530
Subject: [PATCH] tex-mode.el: Add tex-start-options to tex-compile-commands
---
lisp/textmodes/tex-mode.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index a805c8952f..8b8108cb97 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -2132,6 +2132,7 @@ tex-use-reftex
(defvar tex-compile-commands
`(,@(mapcar (lambda (prefix)
`((concat ,prefix tex-command
+ " " tex-start-options
" " (if (< 0 (length tex-start-commands))
(shell-quote-argument tex-start-commands))
" %f")
--
2.32.0
--
Utkarsh Singh
http://utkarshsingh.xyz
next reply other threads:[~2021-06-14 9:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-14 9:36 Utkarsh Singh [this message]
2021-06-14 13:15 ` bug#49018: 28.0.50; [PATCH] Add tex-start-options to tex-compile-commands Lars Ingebrigtsen
2021-06-14 17:10 ` Utkarsh Singh
2021-06-15 13:48 ` Lars Ingebrigtsen
2021-06-22 3:39 ` Utkarsh Singh
2021-06-22 13:08 ` 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=87h7i0hjob.fsf@gmail.com \
--to=utkarsh190601@gmail.com \
--cc=49018@debbugs.gnu.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).