all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#31738: 27.0.50; Flymake manual doesn't mention that syntax checking is started in after-save-hook
@ 2018-06-06 19:57 Michał Kondraciuk
  2018-06-06 21:46 ` João Távora
  0 siblings, 1 reply; 2+ messages in thread
From: Michał Kondraciuk @ 2018-06-06 19:57 UTC (permalink / raw)
  To: 31738

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






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#31738: 27.0.50; Flymake manual doesn't mention that syntax checking is started in after-save-hook
  2018-06-06 19:57 bug#31738: 27.0.50; Flymake manual doesn't mention that syntax checking is started in after-save-hook Michał Kondraciuk
@ 2018-06-06 21:46 ` João Távora
  0 siblings, 0 replies; 2+ messages in thread
From: João Távora @ 2018-06-06 21:46 UTC (permalink / raw)
  To: Michał Kondraciuk; +Cc: 31738

[-- Attachment #1: Type: text/plain, Size: 875 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1279 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-06 21:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-06 19:57 bug#31738: 27.0.50; Flymake manual doesn't mention that syntax checking is started in after-save-hook Michał Kondraciuk
2018-06-06 21:46 ` João Távora

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.