From unknown Mon Aug 18 11:32:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28382: 11.90.2.2017-07-25; Wrapping content in an equation with LaTeX-environment results in invalid LaTeX Resent-From: Thibaut Verron Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 07 Sep 2017 13:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28382 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 28382@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150479040521894 (code B ref -1); Thu, 07 Sep 2017 13:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Sep 2017 13:20:05 +0000 Received: from localhost ([127.0.0.1]:53956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpwiy-0005h3-Is for submit@debbugs.gnu.org; Thu, 07 Sep 2017 09:20:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpwix-0005gV-3F for submit@debbugs.gnu.org; Thu, 07 Sep 2017 09:20:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpwim-0002rN-PQ for submit@debbugs.gnu.org; Thu, 07 Sep 2017 09:19:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49945) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dpwim-0002rI-LF for submit@debbugs.gnu.org; Thu, 07 Sep 2017 09:19:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpwih-00066m-FA for bug-auctex@gnu.org; Thu, 07 Sep 2017 09:19:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpwic-0002n0-DH for bug-auctex@gnu.org; Thu, 07 Sep 2017 09:19:47 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:34247) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpwic-0002ki-3V for bug-auctex@gnu.org; Thu, 07 Sep 2017 09:19:42 -0400 Received: by mail-wm0-x235.google.com with SMTP id 137so33904000wmj.1 for ; Thu, 07 Sep 2017 06:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:subject:from:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=YvdEL8LC+pQzhXo1029bOVfm84v1xV9TAac6TG0i7U0=; b=hR2Y6pYYUswC3iUZmj/0pmIvcIABv4xfGdoYaxPbmsPuZoGEqg50T2ywT8nfcE/VC9 R1nUIzfcW4t44G4kTxD+aLJ7CQchlFCt0WgBkpJkhnvE5ZAIjIckE4EckIYiHZ5Sn+An jy8pZgcuQpRMZOhEInGQlbty8cxL+O19VXVd7jXsOhyndTHGYv7yjBtkJVfbJoHq9MMo JzO1N17qkfyVGxu7fW9PoYE3Zr5MNgJdc/a2swsbXmmcT1Q4BWgB/6iCIdRbVeSe2W1K yT3toLZdy0/ddMgCLUnzsE06UDt2t73/y9tImuMOC+ho4I6BOqAAo9UBUbzofzGSi0+B 2fJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:subject:from:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=YvdEL8LC+pQzhXo1029bOVfm84v1xV9TAac6TG0i7U0=; b=IyPe+4Yo485NWIFgEMUfLQ0fGAzahMkcca6kvnbeWcapgX6qzisB4I3ezvlz8f00kl hdBf80kVtEiWmAwYJJpxXSLM+6QhAKtFyo9uPl7j1lfURY1fAjjx3L51BYVWULCzFdR9 jV5s7n1ekMQ3YvGb475Uyzs+H0zyD9BnE1ofDTzg6NiUNPLieTBpkWW//g76FvYtKT64 XBiazJGGh3+5tRMiyD+3M8oW4RQSriqS6zsdRuSFgHAVviWPzEgiMMiRaeEguLtPmTzw hMpU+fYBY/IvQwM9Ozps61JudjF2BctnLWItqeqYvIFtp7GdiuCfujwgwAYsQgAKo3VU gRWQ== X-Gm-Message-State: AHPjjUhvnHTfKxNxHJnudm/ZJ8gItjXDSCMyBCLZ//MwWXcvRI96TedC WoqB0eyZrLahLqa2OGY= X-Google-Smtp-Source: ADKCNb6Mgcfa+lTllDrVg8rsOIQYrLJk1iSZZUOhSqQmmPeuaAbZW+TsRgCSofIkbCszDz/h7/eS1w== X-Received: by 10.28.20.18 with SMTP id 18mr692303wmu.7.1504790379033; Thu, 07 Sep 2017 06:19:39 -0700 (PDT) Received: from [147.127.240.134] ([147.127.240.134]) by smtp.gmail.com with ESMTPSA id g37sm4438754wra.6.2017.09.07.06.19.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Sep 2017 06:19:37 -0700 (PDT) From: Thibaut Verron Message-ID: <9f8a7b2e-d877-10a9-b13b-3b82766d75b5@gmail.com> Date: Thu, 7 Sep 2017 15:20:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Hello, If you use `C-c C-e` (`LaTeX-environment`) to insert an "equation" environment, the result is \begin{equation} \label{eq:1} [point here] \end{equation} This is valid LaTeX assuming that the user actually types a formula in. If now you insert the equation first, select it, and use `C-c C-e` to wrap it in an "equation" environment, the result is \begin{equation} 2+2=4\label{eq:2} [point here] \end{equation} This raises a compilation error: an equation cannot contain an empty line. And with the label at the end of the formula, it isn't convenient in case the formula wasn't complete either. In my opinion, the expected output would be either \begin{equation} \label{eq:2} 2+2=4 \end{equation} [point here] or \begin{equation} \label{eq:2} 2+2=4[point here] \end{equation} depending on whether you expect the user to wrap complete formulae or not. I personally almost always wrap complete formulae, so I'd choose option 1. In the expected output, I also moved the `\label{...}` to the beginning of the environment instead of the end. It is the recommended way of proceeding, but I don't know if it makes any real difference for the compiler. If anything, it would make equation labelling consistent with what is produced with `C-c C-e` with the mark inactive. The same thing happens with similar environments. For unlabeled environments, the output is similar to option 2 above, which seems to hint that the newline appears when inserting the `\label`. Is there a good reason that I missed for the current behavior? Thanks, Thibaut Emacs : GNU Emacs 25.1.4 (x86_64-pc-linux-gnu, GTK+ Version 2.24.30) of 2016-11-08 Package: 11.90.2.2017-07-25 current state: ============== (setq AUCTeX-date "2017-07-25" window-system 'x LaTeX-version "2e" TeX-style-path '("~/.emacs.d/auctex" "/home/controleapo/.emacs.d/elpa/auctex-11.91.0/style" "/home/controleapo/.emacs.d/auctex/auto" "/home/controleapo/.emacs.d/auctex/style" "auto" "style") TeX-auto-save t TeX-parse-self t TeX-master nil TeX-command-list '(("LatexMk" "latexmk %(-PDF)%S%(mode) %(file-line-error) %(extraopts) %t" TeX-run-latexmk nil (plain-tex-mode latex-mode doctex-mode) :help "Run LatexMk") ("TeX" "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber") ("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help "Generate PostScript file") ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help "Convert DVI file to PostScript") ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help "Convert DVI file to PDF with dvipdfmx") ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help "Convert PostScript file to PDF") ("Glossaries" "makeglossaries %s" TeX-run-command nil t :help "Run makeglossaries to create glossary file") ("Index" "makeindex %s" TeX-run-index nil t :help "Run makeindex to create index file") ("upMendex" "upmendex %s" TeX-run-index t t :help "Run upmendex to create index file") ("Xindy" "texindy %s" TeX-run-command nil t :help "Run xindy to create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for common mistakes") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command")) ) From unknown Mon Aug 18 11:32:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28382: 11.90.2.2017-07-25; Wrapping content in an equation with LaTeX-environment results in invalid LaTeX Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sat, 09 Sep 2017 18:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28382 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Thibaut Verron Cc: 28382@debbugs.gnu.org Received: via spool by 28382-submit@debbugs.gnu.org id=B28382.150498121815163 (code B ref 28382); Sat, 09 Sep 2017 18:21:02 +0000 Received: (at 28382) by debbugs.gnu.org; 9 Sep 2017 18:20:18 +0000 Received: from localhost ([127.0.0.1]:57860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqkMc-0003wV-Cn for submit@debbugs.gnu.org; Sat, 09 Sep 2017 14:20:18 -0400 Received: from omx25.esk.m4.zaq.ne.jp ([220.152.48.14]:51580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqkMa-0003wE-Dx for 28382@debbugs.gnu.org; Sat, 09 Sep 2017 14:20:17 -0400 Received: from omx25.esk.m4.zaq.ne.jp ([220.152.49.34] [220.152.49.34]) by omx25.esk.m4.zaq.ne.jp with ESMTP id <20170909182008920.MQZN.3135.omx25.esk.m4.zaq.ne.jp@omx25.esk.m4.zaq.ne.jp>; Sun, 10 Sep 2017 03:20:08 +0900 Received: from smtpa23.esk.m4.zaq.ne.jp ([42.144.27.116] [42.144.27.116]) by smtpa23.esk.m4.zaq.ne.jp with ESMTP id <20170909182008868.FVAD.25126.smtpa23.esk.m4.zaq.ne.jp@smtpa23.esk.m4.zaq.ne.jp>; Sun, 10 Sep 2017 03:20:08 +0900 Received: from localhost (localhost [127.0.0.1]) by freebsd.vmware (Postfix) with ESMTP id 3F43E139809; Sun, 10 Sep 2017 03:20:08 +0900 (JST) From: Ikumi Keita In-reply-to: <9f8a7b2e-d877-10a9-b13b-3b82766d75b5@gmail.com> References: <9f8a7b2e-d877-10a9-b13b-3b82766d75b5@gmail.com> Comments: In-reply-to Thibaut Verron message dated "Thu, 07 Sep 2017 15:20:04 +0200." X-Mailer: MH-E 8.6; nmh 1.6; GNU Emacs 25.2.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Sun, 10 Sep 2017 03:20:07 +0900 Message-ID: <26769.1504981207@localhost> X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --=-=-= Content-Type: text/plain Hello Thibaut, >>>>> Thibaut Verron writes: > If now you insert the equation first, select it, and use `C-c C-e` to > wrap it in an "equation" environment, the result is > \begin{equation} > 2+2=4\label{eq:2} > [point here] > \end{equation} Confirmed. The reason for this behaviour is that `LaTeX-env-label' does not take care of the case that the region is active. In fact, it seems that most of the functions to insert environments in latex.el don't, either. The attached quick hack basically gives the output you suggested as option 2, though for `LaTeX-env-label' only. I hope that anyone else makes out a comprehensive solution that covers other functions as well... Bye, Ikumi Keita --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=tentative-patch Content-Description: quick hack --- latex.el~ 2017-09-10 03:04:17.265116000 +0900 +++ latex.el 2017-09-10 03:04:51.798080000 +0900 @@ -1152,9 +1152,13 @@ (defun LaTeX-env-label (environment) "Insert ENVIRONMENT and prompt for label." (LaTeX-insert-environment environment) + (if (TeX-active-mark) + (exchange-point-and-mark)) (when (LaTeX-label environment 'environment) (LaTeX-newline) - (indent-according-to-mode))) + (indent-according-to-mode)) + (if (TeX-active-mark) + (exchange-point-and-mark))) (defun LaTeX-env-list (environment) "Insert ENVIRONMENT and the first item." --=-=-=-- From unknown Mon Aug 18 11:32:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28382: 11.90.2.2017-07-25; Wrapping content in an equation with LaTeX-environment results in invalid LaTeX Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 24 Feb 2022 11:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28382 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Thibaut Verron Cc: 28382@debbugs.gnu.org Received: via spool by 28382-submit@debbugs.gnu.org id=B28382.164570113923950 (code B ref 28382); Thu, 24 Feb 2022 11:13:01 +0000 Received: (at 28382) by debbugs.gnu.org; 24 Feb 2022 11:12:19 +0000 Received: from localhost ([127.0.0.1]:47741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNC2f-0006E9-Bv for submit@debbugs.gnu.org; Thu, 24 Feb 2022 06:12:18 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:48200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNC2d-0006E0-Fr for 28382@debbugs.gnu.org; Thu, 24 Feb 2022 06:12:12 -0500 Received: from localhost (61-24-188-3.rev.home.ne.jp [61.24.188.3]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 67FC92D7; Thu, 24 Feb 2022 20:12:09 +0900 (JST) From: Ikumi Keita In-reply-to: <26769.1504981207@localhost> References: <9f8a7b2e-d877-10a9-b13b-3b82766d75b5@gmail.com> <26769.1504981207@localhost> Comments: In-reply-to Ikumi Keita message dated "Sun, 10 Sep 2017 03:20:07 +0900." 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: <89452.1645701128.1@localhost> Date: Thu, 24 Feb 2022 20:12:09 +0900 Message-ID: <89453.1645701129@localhost> X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Thibaut, sorry for very late reply. >>>>> Thibaut Verron writes: >> If now you insert the equation first, select it, and use `C-c C-e` to >> wrap it in an "equation" environment, the result is >> \begin{equation} >> 2+2=4\label{eq:2} >> [point here] >> \end{equation} I've just installed fix for this behavior in the git repository. Try it out if you can. I hope I can close this bug. Regards, Ikumi Keita From unknown Mon Aug 18 11:32:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28382: 11.90.2.2017-07-25; Wrapping content in an equation with LaTeX-environment results in invalid LaTeX Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 24 Feb 2022 18:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28382 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: 28382@debbugs.gnu.org, Thibaut Verron Received: via spool by 28382-submit@debbugs.gnu.org id=B28382.164572657026282 (code B ref 28382); Thu, 24 Feb 2022 18:17:02 +0000 Received: (at 28382) by debbugs.gnu.org; 24 Feb 2022 18:16:10 +0000 Received: from localhost ([127.0.0.1]:50363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNIev-0006pd-RJ for submit@debbugs.gnu.org; Thu, 24 Feb 2022 13:16:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNIet-0006ii-3v for 28382@debbugs.gnu.org; Thu, 24 Feb 2022 13:16:08 -0500 Received: from [2001:470:142:3::e] (port=48454 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNIej-0007yl-Kz; Thu, 24 Feb 2022 13:16:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=wf+3yYtmzW7WIY+c5Y0OptVvBZDAng2uN2SyndbyJ7M=; b=rONiAnfz8hlcHeqjxZpB PJoI3SXCMXwrULhkcE/PtSON1912OiHzMa47vQsXA94y+4x0KtQS/1g28pqHxv3rRvLHqiPpjum+/ nJivPd9Ehp+O6FAw1F+JKq9Q+SsfPdGcq7QJw3T9qKdHbxDH2eUeko1Tg+M2435gUngPOm/xRLyun Fyegoz2pNAFpyILAgCxr+ljGkwY4kmoGP4x9IptOzwpLRbz/CPocr57WUZJfyJEJsHjM3zW+4rNee NHLK5DvM6rjVWGzSN8Abrf1HrlQisaZ/pOcpxo0oBA8bL082KazFr9KISk7aXzmT/HZy4Rsf/Dgb9 jqJ6K5J7QXzv/Q==; Received: from p5b326363.dip0.t-ipconnect.de ([91.50.99.99]:57986 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNIei-0002U9-Q6; Thu, 24 Feb 2022 13:15:57 -0500 From: Arash Esbati References: <9f8a7b2e-d877-10a9-b13b-3b82766d75b5@gmail.com> <26769.1504981207@localhost> <89453.1645701129@localhost> Date: Thu, 24 Feb 2022 19:15:38 +0100 In-Reply-To: <89453.1645701129@localhost> (Ikumi Keita's message of "Thu, 24 Feb 2022 20:12:09 +0900") Message-ID: <86wnhkgmgl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ikumi Keita writes: > I've just installed fix for this behavior in the git repository. Try it > out if you can. Forgot to push? Best, Arash From unknown Mon Aug 18 11:32:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28382: 11.90.2.2017-07-25; Wrapping content in an equation with LaTeX-environment results in invalid LaTeX Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 24 Feb 2022 18:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28382 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Arash Esbati Cc: 28382@debbugs.gnu.org, Thibaut Verron Received: via spool by 28382-submit@debbugs.gnu.org id=B28382.164572710431274 (code B ref 28382); Thu, 24 Feb 2022 18:26:02 +0000 Received: (at 28382) by debbugs.gnu.org; 24 Feb 2022 18:25:04 +0000 Received: from localhost ([127.0.0.1]:50372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNInY-00088M-8v for submit@debbugs.gnu.org; Thu, 24 Feb 2022 13:25:04 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:48692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNInW-00087q-Ay for 28382@debbugs.gnu.org; Thu, 24 Feb 2022 13:25:03 -0500 Received: from localhost (61-24-188-3.rev.home.ne.jp [61.24.188.3]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 4D49F2D7; Fri, 25 Feb 2022 03:25:00 +0900 (JST) From: Ikumi Keita In-reply-to: <86wnhkgmgl.fsf@gnu.org> References: <9f8a7b2e-d877-10a9-b13b-3b82766d75b5@gmail.com> <26769.1504981207@localhost> <89453.1645701129@localhost> <86wnhkgmgl.fsf@gnu.org> Comments: In-reply-to Arash Esbati message dated "Thu, 24 Feb 2022 19:15:38 +0100." 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: <93706.1645727099.1@localhost> Date: Fri, 25 Feb 2022 03:24:59 +0900 Message-ID: <93707.1645727099@localhost> X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> Arash Esbati writes: > Ikumi Keita writes: >> I've just installed fix for this behavior in the git repository. Try it >> out if you can. > Forgot to push? No, it is installed as commit 163dcb75. Bye, Ikumi Keita From unknown Mon Aug 18 11:32:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28382: 11.90.2.2017-07-25; Wrapping content in an equation with LaTeX-environment results in invalid LaTeX Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Thu, 24 Feb 2022 18:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28382 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Ikumi Keita Cc: 28382@debbugs.gnu.org, Thibaut Verron Received: via spool by 28382-submit@debbugs.gnu.org id=B28382.164572713731326 (code B ref 28382); Thu, 24 Feb 2022 18:26:02 +0000 Received: (at 28382) by debbugs.gnu.org; 24 Feb 2022 18:25:37 +0000 Received: from localhost ([127.0.0.1]:50376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNIo5-00089C-He for submit@debbugs.gnu.org; Thu, 24 Feb 2022 13:25:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNIo3-00088z-5c for 28382@debbugs.gnu.org; Thu, 24 Feb 2022 13:25:36 -0500 Received: from [2001:470:142:3::e] (port=48670 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNInx-0001GS-JX; Thu, 24 Feb 2022 13:25:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=oNOYZhSwWw59dEmihGbV9JkymbL799+FmNq77fmkHfc=; b=czhPFKmox8dDf3xKnieE jB3FpBBWMZOl2zRnu6VqLa+3fnotZcDpmTq4j2paC2wTNMfCvBPrZKSJaPKzmKnhHkTgtgp+6j0TT 2uB+Litpx0aaMybRCjrygjLgR0YPO5Ocg028n5bEFlYSAUn7QMYgbPEtdLe2cFHZEGmB+JgmSM3eD hoA9uKq8eMYe4nTXTWx/1YNEb8hO8JZ8/33Um8YGQdDYHhG2J7/QXaPLbJGFOtL+AquKQqROMfw6y cnOELh2xf8sfG5Agav8iJkAejxr08zI2H7q0rzoGK1h2wXqE1J91f7FBT/Pqi25jl5m1hqVT2nxOK Xx5IEbWhWv0Ffw==; Received: from p5b326363.dip0.t-ipconnect.de ([91.50.99.99]:58150 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNInv-0003RU-WF; Thu, 24 Feb 2022 13:25:28 -0500 From: Arash Esbati References: <9f8a7b2e-d877-10a9-b13b-3b82766d75b5@gmail.com> <26769.1504981207@localhost> <89453.1645701129@localhost> <86wnhkgmgl.fsf@gnu.org> Date: Thu, 24 Feb 2022 19:25:10 +0100 In-Reply-To: <86wnhkgmgl.fsf@gnu.org> (Arash Esbati's message of "Thu, 24 Feb 2022 19:15:38 +0100") Message-ID: <86sfs8gm0p.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Arash Esbati writes: > Ikumi Keita writes: > >> I've just installed fix for this behavior in the git repository. Try it >> out if you can. > > Forgot to push? Sorry for the noise, commit 163dcb75bd. Need new glasses =F0=9F=A7=90 Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 11 07:37:45 2022 Received: (at control) by debbugs.gnu.org; 11 Mar 2022 12:37:45 +0000 Received: from localhost ([127.0.0.1]:36612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSeWf-0003hp-8Z for submit@debbugs.gnu.org; Fri, 11 Mar 2022 07:37:45 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:36302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSeWd-0003hf-Eg for control@debbugs.gnu.org; Fri, 11 Mar 2022 07:37:44 -0500 Received: from localhost (61-24-188-3.rev.home.ne.jp [61.24.188.3]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 172D92D7 for ; Fri, 11 Mar 2022 21:37:41 +0900 (JST) To: control@debbugs.gnu.org From: Ikumi Keita Subject: control message for bug #28382 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <570.1647002261.1@localhost> Date: Fri, 11 Mar 2022 21:37:41 +0900 Message-ID: <571.1647002261@localhost> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 28382 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 04 01:38:06 2023 Received: (at control) by debbugs.gnu.org; 4 Feb 2023 06:38:06 +0000 Received: from localhost ([127.0.0.1]:40490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOCBa-00006H-KE for submit@debbugs.gnu.org; Sat, 04 Feb 2023 01:38:06 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:34936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOCBY-000069-V9 for control@debbugs.gnu.org; Sat, 04 Feb 2023 01:38:05 -0500 Received: from localhost (42-144-46-173.rev.home.ne.jp [42.144.46.173]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 296355C for ; Sat, 4 Feb 2023 15:38:04 +0900 (JST) From: Ikumi Keita To: control@debbugs.gnu.org Subject: unarchive 28382 X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32071.1675492683.1@localhost> Date: Sat, 04 Feb 2023 15:38:04 +0900 Message-ID: <32075.1675492684@localhost> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) unarchive 28382 From unknown Mon Aug 18 11:32:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28382: 11.90.2.2017-07-25; Wrapping content in an equation with LaTeX-environment results in invalid LaTeX Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sat, 04 Feb 2023 06:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28382 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Thibaut Verron Cc: 28382@debbugs.gnu.org Received: via spool by 28382-submit@debbugs.gnu.org id=B28382.1675492844674 (code B ref 28382); Sat, 04 Feb 2023 06:41:01 +0000 Received: (at 28382) by debbugs.gnu.org; 4 Feb 2023 06:40:44 +0000 Received: from localhost ([127.0.0.1]:40496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOCE8-0000An-0a for submit@debbugs.gnu.org; Sat, 04 Feb 2023 01:40:44 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:34942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOCE6-0000Af-4L for 28382@debbugs.gnu.org; Sat, 04 Feb 2023 01:40:42 -0500 Received: from localhost (42-144-46-173.rev.home.ne.jp [42.144.46.173]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id F14CF5C; Sat, 4 Feb 2023 15:40:40 +0900 (JST) In-reply-to: <89453.1645701129@localhost> References: <9f8a7b2e-d877-10a9-b13b-3b82766d75b5@gmail.com> <26769.1504981207@localhost> <89453.1645701129@localhost> Comments: In-reply-to Ikumi Keita message dated "Thu, 24 Feb 2022 20:12:09 +0900." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31965.1675492467.1@localhost> From: Ikumi Keita Date: Sat, 04 Feb 2023 15:40:40 +0900 Message-ID: <32188.1675492840@localhost> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) [ Responding to a year-old bug ] >>>>> Ikumi Keita writes: > Hi Thibaut, sorry for very late reply. >>>>> Thibaut Verron writes: >>> If now you insert the equation first, select it, and use `C-c C-e` to >>> wrap it in an "equation" environment, the result is >>> \begin{equation} >>> 2+2=4\label{eq:2} >>> [point here] >>> \end{equation} > I've just installed fix for this behavior in the git repository. Try it > out if you can. It turned out that the fix was insufficient[1], and I committed the additional fix. [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=48518 Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine