[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 9e1aa85d6d7ee84a12503
From: |
Ikumi Keita |
Subject: |
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 9e1aa85d6d7ee84a12503a1dee62785c12e64ac1 |
Date: |
Fri, 29 Sep 2017 13:53:05 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".
The branch, master has been updated
via 9e1aa85d6d7ee84a12503a1dee62785c12e64ac1 (commit)
from 20b6fd0d1cb46a9069ece92ebbc2ca05910f04d5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9e1aa85d6d7ee84a12503a1dee62785c12e64ac1
Author: Ikumi Keita <address@hidden>
Date: Fri Sep 22 05:36:20 2017 +0900
Make preview-latex parsing robust to fix Bug#20773, Bug#27088
* preview.el.in (TeX-inline-preview-internal): Set environment
variable max_print_line to sufficiently large value of 1000 so that
LaTeX process does not insert newline in lines necessary to identify
Bounding Boxes.
diff --git a/preview.el.in b/preview.el.in
index 8bde248..e09ef9a 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -3537,19 +3537,25 @@ internal parameters, STR may be a log to insert into
the current log."
((preview-format-name (shell-quote-argument
(preview-dump-file-name
(file-name-nondirectory master))))
+ (process-environment process-environment)
(process
- (TeX-run-command
- "Preview-LaTeX"
- (if (consp (cdr dumped-cons))
- (preview-do-replacements
- command
- (append preview-undump-replacements
- ;; Since the command options provided in
- ;; (TeX-engine-alist) are dropped, give them
- ;; back.
- (list (list "\\`\\([^ ]+\\)"
- (TeX-command-expand "%(PDF)%(latex)" nil)))))
- command) file)))
+ (progn
+ ;; Fix Bug#20773, Bug#27088.
+ ;; Make LaTeX not to insert newline in lines necessary to
+ ;; identify Bounding Boxes.
+ (setenv "max_print_line" "1000")
+ (TeX-run-command
+ "Preview-LaTeX"
+ (if (consp (cdr dumped-cons))
+ (preview-do-replacements
+ command
+ (append preview-undump-replacements
+ ;; Since the command options provided in
+ ;; (TeX-engine-alist) are dropped, give them
+ ;; back.
+ (list (list "\\`\\([^ ]+\\)"
+ (TeX-command-expand "%(PDF)%(latex)"
nil)))))
+ command) file))))
(condition-case err
(progn
(when str
-----------------------------------------------------------------------
Summary of changes:
preview.el.in | 30 ++++++++++++++++++------------
1 file changed, 18 insertions(+), 12 deletions(-)
hooks/post-receive
--
GNU AUCTeX
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 9e1aa85d6d7ee84a12503a1dee62785c12e64ac1,
Ikumi Keita <=