From: Ian Dunn <dunni@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: [ELPA] New package: Auto Correct Mode
Date: Sat, 02 Sep 2017 16:58:52 -0400 [thread overview]
Message-ID: <87lglw6cmr.fsf@escafil> (raw)
In-Reply-To: <m2378cbyz6.fsf@newartisans.com> (John Wiegley's message of "Sun, 27 Aug 2017 12:19:09 -0700")
[-- Attachment #1: Type: text/plain, Size: 1181 bytes --]
>>>>> "JW" == John Wiegley <jwiegley@gmail.com> writes:
JW> Maybe what you're offering is already possible, or can be
JW> integrated directly with flyspell using a customization?
Upon reviewing flyspell again, I realized that it is possible to
integrate with it, which I think makes much more sense than having a
package that stands entirely on its own.
What I've done is modified auto-correct to make it more of an extension
to ispell and flyspell, rather than its own interface. Corrections made
through either of these packages will be added as automatic corrections.
Further, I also added the ability to add support for handling
corrections from any other package. I explain how to do this in the
commentary.
Summary of New Design:
- Takes a correction from another package and stores it in an abbrev table
- The abbrev table is only active in auto-correct-mode, to avoid cluttering the global abbrev table
- The abbrev table is limited by auto-correct-predicate, which allows for better control
- Integrates with Ispell and flyspell to add their corrections without having to use another correction interface
- Can integrate with any other correction package
[-- Attachment #2: auto-correct.el --]
[-- Type: application/emacs-lisp, Size: 13286 bytes --]
[-- Attachment #3: Type: text/plain, Size: 14 bytes --]
--
Ian Dunn
next prev parent reply other threads:[~2017-09-02 20:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-27 16:06 [ELPA] New package: Auto Correct Mode Ian Dunn
2017-08-27 16:34 ` Eli Zaretskii
2017-08-27 18:23 ` Ian Dunn
2017-08-27 18:43 ` Eli Zaretskii
2017-08-27 19:19 ` John Wiegley
2017-08-28 0:29 ` Ian Dunn
2017-09-02 20:58 ` Ian Dunn [this message]
2017-09-03 20:48 ` John Wiegley
2017-09-04 13:47 ` Ian Dunn
2017-09-04 22:17 ` Stefan Monnier
2017-09-05 1:04 ` Ian Dunn
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=87lglw6cmr.fsf@escafil \
--to=dunni@gnu.org \
--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.