From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs Subject: bug#72999: 29.4; fill-paragraph error in latex mode Date: Wed, 04 Sep 2024 19:53:48 +0200 Message-ID: References: <6412cb60-1182-4c09-8f52-b2e42b4fb7c5@crocodile.org> <2bea91d9-b860-43d7-b565-771779254c0e@crocodile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28300"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 72999@debbugs.gnu.org To: Vadim Zaliva Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 04 19:55:18 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sluDt-0007Bl-P5 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Sep 2024 19:55:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sluDd-0002kl-AE; Wed, 04 Sep 2024 13:55:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sluDb-0002kU-BA for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 13:54:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sluDb-0003Of-21 for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 13:54:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=feIiUdmyGwoaIlSlkOFBqAAiOje273i8EpQ15TOXTeA=; b=urJcmx4Ayf9qMix2zKsRgy0aKK2iyL3UhsKgKAnXOjlmEMm3AdmXjK++BUsPn1gPlfEmShTiaq7iX1cQrIOo7svCDRflzDvKqUJtx9oGmZTpSncLMOOveDweS2LNF5my5qEPBMCnqviZ9SjwMTzS3/uYQwm34bIAPRa7MRfqPD0UW6K0Aab/PnZ+/rDzZ6AyP/jrp2M70DylKx29TCxsxgXpEGhljHTYH6M9I/R1BHD3PE+yk72IhVHkwz5xaV+GE/ukW0nqd4VJhl+F2BecXB812s8f/1iziVrJiHKKS+AHCi9e02z6KidQpwyfWbVzMx9HKOjdjULpygB0AAOx1w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sluEc-0000nr-D1 for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 13:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Sep 2024 17:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72999 X-GNU-PR-Package: emacs Original-Received: via spool by 72999-submit@debbugs.gnu.org id=B72999.17254725073010 (code B ref 72999); Wed, 04 Sep 2024 17:56:02 +0000 Original-Received: (at 72999) by debbugs.gnu.org; 4 Sep 2024 17:55:07 +0000 Original-Received: from localhost ([127.0.0.1]:35354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sluDj-0000mU-D8 for submit@debbugs.gnu.org; Wed, 04 Sep 2024 13:55:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sluDg-0000lt-BD for 72999@debbugs.gnu.org; Wed, 04 Sep 2024 13:55:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sluCY-0003Ef-3x; Wed, 04 Sep 2024 13:53:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=feIiUdmyGwoaIlSlkOFBqAAiOje273i8EpQ15TOXTeA=; b=GqUjGgur/N4Szo4H5LQp f3AcQGehNqYGPKmL0WkssoPnMiviiRdjGnSnHxRnWNclomzrAg+G0h7EOS7SHYBZgeFubk6qM0cEL emtyExWQQwym/Nz/JbfVhiy3NOjKkkSaBx7wIfa/4tQoV4s0s1PE65Ql3DxDOdl31xk53h6P2rUoY G96rGgGpTqxzN5jm3tZouIdRdAj5K+jo7IdtKG3NSXJE/itIqEgAM7N3rnLDZQeYfBrKIuTocRIT4 DNm0xscHp7rlMIu0D/wUrYzh58oxc52v9+U2oFd+TRHbKlSR8tb7jG8QWmrlZrMZD4KvemYYCJDXE J4DFXMaDrORK2w==; In-Reply-To: <2bea91d9-b860-43d7-b565-771779254c0e@crocodile.org> (Vadim Zaliva's message of "Wed, 4 Sep 2024 15:51:34 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291217 Archived-At: Vadim Zaliva writes: > Arash, thanks for response. I do have auctex 14.0.6 installed via > ELPA. I tried to reproce the problem starting from `emacs -Q` and it > did not reproduce. You're welcome. The above essentially says that AUCTeX isn't the culprit per se since it works with the standard setup. > With my default setup it's still happening with the following debug > trace: > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > LaTeX-indent-level-count() > LaTeX-indent-calculate-last(outer) > LaTeX-indent-calculate(outer) > LaTeX-indent-line() > indent-according-to-mode() > LaTeX-fill-region-as-para-do(3960 # nil) > LaTeX-fill-region-as-paragraph(3960 4117 nil) > LaTeX-fill-paragraph(nil) > fill-paragraph(nil t) > funcall-interactively(fill-paragraph nil t) > command-execute(fill-paragraph) > > LaTeX-indent-level-count is defined `latex.el` from acutex > package. Any thoughts what could be causing it and what I can try to > diagnose it further? Thanks for the debug info, I have no idea why this happens in your setup, so you have to dig further. Some general ideas are: =E2=80=A2 With your setup and your .tex file opened, do 'M-x list-load-path-shadows RET' and see if you have a stale AUCTeX installation on your HD; maybe you search also your HD yourself =E2=80=A2 With your setup, load your .tex file, instrument[1] the function `LaTeX-indent-level-count' and trigger the issue. Watch the function running[2] and where it chokes, maybe that helps =E2=80=A2 Bisect your packages you load with AUCTeX and see which one breaks with your .tex file =E2=80=A2 Just be on the safe side, uninstall AUCTeX via package manager interface, restart Emacs, and install AUCTeX again via the package manager interface. HTH. Best, Arash Footnotes: [1] https://www.gnu.org/software/emacs/manual/html_node/elisp/Instrumentin= g.html [2] https://www.gnu.org/software/emacs/manual/html_node/elisp/Edebug-Execu= tion-Modes.html