GNU bug report logs -
#70817
14.0.3.2024-03-17; max-lisp-eval-depth exceeded with XeTeX option
Previous Next
Reported by: "Landis Florian (ladi)" <ladi <at> zhaw.ch>
Date: Tue, 7 May 2024 11:08:01 UTC
Severity: normal
Tags: notabug
Found in version 14.0.3.2024
Done: Ikumi Keita <ikumi <at> ikumi.que.jp>
Bug is archived. No further changes may be made.
Full log
Message #26 received at 70817 <at> debbugs.gnu.org (full text, mbox):
Hi Landis and all,
>>>>> "Landis Florian (ladi)" <ladi <at> zhaw.ch> writes:
> latex-mode()
^^^^^^^^^^^^
> #<subr hack-one-local-variable>(mode LaTeX)
> apply(#<subr hack-one-local-variable> (mode LaTeX))
> hack-one-local-variable(mode LaTeX)
I think this must be the issue bug#69373[1]. Landis, can you try the
patch given in [2]? If not, either
A. Update your emacs to 29.3 or
B. Put the following code block into somewhere in your init file
(~/.emacs.d/init.el)
----------------------------------------------------------------------
(defun hack-one-local-variable (var val)
"Set local variable VAR with value VAL.
If VAR is `mode', call `VAL-mode' as a function unless it's
already the major mode."
(pcase var
('mode
(let ((mode (intern (concat (downcase (symbol-name val))
"-mode"))))
(set-auto-mode-0 mode t)))
('eval
(pcase val
(`(add-hook ',hook . ,_) (hack-one-local-variable--obsolete hook)))
(save-excursion (eval val t)))
(_
(hack-one-local-variable--obsolete var)
;; Make sure the string has no text properties.
;; Some text properties can get evaluated in various ways,
;; so it is risky to put them on with a local variable list.
(if (stringp val)
(set-text-properties 0 (length val) nil val))
(set (make-local-variable var) val))))
----------------------------------------------------------------------
Sorry for inconvenience.
[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69373
[2] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69373#14
Best regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW
This bug report was last modified 1 year and 64 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.