GNU bug report logs - #31738
27.0.50; Flymake manual doesn't mention that syntax checking is started in after-save-hook

Previous Next

Package: emacs;

Reported by: Michał Kondraciuk <k.michal <at> zoho.com>

Date: Wed, 6 Jun 2018 19:58:01 UTC

Severity: normal

Tags: fixed

Found in version 27.0.50

Fixed in version 27.1

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

Bug is archived. No further changes may be made.

Full log


Message #8 received at 31738 <at> debbugs.gnu.org (full text, mbox):

From: João Távora <joaotavora <at> gmail.com>
To: Michał Kondraciuk <k.michal <at> zoho.com>
Cc: 31738 <at> debbugs.gnu.org
Subject: Re: bug#31738: 27.0.50; Flymake manual doesn't mention that syntax
 checking is started in after-save-hook
Date: Wed, 6 Jun 2018 22:46:52 +0100
[Message part 1 (text/plain, inline)]
>
> On Wed, Jun 6, 2018 at 8:57 PM, Michał Kondraciuk <k.michal <at> zoho.com>
> wrote:
> >
> > The Flymake manual says that syntax checking is started whenever
> >
> > - ‘flymake-mode’ is started, unless ‘flymake-start-on-flymake-mode’
> >      is nil;
> > - a newline character is added to the buffer, unless
> >      ‘flymake-start-syntax-check-on-newline’ is nil;
> > - some changes were made to the buffer more than ‘0.5’ seconds ago
> >
> >
> > But it doesn't mention that Flymake also starts in 'after-save-hook.
> > Also, I think there should be an option to disable checking the buffer
> > on save.
>
> Well, you can

(add-hook 'flymake-mode-hook
  (lambda () (remove-hook 'after-save-hook 'flymake-after-save-hook t)))

But an option makes more sense.  Regarding the manual, you are also right.
I will do this for 26.2.

João
[Message part 2 (text/html, inline)]

This bug report was last modified 7 years and 43 days ago.

Previous Next


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