GNU bug report logs -
#70608
[PATCH] Make preview-region work outside LaTeX-mode buffers
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70608 in the body.
You can then email your comments to 70608 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#70608
; Package
auctex
.
(Sat, 27 Apr 2024 13:54:10 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Paul Nelson <ultrono <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Sat, 27 Apr 2024 13:54:10 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[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)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#70608
; Package
auctex
.
(Sat, 04 May 2024 14:00:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 70608 <at> debbugs.gnu.org (full text, mbox):
Hi Paul,
Paul Nelson <ultrono <at> gmail.com> writes:
> 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.)
I'm a little reluctant about this change; tex.el provides generic
functions/variables which are set by the modes; `TeX-header-end' and
`TeX-trailer-start' are some of them. My preference is what you
describe above: If `preview-region' is used outside `LaTeX-mode', the 2
variables should be initialized there somehow and not inside tex.el.
Best, Arash
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#70608
; Package
auctex
.
(Sat, 04 May 2024 14:39:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 70608 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Arash, OK, thanks for your response, please feel free to close. Thanks,
best, Paul
On Sat, 4 May 2024 at 15:59, Arash Esbati <arash <at> gnu.org> wrote:
> Hi Paul,
>
> Paul Nelson <ultrono <at> gmail.com> writes:
>
> > 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.)
>
> I'm a little reluctant about this change; tex.el provides generic
> functions/variables which are set by the modes; `TeX-header-end' and
> `TeX-trailer-start' are some of them. My preference is what you
> describe above: If `preview-region' is used outside `LaTeX-mode', the 2
> variables should be initialized there somehow and not inside tex.el.
>
> Best, Arash
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#70608
; Package
auctex
.
(Sat, 04 May 2024 19:48:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 70608 <at> debbugs.gnu.org (full text, mbox):
tags 70608 wontfix
close 70608
thanks
Paul Nelson <ultrono <at> gmail.com> writes:
> Hi Arash, OK, thanks for your response, please feel free to
> close. Thanks, best, Paul
Thanks, then closing.
Best, Arash
Added tag(s) wontfix.
Request was from
Arash Esbati <arash <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 04 May 2024 19:48:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
70608 <at> debbugs.gnu.org and Paul Nelson <ultrono <at> gmail.com>
Request was from
Arash Esbati <arash <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 04 May 2024 19:48:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 02 Jun 2024 11:24:05 GMT)
Full text and
rfc822 format available.
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.