Subject: Re: bug#41564: Auctex on elpa, dated may 24th 2020 is broken

From: Marco Falconi <[email-masked]>
Date: Thu, 28 May 2020 23:38:53 +0200

Dear Tassilo,

I attach here both the debugger backtrace report, and the system information, as you
asked.

Hope it helps.
All the best,
_____
Marco

====================================================================================
*backtrace*

Debugger entered--Lisp error: (void-variable font-latex-extend-region-functions)
  (member (quote font-latex-extend-region-backwards-lemma-envII) font-latex-extend-region-functions)
  (if (member (quote font-latex-extend-region-backwards-lemma-envII) font-latex-extend-region-functions) font-latex-extend-region-functions (setq font-latex-extend-region-functions (cons (quote font-latex-extend-region-backwards-lemma-envII) font-latex-extend-region-functions)))
  (lambda nil (defalias (quote font-latex-match-lemma-envII) (function (lambda (limit) "Match lemma patterns up to LIMIT.\nUsed for patterns like:\n\\begin{equation}\n fontified stuff\n\\end{equation}\nThe \\begin{equation} and \\end{equation} are not fontified here." (if (re-search-forward (concat "\\\\begin[ \011]*{" (regexp-opt font-latex-lemma-environments t) "\\*?}") limit t) (progn (let (... end) (if ... ... ... ...) (font-latex-put-multiline-property-maybe beg end) (store-match-data ...) t)))))) (defalias (quote font-latex-extend-region-backwards-lemma-envII) (function (lambda (beg end) "Return position to extend region backwards for lemma environments.\nReturn nil if region does not have to be extended for a multiline\nenvironment to fit in.  The region between the positions BEG and\nEND marks boundaries for searching for environment ends." (save-excursion (goto-char end) (catch (quote extend) (while (re-search-backward ... beg t) (if ... ...)) nil))))) (if (member (quote (font-latex-match-lemma-envII (0 (quote font-latex-doctex-documentation-face) t t))) font-latex-keywords-2) font-latex-keywords-2 (setq font-latex-keywords-2 (cons (quote (font-latex-match-lemma-envII (0 (quote font-latex-doctex-documentation-face) t t))) font-latex-keywords-2))) (if (member (quote font-latex-extend-region-backwards-lemma-envII) font-latex-extend-region-functions) font-latex-extend-region-functions (setq font-latex-extend-region-functions (cons (quote font-latex-extend-region-backwards-lemma-envII) font-latex-extend-region-functions))))()
  run-hooks(change-major-mode-after-body-hook text-mode-hook TeX-mode-hook LaTeX-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook text-mode-hook TeX-mode-hook LaTeX-mode-hook))
  run-mode-hooks(text-mode-hook TeX-mode-hook LaTeX-mode-hook)
  TeX-latex-mode()
  apply(TeX-latex-mode nil)
  latex-mode()
  set-auto-mode-0(latex-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer wf_v7.tex> "~/postdoc/projects/m/lattice_qed/working_file/wf_v7.tex" nil nil "~/postdoc/projects/m/lattice_qed/working_file/wf_v7.tex" (3815710 66310))
  find-file-noselect("/home/lobo/postdoc/projects/m/lattice_qed/working_file/wf_v7.tex" nil nil nil)
  find-file("/home/lobo/postdoc/projects/m/lattice_qed/working_file/wf_v7.tex")
  mapc(find-file ("/home/lobo/postdoc/projects/m/lattice_qed/working_file/wf_v7.tex"))
  helm-find-many-files("/home/lobo/postdoc/projects/m/lattice_qed/working_file/wf_v7.tex")
  helm-execute-selection-action-1()
  helm-execute-selection-action()
  helm-internal((helm-source-buffers-list helm-source-recentf helm-source-buffer-not-found) nil nil nil nil "*helm mini*" nil nil nil)
  apply(helm-internal ((helm-source-buffers-list helm-source-recentf helm-source-buffer-not-found) nil nil nil nil "*helm mini*" nil nil nil))
  helm((helm-source-buffers-list helm-source-recentf helm-source-buffer-not-found) nil nil nil nil "*helm mini*" nil nil nil)
  apply(helm ((helm-source-buffers-list helm-source-recentf helm-source-buffer-not-found) nil nil nil nil "*helm mini*" nil nil nil))
  helm(:sources (helm-source-buffers-list helm-source-recentf helm-source-buffer-not-found) :buffer "*helm mini*" :ff-transformer-show-only-basename nil :truncate-lines t :left-margin-width 0)
  helm-mini()
  funcall-interactively(helm-mini)
  call-interactively(helm-mini nil nil)
  command-execute(helm-mini)

====================================================================================

Bug report

Emacs  : GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20)
 of 2020-05-19
Package: 12.2.2

current state:
==============
(setq
 AUCTeX-date "2020-05-24"
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("~/.emacs.d/auctex" "/home/lobo/.emacs.d/elpa/auctex-12.2.2/style" "/home/lobo/.emacs.d/auctex/auto"
		  "/home/lobo/.emacs.d/auctex/style" "auto" "style")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master nil
 TeX-command-list '(("TeX" "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil
		     (plain-tex-mode texinfo-mode ams-tex-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")
		    ("Forward" "pdf-sync-forward-search" TeX-run-function nil t))
 )

======================================================================

Tassilo Horn <[email-masked]> writes:

> Marco Falconi <[email-masked]> writes:
>
>> No one else is reporting such a problem?
>
> Not until now.
>
>> If not, I can reinstall the package and test it for you, but since I
>> use AucTeX for my work, I cannot do it right now.
>
> No problem, do it whenever you have time.
>
>   - Update to the current ELPA auctex release
>   - Fire up a new emacs
>   - Do M-x toggle-debug-on-error RET
>   - Find a latex file
>
> Then a buffer with the backtrace should pop up when the error happens
> pinpointing the exact location of the problem.  That's what we need.
>
> It would also be good to get some more system information (Emacs
> version, AUCTeX configuration, etc.).  For that, do M-x
> TeX-submit-bug-report RET RET and copy and paste the information below
> the dashed line into your reply to this report.
>
> Bye,
> Tassilo