bug#72999: 29.4; fill-paragraph error in latex mode

2024-09-03 Thread Arash Esbati
Vadim Zaliva  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





bug#72999: 29.4; fill-paragraph error in latex mode

2024-09-04 Thread Arash Esbati
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:

• 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
• 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
• Bisect your packages you load with AUCTeX and see which one breaks
  with your .tex file
• 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/Instrumenting.html
[2]  
https://www.gnu.org/software/emacs/manual/html_node/elisp/Edebug-Execution-Modes.html





bug#72999: 29.4; fill-paragraph error in latex mode

2024-09-06 Thread Arash Esbati
tags 72999 notabug
close 72999
thanks

Vadim Zaliva  writes:

> Removing the following from my .emacs fixed the problem:
>
> (use-package latex-extra
>   :ensure t
>   :hook (LaTeX-mode . latex-extra-mode))

Thanks for reporting back.  Maybe you want to report the issue to
latex-extra tracker[1].

I'm closing this report here since it's not an AUCTeX bug.

Best, Arash

Footnotes:
[1]  https://github.com/Malabarba/latex-extra/issues





bug#73082: 30; Inconsistent Stipple Support

2024-09-06 Thread Arash Esbati
JD Smith  writes:

> To my knowledge, the current situation for :stipple support in Emacs
> 30 is as follows:
>
> * NS (partially working): Commit ef6ffbdc79 from last May provided a
> partial fix, but stipples are black and white only (bug#70712)

FWIW, this is what I see on macOS with NS-port:

> * Windows (working?): patched in June (bug#71159)

And this is on Windows:

Both with "emacs -Q" incl. the value of `emacs-repository-version'.

Best, Arash


bug#73092: 31.0.50; Completion lists unbound variables with suffix - (e.g., rcirc-)

2024-09-07 Thread Arash Esbati
Tassilo Horn  writes:

> It just occurred to me that variable completion with C-h v lists
> non-existent variables with suffix -, e.g., rcirc-, Man-, Info-, info-,
> etc.  When selecting one of those, the *Help* buffer just says
>
> rcirc- is void as a variable.
>
> Not documented as a variable.
>
> Yeah, that's correct, but why was it shown in the *Completions* then?

I trapped into this as well, have a look at bug#72787.

Best, Arash