GNU bug report logs - #48914
2021-06-07; C-cC-e environment insertion with first line of contents commented out

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: auctex; Reported by: jfbu <jfbu@HIDDEN>; dated Tue, 8 Jun 2021 08:44:02 UTC; Maintainer for auctex is bug-auctex@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Jun 2021 15:27:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 10 11:27:26 2021
Received: from localhost ([127.0.0.1]:37582 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lrMac-0001Wd-F9
	for submit <at> debbugs.gnu.org; Thu, 10 Jun 2021 11:27:26 -0400
Received: from lists.gnu.org ([209.51.188.17]:50486)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <geab-bug-auctex@HIDDEN>) id 1lrMaY-0001WT-Nd
 for submit <at> debbugs.gnu.org; Thu, 10 Jun 2021 11:27:25 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:53648)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <geab-bug-auctex@HIDDEN>)
 id 1lrMaY-000766-Ho
 for bug-auctex@HIDDEN; Thu, 10 Jun 2021 11:27:22 -0400
Received: from ciao.gmane.io ([116.202.254.214]:44626)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <geab-bug-auctex@HIDDEN>)
 id 1lrMaW-0003Rh-W0
 for bug-auctex@HIDDEN; Thu, 10 Jun 2021 11:27:22 -0400
Received: from list by ciao.gmane.io with local (Exim 4.92)
 (envelope-from <geab-bug-auctex@HIDDEN>) id 1lrMaT-0002HA-8H
 for bug-auctex@HIDDEN; Thu, 10 Jun 2021 17:27:17 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: bug-auctex@HIDDEN
From: jfbu <jfbu@HIDDEN>
Subject: Re: bug#48914: 2021-06-07; C-cC-e environment insertion with first
 line of contents commented out
Date: Thu, 10 Jun 2021 17:27:11 +0200
Message-ID: <s9tb0g$7t7$1@HIDDEN>
References: <1D84C19B-2BF4-42DE-8CF6-2347815C939A@HIDDEN>
 <72860.1623305109@localhost>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0)
 Gecko/20100101 Thunderbird/78.11.0
In-Reply-To: <72860.1623305109@localhost>
Content-Language: fr
Received-SPF: pass client-ip=116.202.254.214;
 envelope-from=geab-bug-auctex@HIDDEN; helo=ciao.gmane.io
X-Spam_score_int: 9
X-Spam_score: 0.9
X-Spam_bar: /
X-Spam_report: (0.9 / 5.0 requ) BAYES_00=-1.9, FORGED_MUA_MOZILLA=2.309,
 FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001,
 HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

Hi Keita,

Le 10/06/2021 à 08:05, Ikumi Keita a écrit :
> Hi Jean,
> 
>>>>>> jfbu <jfbu@HIDDEN> writes:
>> The result is
> 
>> % \begin{foo}
>> %   deliberately missing closing $ after \simeq
>> Reduces the background count rate by a factor of $R$ ($R\simeq 1/(1-.89) = 9.1
>> for the shielding I used).
>> % \end{foo}
> 
>> Perhaps environment insertion should by default, except
>> if in doctex-mode, not use % ?
> 
>> or use it only if **all** lines are commented out ?
> 
> How about customizing `LaTeX-insert-into-comments' to nil? This option
> has an effect of adding comment prefixes at the beginning of line for
> some commands, and defaults to t.


Thank you.  I have set it to nil and will see what happens.

> 
> AUCTeX sets this option to t unconditionally in doctex mode, so the
> current default makes the standard latex mode to behave like doctex mode
> in some aspects. (I'm not sure why it defaults to t.)

It would be better to be able to set it to nil only in non-doctex mode.

But, although I do currently work often with doctex-mode, I rarely
insert an environment in comments, because
1. in my way of using dtx, the documentation for user is not commented
    out in the file
2. only code comments are commented out (sic)
    and I rarely (almost never) use environments as I use there most of
    the time a custom tex macro for multi-paragraph \verb-like behaviour

> 
> Some other commands are affected when you set this to nil, so please
> report if it brings any undesired experience for you.
> 

I will try to be alert to changes I may detect.

Thanks for the tip.

Jean-François







Information forwarded to bug-auctex@HIDDEN:
bug#48914; Package auctex. Full text available.

Message received at 48914 <at> debbugs.gnu.org:


Received: (at 48914) by debbugs.gnu.org; 10 Jun 2021 06:05:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 10 02:05:15 2021
Received: from localhost ([127.0.0.1]:35215 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lrDoY-0001EU-QZ
	for submit <at> debbugs.gnu.org; Thu, 10 Jun 2021 02:05:15 -0400
Received: from smtp1a.inetd.co.jp ([210.129.88.11]:38644)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ikumi@HIDDEN>) id 1lrDoW-0001EJ-Ge
 for 48914 <at> debbugs.gnu.org; Thu, 10 Jun 2021 02:05:13 -0400
Received: from localhost (42-146-77-152.rev.home.ne.jp [42.146.77.152])
 by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 838F7244;
 Thu, 10 Jun 2021 15:05:10 +0900 (JST)
From: Ikumi Keita <ikumi@HIDDEN>
To: jfbu <jfbu@HIDDEN>
Subject: Re: bug#48914: 2021-06-07;
 C-cC-e environment insertion with first line of contents commented out
In-reply-to: <1D84C19B-2BF4-42DE-8CF6-2347815C939A@HIDDEN>
References: <1D84C19B-2BF4-42DE-8CF6-2347815C939A@HIDDEN>
Comments: In-reply-to jfbu <jfbu@HIDDEN>
 message dated "Tue, 08 Jun 2021 10:42:52 +0200."
X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.2
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <72859.1623305109.1@localhost>
Content-Transfer-Encoding: quoted-printable
Date: Thu, 10 Jun 2021 15:05:09 +0900
Message-ID: <72860.1623305109@localhost>
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Hi Jean, >>>>> jfbu <jfbu@HIDDEN> writes: > The result is
 > % \begin{foo} > % deliberately missing closing $ after \simeq > Reduces
 the background count rate by a factor of $R$ ($R\simeq 1/(1-.89) = 9.1 >
 for the shielding I used). > % \end{foo} 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 2.0 PDS_TONAME_EQ_TOLOCAL_HDRS_LCASE To: name matches everything in
 local email - LCASE headers
X-Debbugs-Envelope-To: 48914
Cc: 48914 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Jean,

>>>>> jfbu <jfbu@HIDDEN> writes:
> The result is

> % \begin{foo}
> %   deliberately missing closing $ after \simeq
> Reduces the background count rate by a factor of $R$ ($R\simeq 1/(1-.89)=
 =3D 9.1
> for the shielding I used).
> % \end{foo}

> Perhaps environment insertion should by default, except
> if in doctex-mode, not use % ?

> or use it only if **all** lines are commented out ?

How about customizing `LaTeX-insert-into-comments' to nil? This option
has an effect of adding comment prefixes at the beginning of line for
some commands, and defaults to t.

