From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54131: 29.0.50; Flyspell incorrectly reports first word in Python f-string Date: Thu, 24 Feb 2022 12:19:59 +0200 Message-ID: <837d9ksh0w.fsf@gnu.org> References: <877d9l5ok8.fsf@gnus.org> <83o82wsrru.fsf@gnu.org> <87fso84oh1.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10151"; mail-complaints-to="usenet@ciao.gmane.io" Cc: p.stephani2@gmail.com, 54131@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 24 11:20:19 2022 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 1nNBER-0002SE-Bi for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Feb 2022 11:20:19 +0100 Original-Received: from localhost ([::1]:57564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNBEP-0003ab-F8 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Feb 2022 05:20:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNBEA-0003XA-S9 for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2022 05:20:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNBEA-0000Yo-HD for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2022 05:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNBEA-0004uW-Cq for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2022 05:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Feb 2022 10:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54131 X-GNU-PR-Package: emacs Original-Received: via spool by 54131-submit@debbugs.gnu.org id=B54131.164569799418851 (code B ref 54131); Thu, 24 Feb 2022 10:20:02 +0000 Original-Received: (at 54131) by debbugs.gnu.org; 24 Feb 2022 10:19:54 +0000 Original-Received: from localhost ([127.0.0.1]:47649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNBE2-0004tz-AJ for submit@debbugs.gnu.org; Thu, 24 Feb 2022 05:19:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNBE0-0004tl-PD for 54131@debbugs.gnu.org; Thu, 24 Feb 2022 05:19:53 -0500 Original-Received: from [2001:470:142:3::e] (port=38020 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNBDv-0000X2-Ef; Thu, 24 Feb 2022 05:19:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xt63jWv7mPaqyCHtsn1khTaE0oPO3p9zNkk8aq3293o=; b=My5I4VEt5Lwi T+0GglMzSxyZJpMEPV3q+7rPwfsRRVyDME+jL5cESWciMFCdTpbPmOJAjd18Z3ogE5m0rbYW/vIMw D/bpJfvZ84iic03rMdLNt9xq4EhVdPnk/5phg8mPtrzjV3Evzagvm4dfF7PQVdxE548UMXNL7TKlJ eygk05uvPiGm5QbsQ8Nu+9EdldGhxXzXVs3BwiV/9nm1GIQMrJr4MHRHIOQbjYtcevg4eTiEavsiO 54JR4eUKD3/UIHwLc7+yl3dol5Sv04CHHszE+ZjGtzy9bRETh3iorIhqSjkWLmoh3LL2jUCycAkiR cLEVGKaw2IeeDETsN4G6+A==; Original-Received: from [87.69.77.57] (port=3723 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNBDu-0008KW-RD; Thu, 24 Feb 2022 05:19:47 -0500 In-Reply-To: <87fso84oh1.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 24 Feb 2022 10:12:58 +0100) 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:227578 Archived-At: > From: Lars Ingebrigtsen > Cc: p.stephani2@gmail.com, 54131@debbugs.gnu.org > Date: Thu, 24 Feb 2022 10:12:58 +0100 > > Eli Zaretskii writes: > > > For program sources, flyspell-prog-mode relies on font-lock faces to > > tell it where strings and comments are, so perhaps this part doesn't > > work for some reason (and perhaps the root cause is in font-lock of > > python-mode, not in flyspell.el per se). > > I didn't know about flyspell-prog-mode, but it does indeed do the right > thing here. (I've now mentioned the mode in the flyspell-mode doc > string.) That's strange, because the OP explicitly invoked flyspell-prog-mode, so how come it didn't work for Philipp, but did for you? > But `M-$' does not do the right thing -- if you `M-$' on f'hello, it > tries to correct the whole thing. Maybe we should have a key binding for ispell-comment-or-string-at-point, and/or maybe ispell-comments-and-strings and flyspell-prog-mode should rebind M-$ to ispell-comment-or-string-at-point.