From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#54131: 29.0.50; Flyspell incorrectly reports first word in Python f-string Date: Thu, 24 Feb 2022 16:53:48 +0530 Message-ID: <87wnhkjynv.fsf@gmail.com> References: <877d9l5ok8.fsf@gnus.org> <83o82wsrru.fsf@gnu.org> <87fso84oh1.fsf@gnus.org> <837d9ksh0w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35050"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , p.stephani2@gmail.com, 54131@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 24 12:28:31 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 1nNCIQ-0008uo-BD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Feb 2022 12:28:30 +0100 Original-Received: from localhost ([::1]:46340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNCIO-0003PT-ML for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Feb 2022 06:28:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNCFC-0002YS-KH for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2022 06:25:11 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53854) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNCF4-0002ay-Tz for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2022 06:25:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNCF4-0006X0-JI for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2022 06:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Feb 2022 11:25: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.164570185525031 (code B ref 54131); Thu, 24 Feb 2022 11:25:02 +0000 Original-Received: (at 54131) by debbugs.gnu.org; 24 Feb 2022 11:24:15 +0000 Original-Received: from localhost ([127.0.0.1]:47751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNCEI-0006Ve-Rw for submit@debbugs.gnu.org; Thu, 24 Feb 2022 06:24:15 -0500 Original-Received: from mail-pj1-f66.google.com ([209.85.216.66]:53142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNCEH-0006VS-89 for 54131@debbugs.gnu.org; Thu, 24 Feb 2022 06:24:13 -0500 Original-Received: by mail-pj1-f66.google.com with SMTP id v4so1723211pjh.2 for <54131@debbugs.gnu.org>; Thu, 24 Feb 2022 03:24:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=wsH+xErei56Yc6fWPETQPb5OmLRCtcV81ZO3rgwSOGw=; b=Uogid4MqKQE2oXqQ4TmEVqEo+5I0GBlBHSbNrVFAxUDBier0rVL5Ao7ysDokSpsSJp KKCGVqbSFJ1XXHuP3l4HZoiBhEN+wh3IXuE6TKmQ50W0EITaKVBCBFj1FssE0LpCzSCG aXA0yMWkXsBKXHuR4ixWuD681it7XPAbe2k8xUmXVFAYZUEyceRx6sugkiTX6kJdsM66 ZqjRlPZYLfFlM1upmPYR6lfjrEE0iZx9Sda6c6Ysh14oviDGUoIxIplVQnR7G6fGG4BD aN/GRWaXYnjePoOu3KYQ/Umd1QsA8/+OgjMLyTMTkFzUweyBBwBgHoL99kJN0uf0/TZ2 z5Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=wsH+xErei56Yc6fWPETQPb5OmLRCtcV81ZO3rgwSOGw=; b=i1lAgF91+KKSh/7H8YwTdCXXbCXUeJ9dgNaF6Q9v4LUqFKVWWLmjwgh4cEUhKPch2q H6oacs04sTVJa5474xjd8xC6T+rba8Wt1cVqRX86ho+fk2aL5XwygCJ7vRRw+9fy3Gqh rJZToGQBXRKmFN08iGT2sRp3el5Omsj+No+jyrsaZzvAZKRbYn2lVlnsIKgKdlbp30no i23E0toDdIdNgt6O7fBjqSyox2750KUR7YCvtkbUtxIIlGchuDv+3eI2KHYHpmOpRtmq Ful0LFewtfDEUqWP5BdAIz/RWDSmcQobMqvSg5oCEFBfxflG3MaNneE9BFyYt9IZYeNj CeVw== X-Gm-Message-State: AOAM531WtW7IqyIpX0yHHAJy3iOwvhK8Sm7Cs49nDrpx5vTuZDEwNXeP rdF07DWFr6oWxl1vi5d+uDQ= X-Google-Smtp-Source: ABdhPJzqaQA1EHOrTeSwwOORn3zy/xOmlcj7ds5zyd2ATwcN31DVvE4FnBCPIVQK0cZiAqY72tnm0Q== X-Received: by 2002:a17:902:ed83:b0:14f:c969:7669 with SMTP id e3-20020a170902ed8300b0014fc9697669mr2373983plj.96.1645701847478; Thu, 24 Feb 2022 03:24:07 -0800 (PST) Original-Received: from localhost ([14.139.216.98]) by smtp.gmail.com with ESMTPSA id o7sm2727116pfw.114.2022.02.24.03.24.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 03:24:07 -0800 (PST) In-Reply-To: <837d9ksh0w.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 24 Feb 2022 12:19:59 +0200") 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:227580 Archived-At: [=E0=AE=B5=E0=AE=BF=E0=AE=AF=E0=AE=BE=E0=AE=B4=E0=AE=A9=E0=AF=8D, =E0=AE=AA= =E0=AE=BF=E0=AE=AA=E0=AF=8D=E0=AE=B0=E0=AE=B5=E0=AE=B0=E0=AE=BF 24 2022] El= i Zaretskii wrote: >> From: Lars Ingebrigtsen >> Cc: p.stephani2@gmail.com, 54131@debbugs.gnu.org >> Date: Thu, 24 Feb 2022 10:12:58 +0100 >>=20 >> Eli Zaretskii writes: >>=20 >> > 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). >>=20 >> 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. I misspell parts of a symbol quite often so rebinding M-$ to a command that NOOPs when the point is not over a comment/string would end up annoying, IMO. I am not sure how common this usecase is though.