Subject: Re: bug#74056: `LaTeX-insert-item' inserts comment characters if called from inside comment

From: Arash Esbati <[email-masked]>
Date: Tue, 29 Oct 2024 12:44:19 +0100

Ikumi Keita <[email-masked]> writes:

> Ah, that's a good idea. Does the change below look good? (I refilled the
> doc string as well.)
>
> diff --git a/latex.el b/latex.el
> index 02fd1e33..9f767f99 100644
> --- a/latex.el
> +++ b/latex.el
> @@ -66,12 +66,13 @@ A comma-seperated list of strings."
>  
>  (make-variable-buffer-local 'LaTeX-default-options)
>  
> -(defcustom LaTeX-insert-into-comments t
> +(defcustom LaTeX-insert-into-comments nil
>    "Whether insertion commands stay in comments.
> -This allows using the insertion commands even when
> -the lines are outcommented, like in dtx files."
> +This allows using the insertion commands even when the lines are
> +outcommented, like in dtx files."
>    :group 'LaTeX-environment
> -  :type 'boolean)
> +  :type 'boolean
> +  :safe #'booleanp)

Thanks, :package-version '(auctex . "14.0.8") is missing, and also an
entry in NEWS.org.  And while we're at it, should we document the
variable in the manual and take this from the ToDo-list[1], WDYT?

Best, Arash

Footnotes:
[1]  https://elpa.gnu.org/devel/doc/auctex.html#Mid_002dterm-Goals