[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an err
From: |
Lars Ingebrigtsen |
Subject: |
bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error |
Date: |
Sun, 17 Apr 2022 22:27:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Jim Porter <jporterbugs@gmail.com> writes:
> # -*- mode: FOO; mode: BAR -*-
>
> This way, it would try to load FOO-mode and then BAR-mode in order,
> and so I could set up the mode for files to ensure that users with
> BAR-mode available can use that, but it falls back to FOO-mode
> otherwise. Unfortunately, in Emacs 28.1, this now fails with:
>
> File local-variables error: (error Lisp nesting exceeds
> ‘max-lisp-eval-depth’)
Yes, there's something weird going on with the mode: spec. With the
following, and Emacs 28.1 (and NEWS from 29), it infloops.
(unless (fboundp 'emacs-news-mode)
(defun emacs-news-mode ()
(outline-mode)))
Like this:
emacs-news-mode()
hack-one-local-variable(mode emacs-news)
hack-local-variables-apply()
hack-local-variables(no-mode)
run-mode-hooks(outline-mode-hook)
outline-mode()
emacs-news-mode()
hack-one-local-variable(mode emacs-news)
hack-local-variables-apply()
hack-local-variables(no-mode)
run-mode-hooks(outline-mode-hook)
outline-mode()
emacs-news-mode()
set-auto-mode-0(emacs-news-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
The mode: parsing stuff was largely redone for Emacs 28.1, and
I guess this is a fallout from that.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, (continued)
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Michael Albinus, 2022/04/18
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Eli Zaretskii, 2022/04/18
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Lars Ingebrigtsen, 2022/04/18
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Eli Zaretskii, 2022/04/18
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Lars Ingebrigtsen, 2022/04/19
bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Jim Porter, 2022/04/17
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error,
Lars Ingebrigtsen <=
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Lars Ingebrigtsen, 2022/04/17
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Lars Ingebrigtsen, 2022/04/18
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Lars Ingebrigtsen, 2022/04/18
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Juri Linkov, 2022/04/18
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Lars Ingebrigtsen, 2022/04/19
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Michael Albinus, 2022/04/19
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Lars Ingebrigtsen, 2022/04/19
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Juri Linkov, 2022/04/19
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Kévin Le Gouguec, 2022/04/20
- bug#54993: 28.1; Editing etc/NEWS on master with Emacs 28 signals an error, Lars Ingebrigtsen, 2022/04/20