GNU bug report logs -
#41564
Auctex on elpa, dated may 24th 2020 is broken
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41564 in the body.
You can then email your comments to 41564 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#41564
; Package
auctex
.
(Wed, 27 May 2020 15:04:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Marco Falconi <marco.falconi <at> uniroma3.it>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Wed, 27 May 2020 15:04:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
As explained in the subject, the Auctex distribution now on elpa is broken.
I reverted to the version downloadable on the archives of last october, and it works back
perfectly.
Best,
_____
Marco
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#41564
; Package
auctex
.
(Thu, 28 May 2020 15:46:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 41564 <at> debbugs.gnu.org (full text, mbox):
Marco Falconi <marco.falconi <at> uniroma3.it> writes:
> As explained in the subject, the Auctex distribution now on elpa is
> broken.
That's very unfortunate. Could you please provide some more details
about what exactly is broken? I.e., what error do you get? Or what
doesn't work anymore which has worked with the previous version?
Thanks,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#41564
; Package
auctex
.
(Thu, 28 May 2020 16:41:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 41564 <at> debbugs.gnu.org (full text, mbox):
Essentially nothing worked, in the sense that it gave me an error in entering the LaTeX
major mode (a void definition of a symbol's function, unfortunately I do not remember
which function, since then I reverted to the latest stable distribution). The mode I was
then using for the file was a sort of broken LaTeX mode, not working properly (C-c C-c and
C-c C-a where both not working, for example). I tried to reinstall the elpa package
several times, and the issue was always the same.
No one else is reporting such a problem? 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.
All the best,
_____
Marco
Tassilo Horn <tsdh <at> gnu.org> writes:
> Marco Falconi <marco.falconi <at> uniroma3.it> writes:
>
>> As explained in the subject, the Auctex distribution now on elpa is
>> broken.
>
> That's very unfortunate. Could you please provide some more details
> about what exactly is broken? I.e., what error do you get? Or what
> doesn't work anymore which has worked with the previous version?
>
> Thanks,
> Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#41564
; Package
auctex
.
(Thu, 28 May 2020 16:47:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 41564 <at> debbugs.gnu.org (full text, mbox):
Marco Falconi <marco.falconi <at> uniroma3.it> 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
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#41564
; Package
auctex
.
(Thu, 28 May 2020 21:40:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 41564 <at> debbugs.gnu.org (full text, mbox):
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 <tsdh <at> gnu.org> writes:
> Marco Falconi <marco.falconi <at> uniroma3.it> 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
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#41564
; Package
auctex
.
(Fri, 29 May 2020 04:54:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 41564 <at> debbugs.gnu.org (full text, mbox):
Marco Falconi <marco.falconi <at> uniroma3.it> writes:
Hi Marco,
> I attach here both the debugger backtrace report, and the system
> information, as you asked.
>
> Hope it helps.
It does.
> 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)
Indeed, we have restructured quite a lot in font-latex.el in the last
ELPA release, and now font-latex-extend-region-functions is gone.
However, there is no font-latex-extend-region-backwards-lemma-envII in
AUCTeX. Do you use some extension package providing that function? Or
is that in your ~/.emacs?
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#41564
; Package
auctex
.
(Fri, 29 May 2020 05:57:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 41564 <at> debbugs.gnu.org (full text, mbox):
Hi Tassilo,
Yes I have this function in my .emacs (since very long time, I forgot about that, I
probably copied it from some source).
The full functions are as pasted below. Can you give me some hint on how shall I modify
them?
All the best,
_____
Marco
(defcustom font-latex-lemma-environments
'("theorem" "lemma")
"List of lemma-like environment names for font locking."
:type '(repeat string)
:group 'font-latex)
(add-hook 'LaTeX-mode-hook
(lambda ()
(defun font-latex-match-lemma-envII (limit)
"Match lemma patterns up to LIMIT.
Used for patterns like:
\\begin{equation}
fontified stuff
\\end{equation}
The \\begin{equation} and \\end{equation} are not fontified here."
(when (re-search-forward (concat "\\\\begin[ \t]*{"
(regexp-opt font-latex-lemma-environments t)
"\\*?}")
limit t)
(let ((beg (match-end 0)) end)
(if (re-search-forward (concat "\\\\end[ \t]*{"
(regexp-quote
(buffer-substring-no-properties
(match-beginning 1)
(match-end 0))))
;; XXX: Should this rather be done by
;; extending the region to be fontified?
(+ limit font-latex-multiline-boundary) 'move)
(setq end (match-beginning 0))
(goto-char beg)
(setq end beg))
(font-latex-put-multiline-property-maybe beg end)
(store-match-data (list beg end))
t)))
(defun font-latex-extend-region-backwards-lemma-envII (beg end)
"Return position to extend region backwards for lemma environments.
Return nil if region does not have to be extended for a multiline
environment to fit in. The region between the positions BEG and
END marks boundaries for searching for environment ends."
(save-excursion
(goto-char end)
(catch 'extend
(while (re-search-backward
(concat "\\\\end[ \t]*{"
(regexp-opt font-latex-lemma-environments t)
"\\*?}") beg t)
(when (and (re-search-backward (concat "\\\\begin[ \t]*{"
(buffer-substring-no-properties
(match-beginning 1)
(match-end 0)))
(- beg font-latex-multiline-boundary) t)
(< (point) beg))
(throw 'extend (point))))
nil)))
(add-to-list 'font-latex-keywords-2 '(font-latex-match-lemma-envII (0 'font-latex-doctex-documentation-face t t)))
(add-to-list 'font-latex-extend-region-functions 'font-latex-extend-region-backwards-lemma-envII)
))
Tassilo Horn <tsdh <at> gnu.org> writes:
> Marco Falconi <marco.falconi <at> uniroma3.it> writes:
>
> Hi Marco,
>
>> I attach here both the debugger backtrace report, and the system
>> information, as you asked.
>>
>> Hope it helps.
>
> It does.
>
>> 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)
>
> Indeed, we have restructured quite a lot in font-latex.el in the last
> ELPA release, and now font-latex-extend-region-functions is gone.
> However, there is no font-latex-extend-region-backwards-lemma-envII in
> AUCTeX. Do you use some extension package providing that function? Or
> is that in your ~/.emacs?
>
> Bye,
> Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#41564
; Package
auctex
.
(Fri, 29 May 2020 16:22:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 41564 <at> debbugs.gnu.org (full text, mbox):
Marco Falconi <marco.falconi <at> uniroma3.it> writes:
Hi Marco,
> Yes I have this function in my .emacs (since very long time, I forgot
> about that, I probably copied it from some source).
>
> The full functions are as pasted below. Can you give me some hint on
> how shall I modify them?
Well, what those functions did was fontifying the contents of all
theorem and lemma environments in font-latex-doctex-documentation-face,
i.e., stuff like
\begin{theorem}
I am fontified in font-latex-doctex-documentation-face.
\end{theorem}
You can create such environments with the ntheorem package, i.e.,
\usepackage{ntheorem}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}
but it is a user's choice to name the environments theorem or lemma
(though possibly you are using that convention).
FWIW, I'd suggest to remove this customization entirely and check if it
is allright for you to have theorem/lemma bodies fontified normally.
If you feel like something deeply loved is missing then, I can rewrite
your code to match the new font-latex business.
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#41564
; Package
auctex
.
(Fri, 29 May 2020 17:18:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 41564 <at> debbugs.gnu.org (full text, mbox):
Hi Tassilo,
I happily removed that function, and now everything is back to normal as you suggested.
I use the function to fontify in equations (that keeps working), but not the one that
fontifies theorems and lemmas, so I have not lost anything in removing that.
Many thanks for the very useful feedback!
Best,
_____
Marco
Tassilo Horn <tsdh <at> gnu.org> writes:
> Marco Falconi <marco.falconi <at> uniroma3.it> writes:
>
> Hi Marco,
>
>> Yes I have this function in my .emacs (since very long time, I forgot
>> about that, I probably copied it from some source).
>>
>> The full functions are as pasted below. Can you give me some hint on
>> how shall I modify them?
>
> Well, what those functions did was fontifying the contents of all
> theorem and lemma environments in font-latex-doctex-documentation-face,
> i.e., stuff like
>
> \begin{theorem}
> I am fontified in font-latex-doctex-documentation-face.
> \end{theorem}
>
> You can create such environments with the ntheorem package, i.e.,
>
> \usepackage{ntheorem}
> \newtheorem{theorem}{Theorem}
> \newtheorem{lemma}{Lemma}
>
> but it is a user's choice to name the environments theorem or lemma
> (though possibly you are using that convention).
>
> FWIW, I'd suggest to remove this customization entirely and check if it
> is allright for you to have theorem/lemma bodies fontified normally.
>
> If you feel like something deeply loved is missing then, I can rewrite
> your code to match the new font-latex business.
>
> Bye,
> Tassilo
Reply sent
to
Tassilo Horn <tsdh <at> gnu.org>
:
You have taken responsibility.
(Fri, 29 May 2020 19:33:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Marco Falconi <marco.falconi <at> uniroma3.it>
:
bug acknowledged by developer.
(Fri, 29 May 2020 19:33:03 GMT)
Full text and
rfc822 format available.
Message #34 received at 41564-done <at> debbugs.gnu.org (full text, mbox):
Marco Falconi <marco.falconi <at> uniroma3.it> writes:
Hi Marco,
> I happily removed that function, and now everything is back to normal
> as you suggested.
>
> I use the function to fontify in equations (that keeps working), but
> not the one that fontifies theorems and lemmas, so I have not lost
> anything in removing that.
That's good news. I'm therefore closing this bug report.
Bye,
Tassilo
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 27 Jun 2020 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 359 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.