From: Stefan Kangas <stefan@marxist.se>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 39898@debbugs.gnu.org, hirofumi@mail.parknet.co.jp
Subject: bug#39898: 28.0.50; The off-by-one bug in `flyspell-check-previous-highlighted-word'
Date: Fri, 28 Aug 2020 02:52:19 -0700 [thread overview]
Message-ID: <CADwFkmmcS3Ne3w-oeV5FjA4v9A5sTFKfvyLikTC4K2OmZg9CSg@mail.gmail.com> (raw)
In-Reply-To: <831rjr1fg9.fsf@gnu.org>
Eli Zaretskii <eliz@gnu.org> writes:
> The test case, AFAIU, creates a situation where the misspelled word
> starts _after_ point (remember that point is a place between 2
> characters, and its value is the character following point). So I
> don't see a bug here. Am I missing something?
No, the misspelled word starts before point. Note that `insert' moves
point to after the inserted text.
(with-temp-buffer
(select-window (display-buffer (current-buffer)))
(insert "appl")
(message "%s" (point)) ; 5
(flyspell-buffer)
(flyspell-check-previous-highlighted-word))
The problem is there even if you type a misspelled word manually at
(point-min) and run `flyspell-check-previous-highlighted-word'.
prev parent reply other threads:[~2020-08-28 9:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-04 10:07 bug#39898: 28.0.50; The off-by-one bug in `flyspell-check-previous-highlighted-word' OGAWA Hirofumi
2020-08-27 19:37 ` Stefan Kangas
2020-08-28 5:56 ` Eli Zaretskii
2020-08-28 7:02 ` OGAWA Hirofumi
2020-08-28 10:49 ` Eli Zaretskii
2020-08-28 11:27 ` Stefan Kangas
2020-08-28 11:30 ` Eli Zaretskii
2020-09-02 15:40 ` Stefan Kangas
2020-08-28 9:52 ` Stefan Kangas [this message]
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=CADwFkmmcS3Ne3w-oeV5FjA4v9A5sTFKfvyLikTC4K2OmZg9CSg@mail.gmail.com \
--to=stefan@marxist.se \
--cc=39898@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=hirofumi@mail.parknet.co.jp \
/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.