[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#39898: 28.0.50; The off-by-one bug in `flyspell-check-previous-highl
From: |
Eli Zaretskii |
Subject: |
bug#39898: 28.0.50; The off-by-one bug in `flyspell-check-previous-highlighted-word' |
Date: |
Fri, 28 Aug 2020 13:49:11 +0300 |
> From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
> Cc: Stefan Kangas <stefan@marxist.se>, 39898@debbugs.gnu.org
> Date: Fri, 28 Aug 2020 16:02:59 +0900
>
> > 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?
>
> (with-temp-buffer
> (select-window (display-buffer (current-buffer)))
> (insert "appl")
> (insert " ")
> (flyspell-buffer)
> (flyspell-check-previous-highlighted-word))
>
> Then, this point is before, and should work? This also calls
> (error "No word...").
Fair enough, but with the change you proposed, what happens if the
command is invoked with point at BOB?