GNU bug report logs - #74056
`LaTeX-insert-item' inserts comment characters if called from inside comment

Previous Next

Package: auctex;

Reported by: Vangelis Evangelou <evangelou <at> gmail.com>

Date: Mon, 28 Oct 2024 09:42:01 UTC

Severity: normal

Done: Ikumi Keita <ikumi <at> ikumi.que.jp>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Arash Esbati <arash <at> gnu.org>
To: Ikumi Keita <ikumi <at> ikumi.que.jp>
Cc: Vangelis Evangelou <evangelou <at> gmail.com>, 74056 <at> debbugs.gnu.org
Subject: bug#74056: `LaTeX-insert-item' inserts comment characters if called from inside comment
Date: Fri, 01 Nov 2024 09:26:20 +0100
Hi Keita,

Ikumi Keita <ikumi <at> ikumi.que.jp> writes:

> I attach the current patches.

Thanks, I have 2 minor comments, see below.

> diff --git a/doc/auctex.texi b/doc/auctex.texi
> index 718d4c2a..fb20c817 100644
> --- a/doc/auctex.texi
> +++ b/doc/auctex.texi
> @@ -1616,6 +1616,22 @@ paragraph is considered to consist of all preceding and succeeding
>  lines starting with a @samp{%}, until the first non-comment line.
>  @end deffn
>  
> +In doc <at> TeX{} document, all documentations are commented out.  @AUCTeX{}
> +inserts @samp{%} (with an accompanying space) at the beginning of line
> +when you issue some commands including sectioning (@kbd{C-c C-s}) and
> +inserting environments (@kbd{C-c C-e}), on a commented line.  This
> +behavior is controlled by @code{LaTeX-insert-into-comments}.
> +
> +@defopt LaTeX-insert-into-comments
> +When this option is non-@code{nil}, some editing commands are aware of
> +comment prefix at the beginning of line and insert it in the line created
> +anew.
> +
> +The default value of this option used to be @code{t}, which sometimes
> +caused unintuitive behaviors in normal @LaTeX{} mode.  Now it defaults to
> +@code{nil} and is set to @code{t} in doc <at> TeX{} mode.
> +@end defopt
> +

I don't think we need to talk about the history in the manual.  I
suggest to change the last paragraph to something like this:

  The default value of this option is @code{nil} in normal @LaTeX{} mode
  and is set to @code{t} in doc <at> TeX{} mode.


Reg. your other patch: Does it need an ERT-test?

Best, Arash




This bug report was last modified 277 days ago.

Previous Next


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