GNU bug report logs - #78586
TeX-make-inline

Previous Next

Package: auctex;

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

Date: Sun, 25 May 2025 14:03:02 UTC

Severity: normal

Done: "Paul D. Nelson" <ultrono <at> gmail.com>

Full log


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

From: "Paul D. Nelson" <ultrono <at> gmail.com>
To: Ikumi Keita <ikumi <at> ikumi.que.jp>
Cc: arash <at> gnu.org, 78586 <at> debbugs.gnu.org
Subject: Re: bug#78586: TeX-make-inline
Date: Tue, 03 Jun 2025 10:09:00 +0200
[Message part 1 (text/plain, inline)]
Hi Ikumi, many thanks for your feedback.

> Is it really necessary to delete leading whitespaces? At the end of this
> function, we do `indent-region', which I expect would do the job. (And
> then, we can just call `delete-trailing-whitespace'.)

Deleting whitespace is relevant when converting from display to inline.
It seemed like the appropriate way to handle the variety of ways users
might write display math, e.g., $$ x + y $$ with or without newlines.
Other suggestions would be welcome.

I've incorporated all the other suggested changes, together with the
following further changes:

- replaced calls to LaTeX-environment-list-filtered with a new helper
  function LaTeX-math-environment-list (which could be made internal, I
  suppose?) that returns a more suitable list.

- factored our a helper function LaTeX--strip-labels.

Any further feedback welcome.

Thanks, best,

Paul

[0001-Add-LaTeX-modify-math-and-LaTeX-make-inline.patch (text/x-patch, attachment)]

This bug report was last modified 3 days ago.

Previous Next


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