From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas 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 02:52:19 -0700 Message-ID: References: <874kv4bfhw.fsf@mail.parknet.co.jp> <831rjr1fg9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23982"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39898@debbugs.gnu.org, hirofumi@mail.parknet.co.jp To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 28 11:53: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 1kBb4I-0006B3-QE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Aug 2020 11:53:10 +0200 Original-Received: from localhost ([::1]:48932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBb4H-0004Nq-Qx for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Aug 2020 05:53:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBb4A-0004M5-Mb for bug-gnu-emacs@gnu.org; Fri, 28 Aug 2020 05:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33593) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBb4A-0007kd-Ba for bug-gnu-emacs@gnu.org; Fri, 28 Aug 2020 05:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kBb4A-0006Dp-9v for bug-gnu-emacs@gnu.org; Fri, 28 Aug 2020 05:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Aug 2020 09:53:02 +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.159860834923877 (code B ref 39898); Fri, 28 Aug 2020 09:53:02 +0000 Original-Received: (at 39898) by debbugs.gnu.org; 28 Aug 2020 09:52:29 +0000 Original-Received: from localhost ([127.0.0.1]:45139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBb3c-0006D2-Re for submit@debbugs.gnu.org; Fri, 28 Aug 2020 05:52:29 -0400 Original-Received: from mail-yb1-f182.google.com ([209.85.219.182]:37298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBb3Z-0006Co-I2 for 39898@debbugs.gnu.org; Fri, 28 Aug 2020 05:52:27 -0400 Original-Received: by mail-yb1-f182.google.com with SMTP id e14so213867ybf.4 for <39898@debbugs.gnu.org>; Fri, 28 Aug 2020 02:52:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=nZ/FoPDNyAkW8ow57p6ZcpxTS/ZX5BxoY8Hcvz28OHQ=; b=poKb1h9skSYaXTAAyNpy0Ekltp27y3j5TPnozljoGKyd77LuZpwoXvJI5P/2M8NTP6 hSaFRsZMwTa+N1UWfF1Ob56mvGCRmlgjUPHVkH8qCCaKn8wvImqEuAjIfEjpY33+Xrac 1jWN8QAYNjjrT6gk8iWhT6aEVyDlfyn6xNwN2BOlmgdcKJKgWO0RO3wITFq6Ei29cqJQ 9t2s/8EiEfM3I9HRbSC7Zte2zVGJSQiJElyqBuXENqRpBmOmh9y5Whoy3C9BWJb5FAWa j6eNIC0LUeSkvQkjw8hQt+Pbz+4mnQfTU9dSHoJ3R9pjaRRr0zbLAzm/GNfc7kkk1Ry3 zr2Q== X-Gm-Message-State: AOAM532u/+hyvJ1OUZHmDbeY9g/hEWhSy/R1WjjZ39C/v3MMMg0Ua+Vw NC353VFeaW+2gfWjYQEfYPjJmgip1saliDWVU7s= X-Google-Smtp-Source: ABdhPJw9IALmmmIMAbJ+dGVydWPkimYmYynn28UwK70aWzIYa5QvGNDE5KTh4iZWbxmbrTUGDkpXUkZlPW/RpqrbFMY= X-Received: by 2002:a25:4ed7:: with SMTP id c206mr1341204ybb.129.1598608339953; Fri, 28 Aug 2020 02:52:19 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 28 Aug 2020 02:52:19 -0700 In-Reply-To: <831rjr1fg9.fsf@gnu.org> 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:186589 Archived-At: Eli Zaretskii 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'.