[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: correcting word groups (general spelling question)
From: |
Richard Wordingham |
Subject: |
Re: correcting word groups (general spelling question) |
Date: |
Wed, 1 Jul 2015 20:31:11 +0100 |
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.