From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 20 08:28:38 2022 Received: (at submit) by debbugs.gnu.org; 20 Jan 2022 13:28:38 +0000 Received: from localhost ([127.0.0.1]:56790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAXUU-0005R8-IS for submit@debbugs.gnu.org; Thu, 20 Jan 2022 08:28:38 -0500 Received: from lists.gnu.org ([209.51.188.17]:60876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAXUT-0005R1-A4 for submit@debbugs.gnu.org; Thu, 20 Jan 2022 08:28:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAXUQ-0006dh-N8 for bug-gnu-emacs@gnu.org; Thu, 20 Jan 2022 08:28:36 -0500 Received: from [2001:470:142:3::e] (port=41458 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 1nAXUQ-0002YZ-45 for bug-gnu-emacs@gnu.org; Thu, 20 Jan 2022 08:28:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=B742BVH5s5PyNCR17KZ/zMHcm88dLEaDkRAPJ52tU2Y=; b=Cd7PmWlYayioLR +mFTJEo2aHNvGp/KHRIrE2Der82tJxrnjapr+M2F5vFxcOY48EungW63peSNJPxdJUm+BW8Hrkqba O0UtfExv8YIAVcTwaF9Qnd/qgkbRFevzlQ7NktZ975VNZU4NVhhOtEZHrDTGDOlvRc3XxPRN9MK/C SD4UanPw8KalQF4qjSecE3a0S5/2QchNx5k+OOs/B++Cjm7XS2bjyD9LYIEDAJPb+CTPvv6jAwIKM 7e7z6nY5Orx2bcGNX2LKWLJnnoW4Jgad1mj/E3vuk+H529JPueFEjvNnLU2YkFUCHl/0wvijN3fiT cYeC495VnnJ3UxmxgltQ==; Received: from p4fe3e9f7.dip0.t-ipconnect.de ([79.227.233.247]:51787 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAXUO-0000Pz-RS for bug-gnu-emacs@gnu.org; Thu, 20 Jan 2022 08:28:34 -0500 From: Arash Esbati To: emacs-bugs Subject: 29.0.50; [PATCH] Don't look for invalid whitespaces Date: Thu, 20 Jan 2022 14:28:16 +0100 Message-ID: <86a6fqwn7z.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-Debbugs-Envelope-To: submit 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 (---) Hi all, I'd like to suggest a minor change to `ispell-tex-skip-alists' which looks for valid code and doesn't fix an apparent bug: --8<---------------cut here---------------start------------->8--- diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index ae3b18ed17..6382b402c0 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1673,14 +1673,13 @@ ispell-tex-skip-alists ("\\\\bibliographystyle" ispell-tex-arg-end) ("\\\\makebox" ispell-tex-arg-end 0) ("\\\\e?psfig" ispell-tex-arg-end) - ("\\\\document\\(class\\|style\\)" . - "\\\\begin[ \t\n]*{[ \t\n]*document[ \t\n]*}")) + ("\\\\document\\(class\\|style\\)" . "\\\\begin[ \t\n]*{document}")) (;; delimited with \begin. In ispell: displaymath, eqnarray, eqnarray*, ;; equation, minipage, picture, tabular, tabular* (ispell) ("\\(figure\\|table\\)\\*?" ispell-tex-arg-end 0) ("list" ispell-tex-arg-end 2) - ("program" . "\\\\end[ \t\n]*{[ \t\n]*program[ \t\n]*}") - ("verbatim\\*?" . "\\\\end[ \t\n]*{[ \t\n]*verbatim\\*?[ \t\n]*}")))) + ("program" . "\\\\end[ \t]*{program}") + ("verbatim\\*?" . "\\\\end[ \t]*{verbatim\\*?}")))) "Lists of regions to be skipped in TeX mode. First list is used raw. Second list has key placed inside \\begin{}. --8<---------------cut here---------------end--------------->8--- Currently, the regexps would accept the following cases: 1. \documentclass{article} \begin{ document} foo \end{document} Running LaTeX on the file gives: ! LaTeX Error: Environment document undefined. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.3 \begin{ document} Note that space is significant in environment names. 2. \documentclass{article} \usepackage{program} \begin{document} \begin{program} foo bar \end{ program} \end{document} Running LaTeX on the file above says: ! LaTeX Error: \begin{program} on input line 4 ended by \end{ program}. 3. \documentclass{article} \begin{document} \begin{verbatim} foo \end {verbatim} \end{document} Running LaTeX on the file above says: Runaway argument? ^^Mfoo^^M\end {verbatim}^^M^^M\end{document}^^M^^M^^M^^M^^M^^M^^M^^M^^M\ETC. ! File ended while scanning use of \@xverbatim. \par This one is delicate since vanilla LaTeX looks exactly for 14 characters \end{verbatim} and packages like verbatim.sty lift this limitation and allow a whitespace (and not a linebreak) between \end and {verbatim}. Please let me know if I should install this change. Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 20 09:16:13 2022 Received: (at 53390) by debbugs.gnu.org; 20 Jan 2022 14:16:13 +0000 Received: from localhost ([127.0.0.1]:56929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAYEX-0006Ds-AQ for submit@debbugs.gnu.org; Thu, 20 Jan 2022 09:16:13 -0500 Received: from quimby.gnus.org ([95.216.78.240]:49988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAYEW-00068g-3G for 53390@debbugs.gnu.org; Thu, 20 Jan 2022 09:16:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kzQ6mRPYY2bMRNsszkyEGkz2IzEjKIXsipzKtsIsKK4=; b=cpPfBoaQt+i8qH7T4hBrW03s0o Ex6oBi8wQyPvgUmCq0HWszPS/1bpu27pgr6bHd1KJS/bke6FRRpncSnHBnrirBuf2VCNNlrGfoM1Z 6PFPI/IIXkRiBf94+/0hRgBF1glgcbNUyotE1ZbdYCV4SWI1SQ+DhwEBpzUb61fYK4Uo=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAYEN-0006W7-N6; Thu, 20 Jan 2022 15:16:06 +0100 From: Lars Ingebrigtsen To: Arash Esbati Subject: Re: bug#53390: 29.0.50; [PATCH] Don't look for invalid whitespaces References: <86a6fqwn7z.fsf@gnu.org> X-Now-Playing: Joni Mitchell's _Archives: The Early Years (4)_: "Dr. Junk" Date: Thu, 20 Jan 2022 15:16:03 +0100 In-Reply-To: <86a6fqwn7z.fsf@gnu.org> (Arash Esbati's message of "Thu, 20 Jan 2022 14:28:16 +0100") Message-ID: <874k5yze58.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: Arash Esbati writes: > This one is delicate since vanilla LaTeX looks exactly for 14 characters > \end{verbatim} and packages like verbatim.sty lift this limitation and > allow a whitespace (and not a linebreak) between \ [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53390 Cc: 53390@debbugs.gnu.org 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: > This one is delicate since vanilla LaTeX looks exactly for 14 characters > \end{verbatim} and packages like verbatim.sty lift this limitation and > allow a whitespace (and not a linebreak) between \end and {verbatim}. > > Please let me know if I should install this change. It's been a while since I've done much LaTeXing, but it looks good to me, I think. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 20 13:32:24 2022 Received: (at 53390) by debbugs.gnu.org; 20 Jan 2022 18:32:24 +0000 Received: from localhost ([127.0.0.1]:59164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAcES-0002WC-4U for submit@debbugs.gnu.org; Thu, 20 Jan 2022 13:32:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAcEQ-0002Vn-Lm for 53390@debbugs.gnu.org; Thu, 20 Jan 2022 13:32:23 -0500 Received: from [2001:470:142:3::e] (port=48506 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 1nAcE8-00040W-0S; Thu, 20 Jan 2022 13:32:17 -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=DeCFEzLkKokQkc7t0ktF4+esx3YCaiQVUaUU8IMZ+mU=; b=p7ekgaqF4vccIxEzu1TD 6TwWByE3QdaIzF2P8ENlC1WgAUKrSpUScmuDXVdGBpKnGpaupq4S6qgOuLr2zA8eFCY6ltKb86C6s vYc3RXjch3XCKOIBJ9VIZjKwcI7tsGQXDjAma8qAIrHKeDvtqXtmeXsbKqLWfby94Fbr6q0Cjnw8K wdL0SWetzVgrJ3Df8OhklbTqlonE2oZEx6Hlvi7ADBJo+1E3mNf2mZtA/MZDDIerIe9rKO0KHH6aL n+qhNjPDWyudr342zJe/fkdQx2RxvhPuiScnc3+LErlWi6n7fspjv43BFg+ULv4wkdlgoXaQ3HVJW vGYKXbFSBUR2fw==; Received: from p4fe3e9f7.dip0.t-ipconnect.de ([79.227.233.247]:54539 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAcE6-00018g-MK; Thu, 20 Jan 2022 13:32:03 -0500 From: Arash Esbati To: Lars Ingebrigtsen Subject: Re: bug#53390: 29.0.50; [PATCH] Don't look for invalid whitespaces References: <86a6fqwn7z.fsf@gnu.org> <874k5yze58.fsf@gnus.org> Date: Thu, 20 Jan 2022 19:29:32 +0100 In-Reply-To: <874k5yze58.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 20 Jan 2022 15:16:03 +0100") Message-ID: <86lezaxnub.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-Debbugs-Envelope-To: 53390 Cc: 53390@debbugs.gnu.org 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 (---) Lars Ingebrigtsen writes: > It's been a while since I've done much LaTeXing, but it looks good to > me, I think. Thanks, I pushed that change and will close this report. Best, Arash From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 20 13:32:24 2022 Received: (at control) by debbugs.gnu.org; 20 Jan 2022 18:32:24 +0000 Received: from localhost ([127.0.0.1]:59162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAcER-0002WA-Uv for submit@debbugs.gnu.org; Thu, 20 Jan 2022 13:32:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAcEQ-0002Vm-IZ for control@debbugs.gnu.org; Thu, 20 Jan 2022 13:32:22 -0500 Received: from [2001:470:142:3::e] (port=48508 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 1nAcEB-00040q-2F for control@debbugs.gnu.org; Thu, 20 Jan 2022 13:32:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=qPpsJ4NkH8xGQ1Ie4LbWlCzFcBtMjDXL/TWt22dNXL8=; b=efGp4GodBYfwq9 aFG/kvf14mMW92C8+kk6h2Kldb4yyPVMjJmym0JGBzSNJkyzaxX5H3aNSPeuvWG/l9nbBEIhry5X+ xhepW+D+B2ubHdUhC0GKa4KWEX7WZYyySY/G3kPBBy4eEzTWDlikXUdWyHHn3atxrr4867OsuLgOF ZPHAW2vlIxkaPCyZ+hKDr2MV4O/f4zIfjY7WXIrwoVSui1prpvnCVjfDWsjg98rUaJO5sJ0QZIj3C H4Ckfv2gS2uRAjYCqjEBegAGu/IH2zRRjKvsi3nm2vjYTRowRsTonAkm8v5i0vb3T6+5Soen19BuB zxeCbpHVePBERPXs59tQ==; Received: from p4fe3e9f7.dip0.t-ipconnect.de ([79.227.233.247]:54539 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAcE8-00018g-SA for control@debbugs.gnu.org; Thu, 20 Jan 2022 13:32:06 -0500 From: Arash Esbati To: control-debbugs Subject: Fwd: bug#53390: 29.0.50; [PATCH] Don't look for invalid whitespaces Date: Thu, 20 Jan 2022 19:30:59 +0100 Message-ID: <86h79yxnrw.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-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: -3.3 (---) close 53390 29.1 quit From unknown Tue Jun 17 01:46:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 18 Feb 2022 12:24:14 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator