From: Eli Zaretskii <eliz@gnu.org>
To: Agustin Martin <agustin.martin@hispalinux.es>
Cc: emacs-devel@gnu.org
Subject: Re: flyspell.el and non-word characters in CASECHARS
Date: Tue, 17 Apr 2012 20:51:24 +0300 [thread overview]
Message-ID: <83y5puqmar.fsf@gnu.org> (raw)
In-Reply-To: <20120417172635.GA26574@agmartin.aq.upm.es>
> Date: Tue, 17 Apr 2012 19:26:36 +0200
> From: Agustin Martin <agustin.martin@hispalinux.es>
>
> The only reason I can think is that at that time there is no way to know if
> that wordchar is going to be in the middle of a word or not. If it appears
> at a word boundary, is not what ispell.el seems to consider a wordchar.
But in that case, the following non-word character (blank or
punctuation) will trigger the spell-check of the word. So we lose
nothing, right?
> Did your test work only with CASECHARS instead of CASECHARS+OTHERCHARS?
I actually _added_ to the word-syntax test the test against CASECHARS,
like this:
((or (and (= flyspell-pre-point (- (point) 1))
(or (eq (char-syntax (char-after flyspell-pre-point)) ?w)
(string-match-p (flyspell-get-casechars)
(buffer-substring-no-properties
flyspell-pre-point (1+ flyspell-pre-point)))))
(= flyspell-pre-point (point))
(= flyspell-pre-point (+ (point) 1)))
nil)
next prev parent reply other threads:[~2012-04-17 17:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-16 19:55 flyspell.el and non-word characters in CASECHARS Eli Zaretskii
2012-04-17 17:26 ` Agustin Martin
2012-04-17 17:51 ` Eli Zaretskii [this message]
2012-04-18 16:26 ` Agustin Martin
2012-04-18 18:45 ` Eli Zaretskii
2012-04-20 15:26 ` Agustin Martin
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=83y5puqmar.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=agustin.martin@hispalinux.es \
--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.