From unknown Tue Aug 19 10:00:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#21157 <21157@debbugs.gnu.org> To: bug#21157 <21157@debbugs.gnu.org> Subject: Status: 24.5; Flyspell does not highlight repeated words Reply-To: bug#21157 <21157@debbugs.gnu.org> Date: Tue, 19 Aug 2025 17:00:36 +0000 retitle 21157 24.5; Flyspell does not highlight repeated words reassign 21157 emacs submitter 21157 Florent Marchand de Kerchove severity 21157 normal tag 21157 confirmed thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 29 12:27:24 2015 Received: (at submit) by debbugs.gnu.org; 29 Jul 2015 16:27:24 +0000 Received: from localhost ([127.0.0.1]:33845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKUCQ-00031K-RI for submit@debbugs.gnu.org; Wed, 29 Jul 2015 12:27:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36018) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKTxU-0002f3-Cl for submit@debbugs.gnu.org; Wed, 29 Jul 2015 12:11:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKTxS-0007DI-VM for submit@debbugs.gnu.org; Wed, 29 Jul 2015 12:11:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HK_RANDOM_ENVFROM,HK_RANDOM_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:57790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKTxS-0007DC-SP for submit@debbugs.gnu.org; Wed, 29 Jul 2015 12:11:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKTxR-0004e6-If for bug-gnu-emacs@gnu.org; Wed, 29 Jul 2015 12:11:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKTxO-0007BM-DH for bug-gnu-emacs@gnu.org; Wed, 29 Jul 2015 12:11:53 -0400 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:34696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKTxO-0007BC-6G for bug-gnu-emacs@gnu.org; Wed, 29 Jul 2015 12:11:50 -0400 Received: by wibud3 with SMTP id ud3so227283778wib.1 for ; Wed, 29 Jul 2015 09:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=oOTRJBm3qFRbPzrGRRE6IyO21aWIArmVGEWtDMTdLLQ=; b=DQQ7HBpR9SC0ao5VyQZN+3buyKY70HaPMOwcVL8a0l/EtapOVwZ4/PeXlOTJODul4C 0UwwR9JMtzsahikMiBx3zJKiTzDH4XlIX47edSng2X4dWnE6d57bxHGCO/L3mJ+0MG6c 7aRG8ua7eeq7P27xOV5e5dXP2QYPIxnHs+gHk0UspGGsHCbLo+DMY+1HBGZj4XH3OGWl 8ioqWT63ZQbqTLptfawEiTX5pG3BdIZShGwdiymiA23bqeEL36gYh1kV4TP+zM9A2vdw DiwIEUhwBBFmwy024+YEcXart2YbsFAMF4qagpXM43DhA01iebJq7XDHK/6G+eGnOnng KWXw== X-Received: by 10.180.83.135 with SMTP id q7mr18751140wiy.17.1438186308636; Wed, 29 Jul 2015 09:11:48 -0700 (PDT) Received: from [172.28.3.46] (nat2.emn.fr. [193.54.76.162]) by smtp.gmail.com with ESMTPSA id r8sm25099696wiz.5.2015.07.29.09.11.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 09:11:47 -0700 (PDT) Message-ID: <55B8FB3B.7060708@gmail.com> Date: Wed, 29 Jul 2015 18:11:39 +0200 From: Florent Marchand de Kerchove User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.5; Flyspell does not highlight repeated words Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 29 Jul 2015 12:27:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Start `emacs -Q', and turn on flyspell-mode with `M-x flyspell-mode RET'. Type `the the '. The second `the' should be automatically highlighted by Flyspell as a repeated word (red squiggles under the word). Under 24.5.1, there is no highlighting. In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2015-04-20 on portinfo73 Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.2 LTS Important settings: value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_NUMERIC: fr_FR.UTF-8 value of $LC_TIME: fr_FR.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: flyspell-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Checking 24 files in /usr/local/share/emacs/24.5/lisp/cedet... Checking 57 files in /usr/local/share/emacs/24.5/lisp/calendar... Checking 87 files in /usr/local/share/emacs/24.5/lisp/calc... Checking 111 files in /usr/local/share/emacs/24.5/lisp/obsolete... Checking for load-path shadows...done Auto-saving... End of buffer Beginning of buffer [12 times] Quit Starting new Ispell process /usr/bin/aspell with default dictionary... Load-path shadows: None found. Features: (flyspell ispell pp shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 78612 7826) (symbols 48 18168 0) (miscs 40 47 174) (strings 32 11016 5290) (string-bytes 1 305291) (vectors 16 10095) (vector-slots 8 393430 12633) (floats 8 70 291) (intervals 56 223 18) (buffers 960 13) (heap 1024 17151 1070)) -- fmdkdd From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 29 12:52:01 2015 Received: (at control) by debbugs.gnu.org; 29 Jul 2015 16:52:01 +0000 Received: from localhost ([127.0.0.1]:33855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKUaG-0003c9-NB for submit@debbugs.gnu.org; Wed, 29 Jul 2015 12:52:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46521) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKUaF-0003c2-Gy for control@debbugs.gnu.org; Wed, 29 Jul 2015 12:51:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKUZf-0007Io-3v for control@debbugs.gnu.org; Wed, 29 Jul 2015 12:51:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKUZf-0007Ii-1z for control@debbugs.gnu.org; Wed, 29 Jul 2015 12:51:23 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZKUZe-00041Z-Qz for control@debbugs.gnu.org; Wed, 29 Jul 2015 12:51:22 -0400 Subject: control message for bug 19759 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 29 Jul 2015 12:51:22 -0400 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) block 19759 by 21157 From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 29 13:54:08 2015 Received: (at 21157-done) by debbugs.gnu.org; 29 Jul 2015 17:54:08 +0000 Received: from localhost ([127.0.0.1]:33868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKVYO-0006vR-07 for submit@debbugs.gnu.org; Wed, 29 Jul 2015 13:54:08 -0400 Received: from mtaout28.012.net.il ([80.179.55.184]:46324) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKVYL-0006vG-NP for 21157-done@debbugs.gnu.org; Wed, 29 Jul 2015 13:54:06 -0400 Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NS900P00FQT2I00@mtaout28.012.net.il> for 21157-done@debbugs.gnu.org; Wed, 29 Jul 2015 20:54:08 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NS900LXDGE87H60@mtaout28.012.net.il>; Wed, 29 Jul 2015 20:54:08 +0300 (IDT) Date: Wed, 29 Jul 2015 20:53:57 +0300 From: Eli Zaretskii Subject: Re: bug#21157: 24.5; Flyspell does not highlight repeated words In-reply-to: <55B8FB3B.7060708@gmail.com> X-012-Sender: halo1@inter.net.il To: Florent Marchand de Kerchove Message-id: <83zj2ex32i.fsf@gnu.org> References: <55B8FB3B.7060708@gmail.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21157-done Cc: 21157-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Wed, 29 Jul 2015 18:11:39 +0200 > From: Florent Marchand de Kerchove > > Start `emacs -Q', and turn on flyspell-mode with `M-x flyspell-mode > RET'. Type `the the '. > > The second `the' should be automatically highlighted by Flyspell as a > repeated word (red squiggles under the word). Under 24.5.1, there is no > highlighting. Thanks, fixed with the patch below. commit 33b779a11fb6785944383aeeae44f77cb580ee37 Author: Eli Zaretskii Date: Wed Jul 29 20:52:23 2015 +0300 Resurrect highlighting of repeated words by Flyspell Mode * lisp/textmodes/flyspell.el (flyspell-word): Leave some non-word characters between point and the doublon candidate, so that flyspell-word-search-backward finds it. (Bug#21157) diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 2329f29..e074918 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -1119,7 +1119,8 @@ (defun flyspell-word (&optional following known-misspelling) (let* ((bound (- start (- end start) - (- (skip-chars-backward " \t\n\f")))) + (- (save-excursion + (skip-chars-backward " \t\n\f"))))) (p (when (>= bound (point-min)) (flyspell-word-search-backward word bound t)))) (and p (/= p start))))) From unknown Tue Aug 19 10:00:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 27 Aug 2015 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator