GNU bug report logs - #40573
27.0.90; flymake-mode broken in scratch buffer

Previous Next

Package: emacs;

Reported by: João Távora <joaotavora <at> gmail.com>

Date: Sun, 12 Apr 2020 13:20:02 UTC

Severity: normal

Found in version 27.0.90

Done: João Távora <joaotavora <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: João Távora <joaotavora <at> gmail.com>
Cc: 40573 <at> debbugs.gnu.org, dgutov <at> yandex.ru, monnier <at> iro.umontreal.ca, juri <at> linkov.net
Subject: bug#40573: 27.0.90; flymake-mode broken in scratch buffer
Date: Tue, 14 Apr 2020 18:42:54 +0300
> From: João Távora <joaotavora <at> gmail.com>
> Date: Tue, 14 Apr 2020 13:56:28 +0100
> Cc: Juri Linkov <juri <at> linkov.net>, 40573 <at> debbugs.gnu.org, 
> 	Stefan Monnier <monnier <at> iro.umontreal.ca>, Dmitry Gutov <dgutov <at> yandex.ru>
> 
> > What I was getting at was that maybe there are other extensions that
> > we'd like to trigger this mode.  Also, Emacs has means for
> > automatically turning modes on, other than the file-name extension and
> > the mode cookie.  Maybe some of them could be used in this case.
> 
> Do you mean magic-mode-alist?

That's one such feature, yes.  There are others:
interpreter-mode-alist, auto-mode-interpreter-regexp, etc.

> Do you think you'd be able
> to come up with something that won't yield a lot  of false
> positives or a lot of false negatives?  If so, don't  let me
> stop you.

I was just asking whether any of these can be relevant, that's all.  A
negative answer is OK.

> > I meant traits that are relevant to what major modes do:
> > fontification, indentation, what is considered a defun, etc.
> 
> Sure, and I meant it's easier to think of them as subtraction 
> from the existing emacs-lisp-mode.  Ask yourself the inverse
> question: what things _aren't_ relevant.

I was asking that aloud.

> Re. defun finding.  In general, there are no things
> analogous to a defun in data files, there just aren't!

I think the example shown by Juri included a lambda-function.




This bug report was last modified 5 years and 25 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.