AUCTeX sets this option to t unconditionally in doctex mode, so the
current default makes the standard latex mode to behave like doctex mode
in some aspects. (I'm not sure why it defaults to t.)

Some other commands are affected when you set this to nil, so please
report if it brings any undesired experience for you.

Regards,
Ikumi Keita




Information forwarded to bug-auctex@HIDDEN:
bug#48914; Package auctex. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Jun 2021 08:43:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 08 04:43:02 2021
Received: from localhost ([127.0.0.1]:57352 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lqXK9-0003i4-Sx
	for submit <at> debbugs.gnu.org; Tue, 08 Jun 2021 04:43:02 -0400
Received: from lists.gnu.org ([209.51.188.17]:46790)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jfbu@HIDDEN>) id 1lqXK8-0003hq-Cm
 for submit <at> debbugs.gnu.org; Tue, 08 Jun 2021 04:43:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:38054)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jfbu@HIDDEN>) id 1lqXK8-0001ib-49
 for bug-auctex@HIDDEN; Tue, 08 Jun 2021 04:43:00 -0400
Received: from smtp2-g21.free.fr ([212.27.42.2]:11842)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jfbu@HIDDEN>) id 1lqXK6-0007Kc-35
 for bug-auctex@HIDDEN; Tue, 08 Jun 2021 04:42:59 -0400
Received: from [192.168.0.11] (unknown [88.122.168.98])
 (Authenticated sender: jfbu@HIDDEN)
 by smtp2-g21.free.fr (Postfix) with ESMTPSA id 3B92C2003ED
 for <bug-auctex@HIDDEN>; Tue,  8 Jun 2021 10:42:53 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr;
 s=smtp-20201208; t=1623141774;
 bh=6CBIySMu8VsHtSFRtLjX4ktFK4SFCc6mZvobrJZNqGw=;
 h=From:Subject:Date:To:From;
 b=MIdGaXbum21uLnXFVWZwotSf3zuWHcU8AFMn2M5/r2OGhaBQEkg+UTGToJ1R9pB87
 9bVwGue8uYbs8Ya3sp4NW9PRGCOy4OI9ubor2mDLgJvODNkOI2JvjAYRsf48WPtL2y
 PWBXdQw6XYu8cWXCmk/2DO4l7rfUnbFYkGcH1rZQCNwMog7itQ1Nto4wguw8uQ4ALy
 YmNPJHpuskS39sHRlLn0P5v2RdEMrfHf0HtCwyikUBAtrA92Ur6e/TyOHrSUmp4buM
 Vck2q4gu9C3UXiVmBvLsH9rHA/H42C6f2uiAYOElAK28hMwjGk21nCbc5BZkouY/Bv
 WIk+pIF/mE1sA==
From: jfbu <jfbu@HIDDEN>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: 2021-06-07;
 C-cC-e environment insertion with first line of contents commented out
Message-Id: <1D84C19B-2BF4-42DE-8CF6-2347815C939A@HIDDEN>
Date: Tue, 8 Jun 2021 10:42:52 +0200
To: bug-auctex@HIDDEN
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
X-Mailer: Apple Mail (2.1878.6)
Received-SPF: pass client-ip=212.27.42.2; envelope-from=jfbu@HIDDEN;
 helo=smtp2-g21.free.fr
X-Spam_score_int: -6
X-Spam_score: -0.7
X-Spam_bar: /
X-Spam_report: (-0.7 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

Hi,
This may be a duplicate, sorry.
I am testing with git clone at 1b1361c0 Make TeX-fold-mode aware of =
superscript and subscript

Starting with this buffer:
---
\documentclass{article}

\begin{document}
%deliberately missing closing $ after \simeq
Reduces the background count rate by a factor of $R$ ($R\simeq 1/(1-.89)
=3D 9.1 for the shielding I used).
\end{document}
---

and LaTeX-mode active, select the three lines inside
the document environment, then hit C-cC-e foo

The result is

% \begin{foo}
%   deliberately missing closing $ after \simeq
Reduces the background count rate by a factor of $R$ ($R\simeq 1/(1-.89) =
=3D 9.1
for the shielding I used).
% \end{foo}

Perhaps environment insertion should by default, except
if in doctex-mode, not use % ?

or use it only if **all** lines are commented out ?

Best,
Jean-Fran=E7ois





Acknowledgement sent to jfbu <jfbu@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-auctex@HIDDEN. Full text available.
Report forwarded to bug-auctex@HIDDEN:
bug#48914; Package auctex. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 10 Jun 2021 15:30:02 UTC

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