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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31738 in the body.
You can then email your comments to 31738 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#31738; Package emacs. (Wed, 06 Jun 2018 19:58:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michał Kondraciuk <k.michal <at> zoho.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 06 Jun 2018 19:58:02 GMT) Full text and rfc822 format available.

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

From: Michał Kondraciuk <k.michal <at> zoho.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; Flymake manual doesn't mention that syntax checking is
 started in after-save-hook
Date: Wed, 6 Jun 2018 21:57:29 +0200
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.

In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2018-06-06 built on mkc
Repository revision: 4a51deb993d923767f0eddd4f350e636fe8d7c0b





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#31738; Package emacs. (Wed, 06 Jun 2018 21:48:02 GMT) Full text and rfc822 format available.

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)]

Added tag(s) fixed. Request was from João Távora <joaotavora <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 08 Jun 2018 18:45:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 31738 <at> debbugs.gnu.org and Michał Kondraciuk <k.michal <at> zoho.com> Request was from João Távora <joaotavora <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 08 Jun 2018 18:45:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 07 Jul 2018 11:24:03 GMT) Full text and rfc822 format available.

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

Previous Next


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