[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#40573: 27.0.90; flymake-mode broken in scratch buffer
From: |
Basil L. Contovounesios |
Subject: |
bug#40573: 27.0.90; flymake-mode broken in scratch buffer |
Date: |
Fri, 17 Apr 2020 15:44:39 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: João Távora <joaotavora@gmail.com>
>> Date: Fri, 17 Apr 2020 11:21:50 +0100
>> Cc: Stefan Monnier <monnier@iro.umontreal.ca>, Juri Linkov <juri@linkov.net>,
>> 40573@debbugs.gnu.org,
>> Dmitry Gutov <dgutov@yandex.ru>
>>
>> So I'm thinking of introducing lisp-data-mode later on in
>> master, following Stefan's patch. And using it only for `dir-locals.el`
>> for now (and for my own files of course).
>>
>> Is that OK with you?
>
> No. IMO a mode included in the core should handle more that just one
> kind of file.
FWIW, Juri pointed out some other files that could be placed in
lisp-data-mode in https://debbugs.gnu.org/40573#32:
> 1. ~/.emacs.d/elpa/archives/gnu/archive-contents
This would require adding a -*- mode -*- cookie in
package--download-one-archive, but this might complicate signature
checking.
> 2. ~/.emacs.d/bookmarks
This would require adding a -*- mode -*- cookie in
bookmark-insert-file-format-version-stamp.
> 3. ~/.emacs.d/tramp
This would require adding a -*- mode -*- cookie in
tramp-dump-connection-properties.
> 4. ~/.emacs.d/places
This would require adding a -*- mode -*- cookie in
save-place-alist-to-file.
Here are some more files of the same type in my own
user-emacs-directory:
5. nsm-settings-file
This would require adding a -*- mode -*- cookie in nsm-write-settings.
6. (expand-file-name "eww-bookmarks" eww-bookmarks-directory)
This would require adding a -*- mode -*- cookie in eww-write-bookmarks.
7. Possibly some EDE project files
Judging from:
(defclass ede-proj-project (...)
...
(file-header-line :initform ";; EDE Project Files are auto generated: Do Not
Edit")
...)
But I don't use EDE so I can't say for sure.
> All these data files have one difference from ELisp code files:
> they are not loaded with evaluation.
They also differ in that they are all auto-generated and generally not
edited, but...
> They all could benefit from a dedicated emacs-lisp-data-mode.
...I sympathise with this.
--
Basil
- bug#40573: 27.0.90; flymake-mode broken in scratch buffer, (continued)
- bug#40573: 27.0.90; flymake-mode broken in scratch buffer, Basil L. Contovounesios, 2020/04/18
- bug#40573: 27.0.90; flymake-mode broken in scratch buffer, João Távora, 2020/04/18
- bug#40573: 27.0.90; flymake-mode broken in scratch buffer, Basil L. Contovounesios, 2020/04/18
- bug#40573: 27.0.90; flymake-mode broken in scratch buffer, João Távora, 2020/04/19
- bug#40573: 27.0.90; flymake-mode broken in scratch buffer, Juri Linkov, 2020/04/18
- bug#40573: 27.0.90; flymake-mode broken in scratch buffer, João Távora, 2020/04/19
- bug#40573: 27.0.90; flymake-mode broken in scratch buffer,
Basil L. Contovounesios <=
- bug#40573: 27.0.90; flymake-mode broken in scratch buffer, Stefan Monnier, 2020/04/17
- bug#40573: 27.0.90; flymake-mode broken in scratch buffer, Eli Zaretskii, 2020/04/17
- bug#40573: 27.0.90; flymake-mode broken in scratch buffer, Juri Linkov, 2020/04/18