From: Richard Wordingham <richard.wordingham@ntlworld.com>
To: help-gnu-emacs@gnu.org
Subject: Re: correcting word groups (general spelling question)
Date: Wed, 1 Jul 2015 20:31:11 +0100 [thread overview]
Message-ID: <20150701203111.5eb04521@JRWUBU2> (raw)
In-Reply-To: <CAOj2CQRLHTrpUiNnkG=dzXi+Nk58mawo0_QEf5UamM=EBdf5gA@mail.gmail.com>
On Wed, 1 Jul 2015 10:47:14 -0700
John Mastro <john.b.mastro@gmail.com> wrote:
> Emanuel Berg <embe8573@student.uu.se> wrote:
> > (setq ispell-skip-region-alist
> > (append ispell-skip-region-alist '(("Hello Kitteh" . "")) ))
> >
> > Try it here:
> >
> > Hello Kitteh.
> >
> > Hello James. Noq I'm misspelling both "now" and
> > kitten: kitteh. Will it ignore Hello Kitteh, but still
> > get the two misspellings?
>
> That gives me an error ("matching region not found"), but these two
> seem to work as intended (after, admittedly, very little testing).
>
> ;; 1
> (push (list "Hello Kitteh" #'ignore) ispell-skip-region-alist)
> ;; 2
> (push (list "Hello Kitteh" (lambda (&rest _args) (match-end 0)))
> ispell-skip-region-alist)
>
Both need further tweaking for various non-zero quantities of white
space. A new line between 'Hello' and 'Kitteh' defeats these two
refinements. (Tested on Emacs 24.4.2.)
Richard.
next prev parent reply other threads:[~2015-07-01 19:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-30 11:16 correcting word groups (general spelling question) Yuri D'Elia
2015-07-01 0:08 ` Emanuel Berg
2015-07-01 3:46 ` Richard Wordingham
2015-07-01 17:27 ` Emanuel Berg
2015-07-01 17:47 ` John Mastro
2015-07-01 19:31 ` Richard Wordingham [this message]
2015-07-01 22:47 ` Emanuel Berg
2015-07-01 20:34 ` Yuri D'Elia
2015-07-01 22:50 ` Emanuel Berg
2015-07-08 10:19 ` Yuri D'Elia
2015-07-12 1:54 ` Emanuel Berg
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150701203111.5eb04521@JRWUBU2 \
--to=richard.wordingham@ntlworld.com \
--cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).