all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arash Esbati <arash@gnu.org>
To: Vadim Zaliva <lord@crocodile.org>
Cc: 72999@debbugs.gnu.org
Subject: bug#72999: 29.4; fill-paragraph error in latex mode
Date: Tue, 03 Sep 2024 13:57:42 +0200	[thread overview]
Message-ID: <m2jzft2bm1.fsf@macmutant.fritz.box> (raw)
In-Reply-To: <6412cb60-1182-4c09-8f52-b2e42b4fb7c5@crocodile.org> (Vadim Zaliva's message of "Tue, 3 Sep 2024 08:46:10 +0200")

Vadim Zaliva <lord@crocodile.org> writes:

> If I have buffer like this:
>
> Foo \cite{bar} bar.
>
> And press `M-q` I get error:
>
> LaTeX-indent-calculate-last: Wrong type argument: stringp, nil
> [...]
> Major mode: LaTeX

It seems you're running AUCTeX as major-mode and not the builtin one.
Which version of AUCTeX are you using and how did you install it?

At any rate, I can't reproduce what you describe with this small file:

--8<---------------cut here---------------start------------->8---
\documentclass{article}

\begin{document}

Foo \cite{bar} bar.! Point here hitting M-q

\end{document}

%%% Local Variables:
%%% mode: LaTeX
%%% TeX-master: t
%%% End:
--8<---------------cut here---------------end--------------->8---

Can you come up with a recipe to reproduce with:

• Start Emacs with 'emacs -Q'
• Activate AUCTeX by eval'ing this in scratch (presuming you've
  installed AUCTeX from ELPA):
    (progn
      (setq debug-on-error t)
      (package-initialize t)
      (package-activate 'auctex))
• In the file above (or any other example), tell us exactly where to put
  the cursor before hitting 'M-q'
• Show what the debugger says in your case.

Best, Arash





  reply	other threads:[~2024-09-03 11:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-03  6:46 bug#72999: 29.4; fill-paragraph error in latex mode Vadim Zaliva
2024-09-03 11:57 ` Arash Esbati [this message]
2024-09-04 13:51   ` Vadim Zaliva
2024-09-04 17:53     ` Arash Esbati
2024-09-06  7:17       ` Vadim Zaliva
2024-09-06  8:32         ` Arash Esbati
2024-09-03 12:48 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2jzft2bm1.fsf@macmutant.fritz.box \
    --to=arash@gnu.org \
    --cc=72999@debbugs.gnu.org \
    --cc=lord@crocodile.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.