bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#31738: 27.0.50; Flymake manual doesn't mention that syntax checking


From: João Távora
Subject: 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

On Wed, Jun 6, 2018 at 8:57 PM, Michał Kondraciuk <k.michal@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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]