all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Juri Linkov <juri@linkov.net>
Cc: 34294@debbugs.gnu.org
Subject: bug#34294: 27.0.50; flymake-start-on-save-buffer has no effect
Date: Sun, 03 Feb 2019 22:10:41 +0000	[thread overview]
Message-ID: <87y36w8qvy.fsf@gmail.com> (raw)
In-Reply-To: <87h8dkk3ho.fsf@mail.linkov.net> (Juri Linkov's message of "Sun,  03 Feb 2019 22:42:59 +0200")

Juri Linkov <juri@linkov.net> writes:

>>> I have flymake-start-on-save-buffer customized to 't' to check syntax
>>> only when a buffer is saved, but it still checks the unfinished work
>>> while edits are in progress, showing the errors that make no sense
>>> until the buffer is saved
>>
>> They "make sense" if you were to interpret/compile the buffer's
>> contents at that moment.  It's called fly-make for a reason ;-).
>
> I just want flymake to fly a little lower ;-)

OK, no problem.

> 1. The defcustom definition of flymake-no-changes-timeout
>    currently doesn't allow customizing its value to nil,
>    because it's type is only 'number.  It could provide
>    an option for `nil'.

A patch is welcome to to fix this.

> 2. Naming inconsistency - there are following customizable variables:
>
> (defcustom flymake-start-on-flymake-mode t
> (defcustom flymake-start-on-save-buffer t
> (defcustom flymake-start-syntax-check-on-newline t
>
> The last is unnecessary long and could be simplified to just:
>
> (defcustom flymake-start-on-newline t
>
> Please compare it with another variable already renamed with:
>
> (define-obsolete-variable-alias 'flymake-start-syntax-check-on-find-file
>   'flymake-start-on-flymake-mode "26.1")

A second patch is welcome to fix this too.  Please use obsolete variable
aliases, as you suggested.  I trust you will choose good names.

> 3. Maybe the documentation could be improved with the docstring of
> flymake-start-on-save-buffer having a hint about disabling
> flymake-no-changes-timeout?
>
> For example, etc/TODO has such entry:
>
>   ** Flymake's customization mechanism needs to be both simpler (fewer
>   levels of indirection) and better documented, so it is easier to
>   understand.  I find it quite hard to figure out what compilation
>   command it will use.

That is probably obsolete and can be erased.  My flymake.el redesign
should have taken care of that, and is documented in the Flymake info
node.  If you feel it is sufficient documentation, a third patch is
welcome to remove that TODO entry.

> 4. Also I found these related entries in the same etc/TODO file:
>
>   ** Display something in the margin on lines that have compilation
>   errors.

Flymake does this, even though it uses the fringe by default, but I
don't have more clues to what the author of this line intended.

>   ** Allow fringe indicators to display a tooltip (provide a help-echo
>   property?)

I think this is a more generic wish and is not strictly Flymake related.

> What do you think about displaying a tooltip on the fringe indicator
> with the same text that is displayed on the tooltip over the location
> of the error in the source buffer?  It's easier to hover on the fringe
> than finding the location in the buffer to hover.

I don't have any strong opinion. It's fine, I guess, but not
specifically tied to Flymake.  It may be difficult to implement.  BTW
you can use flymake-goto-next-error and flymake-goto-prev-error to
navigate between errors, it's what I use all the time.

So to summarize, it'd be great if you could provide the three patches to
implement the suggestions you gave.

João





  reply	other threads:[~2019-02-03 22:10 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-02 21:30 bug#34294: 27.0.50; flymake-start-on-save-buffer has no effect Juri Linkov
2019-02-02 22:40 ` João Távora
2019-02-03 20:42   ` Juri Linkov
2019-02-03 22:10     ` João Távora [this message]
2019-02-04 21:24       ` Juri Linkov
2019-02-04 22:41         ` João Távora
2019-02-17 20:11           ` Juri Linkov
2019-03-18 21:10             ` Juri Linkov
2019-03-18 21:43               ` João Távora
2019-03-19 20:46                 ` Juri Linkov
2019-03-27 21:38                   ` Juri Linkov
2019-04-17 20:29                     ` Juri Linkov
2019-04-18 11:36                       ` João Távora
2019-04-18 20:42                         ` Juri Linkov
2019-04-19  6:35                           ` Eli Zaretskii
2019-04-24 20:25                             ` Juri Linkov
2019-04-25  5:46                               ` Eli Zaretskii
2019-04-25  8:07                               ` martin rudalics
2019-04-29 20:15                                 ` Juri Linkov
2019-05-01  8:29                                   ` martin rudalics
2019-05-01 21:10                                     ` Juri Linkov
2019-05-04 17:34                                       ` martin rudalics
2019-05-04 21:16                                         ` Juri Linkov
2019-05-05  9:04                                           ` martin rudalics
2019-05-05 22:46                                             ` Richard Stallman
2019-05-05 23:09                                               ` João Távora
2019-05-05 20:08 ` Juri Linkov
2019-05-05 23:02   ` João Távora
2019-05-06 20:15     ` Juri Linkov
2019-05-07 20:29       ` Juri Linkov
2019-05-07 23:10         ` João Távora

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y36w8qvy.fsf@gmail.com \
    --to=joaotavora@gmail.com \
    --cc=34294@debbugs.gnu.org \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.