all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Mastro <john.b.mastro@gmail.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: correcting word groups (general spelling question)
Date: Wed, 1 Jul 2015 10:47:14 -0700	[thread overview]
Message-ID: <CAOj2CQRLHTrpUiNnkG=dzXi+Nk58mawo0_QEf5UamM=EBdf5gA@mail.gmail.com> (raw)
In-Reply-To: <87r3orhjp9.fsf@nl106-137-147.student.uu.se>

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)

-- 
john



  reply	other threads:[~2015-07-01 17:47 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 [this message]
2015-07-01 19:31         ` Richard Wordingham
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

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

  git send-email \
    --in-reply-to='CAOj2CQRLHTrpUiNnkG=dzXi+Nk58mawo0_QEf5UamM=EBdf5gA@mail.gmail.com' \
    --to=john.b.mastro@gmail.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.
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.