From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: OGAWA Hirofumi Newsgroups: gmane.emacs.bugs Subject: bug#39898: 28.0.50; The off-by-one bug in `flyspell-check-previous-highlighted-word' Date: Fri, 28 Aug 2020 16:02:59 +0900 Message-ID: <87r1rrqml8.fsf@mail.parknet.co.jp> References: <874kv4bfhw.fsf@mail.parknet.co.jp> <831rjr1fg9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="688"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Stefan Kangas , 39898@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 28 09:04:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kBYQj-000AaE-N2 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Aug 2020 09:04:09 +0200 Original-Received: from localhost ([::1]:40046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBYQi-0006Nh-Ou for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Aug 2020 03:04:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBYQc-0006NI-CU for bug-gnu-emacs@gnu.org; Fri, 28 Aug 2020 03:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33409) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBYQc-0004PI-2c for bug-gnu-emacs@gnu.org; Fri, 28 Aug 2020 03:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kBYQb-00027V-Uy for bug-gnu-emacs@gnu.org; Fri, 28 Aug 2020 03:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: OGAWA Hirofumi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Aug 2020 07:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39898 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 39898-submit@debbugs.gnu.org id=B39898.15985981878078 (code B ref 39898); Fri, 28 Aug 2020 07:04:01 +0000 Original-Received: (at 39898) by debbugs.gnu.org; 28 Aug 2020 07:03:07 +0000 Original-Received: from localhost ([127.0.0.1]:44955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBYPi-00026E-V2 for submit@debbugs.gnu.org; Fri, 28 Aug 2020 03:03:07 -0400 Original-Received: from mail.parknet.co.jp ([210.171.160.6]:32842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBYPh-000265-D9 for 39898@debbugs.gnu.org; Fri, 28 Aug 2020 03:03:06 -0400 Original-Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id 6AEC21B44DF; Fri, 28 Aug 2020 16:03:03 +0900 (JST) Original-Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.15.2/8.15.2/Debian-20) with ESMTPS id 07S732SF292020 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 28 Aug 2020 16:03:03 +0900 Original-Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.15.2/8.15.2/Debian-20) with ESMTPS id 07S731i42655019 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 28 Aug 2020 16:03:01 +0900 Original-Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.15.2/8.15.2/Submit) id 07S72xrr2655017; Fri, 28 Aug 2020 16:02:59 +0900 In-Reply-To: <831rjr1fg9.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 28 Aug 2020 08:56:22 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186584 Archived-At: Eli Zaretskii writes: >> From: Stefan Kangas >> Date: Thu, 27 Aug 2020 12:37:45 -0700 >> Cc: 39898@debbugs.gnu.org >> >> Indeed, this just looks like an OBOE to me. > > Does it? The doc string of flyspell-check-previous-highlighted-word > says: > > Correct the closest previous word that is highlighted as misspelled. > This function scans for a word which starts before point that has been > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > highlighted by Flyspell as misspelled. > > 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..."). Thanks. -- OGAWA Hirofumi