GNU bug report logs - #70608
[PATCH] Make preview-region work outside LaTeX-mode buffers

Previous Next

Package: auctex;

Reported by: Paul Nelson <ultrono <at> gmail.com>

Date: Sat, 27 Apr 2024 13:54:07 UTC

Severity: normal

Tags: patch, wontfix

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Nelson <ultrono <at> gmail.com>
To: bug-auctex <at> gnu.org
Subject: [PATCH] Make preview-region work outside LaTeX-mode buffers
Date: Sat, 27 Apr 2024 15:52:14 +0200
[Message part 1 (text/plain, inline)]
This patch has no effect on existing behavior (in LaTeX-mode), but
makes it so that preview-region works in any non-LaTeX-mode buffer for
which TeX-master has been set to a valid tex file.  This is intended
for internal use by other packages.  For example, I've been using
something equivalent to this to preview org-mode LaTeX source blocks,
tex code in Lean4 comments, (...).

(One could avoid this patch by manually initializing TeX-header-end
and TeX-trailer-start before calling preview-region, but it seems
better to me to provide working defaults as in the patch.  Any
feedback would be welcome, of course.)

Thanks, best,

Paul
[0001-Make-preview-region-work-outside-LaTeX-mode-buffers.patch (application/octet-stream, attachment)]

This bug report was last modified 1 year and 17 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.