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: emacs-devel@gnu.org
Subject: Flyspell sans flyspell
Date: Fri, 15 Jun 2018 16:13:41 +0100	[thread overview]
Message-ID: <87po0sozfe.fsf@gmail.com> (raw)

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

Hi,

Or rather, avec du Flymake.  I just pushed some updates that allow
Flymake and backends to exchange hints about the modified portions of
the buffer.

This in turn allowed me to build a very simple prototype
flyspell-flymake.el (attached after the sig) with backends that reuse
Flyspell's machinery and turn Flymake into a spell checker.

It is not really usable since it suffers a lot from Flyspell's quirks
like moving the point as it's checking words, a lot of chatter in the
echo area, and probably more that I haven't noticed.  This is mainly
because Flyspell doesn't provide any kind of API, and all I did was
override the overlay API around calls to `flyspell-region' using
`cl-letf.

Still, works better than I expected it to.  If you want to try it, build
a recent master, load the attached file, and eval one of the following

   (add-hook 'flymake-diagnostic-functions 'flyspell-prog-flymake) ; for programming
   (add-hook 'flymake-diagnostic-functions 'flyspell-flymake) ; for text

Then M-x flymake-mode

João


[-- Attachment #2: flyspell-flymake.el --]
[-- Type: application/emacs-lisp, Size: 4015 bytes --]

             reply	other threads:[~2018-06-15 15:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-15 15:13 João Távora [this message]
2018-06-16  0:25 ` Flyspell sans flyspell Stefan Monnier
2018-06-16 12:57   ` 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=87po0sozfe.fsf@gmail.com \
    --to=joaotavora@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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.