From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "R. Diez" Newsgroups: gmane.emacs.bugs Subject: bug#32142: WG: 26.1; Problems with flyspell-region Date: Fri, 13 Jul 2018 15:11:13 +0000 (UTC) Message-ID: <745366070.6138533.1531494673065@mail.yahoo.com> References: <745366070.6138533.1531494673065.ref@mail.yahoo.com> Reply-To: "R. Diez" NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1531494607 14096 195.159.176.226 (13 Jul 2018 15:10:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Jul 2018 15:10:07 +0000 (UTC) To: 32142@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 13 17:10:03 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdzhq-0003Z8-2h for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jul 2018 17:10:02 +0200 Original-Received: from localhost ([::1]:37800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdzjw-0001pe-Q0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jul 2018 11:12:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdzjp-0001pK-F1 for bug-gnu-emacs@gnu.org; Fri, 13 Jul 2018 11:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdzjm-00054w-4v for bug-gnu-emacs@gnu.org; Fri, 13 Jul 2018 11:12:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51204) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdzjl-00054q-W9 for bug-gnu-emacs@gnu.org; Fri, 13 Jul 2018 11:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fdzjl-0006je-PU for bug-gnu-emacs@gnu.org; Fri, 13 Jul 2018 11:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "R. Diez" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Jul 2018 15:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32142 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.153149469325848 (code B ref -1); Fri, 13 Jul 2018 15:12:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jul 2018 15:11:33 +0000 Original-Received: from localhost ([127.0.0.1]:59101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdzjJ-0006ip-2V for submit@debbugs.gnu.org; Fri, 13 Jul 2018 11:11:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdzjH-0006ib-KR for submit@debbugs.gnu.org; Fri, 13 Jul 2018 11:11:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdzjB-0004az-4v for submit@debbugs.gnu.org; Fri, 13 Jul 2018 11:11:26 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36148) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fdzjB-0004av-1G for submit@debbugs.gnu.org; Fri, 13 Jul 2018 11:11:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdzj9-0001WJ-Kw for bug-gnu-emacs@gnu.org; Fri, 13 Jul 2018 11:11:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdzj6-0004WM-BZ for bug-gnu-emacs@gnu.org; Fri, 13 Jul 2018 11:11:23 -0400 Original-Received: from sonic310-13.consmr.mail.ir2.yahoo.com ([77.238.177.34]:33529) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdzj6-0004UR-0l for bug-gnu-emacs@gnu.org; Fri, 13 Jul 2018 11:11:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1531494678; bh=yONUYqzWbc6LYmX5B2uQ3HOcGGKYJyQZwKI6qBlWYDk=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=rDaRL3Z79x0ojUvXBjtJKmMtQoQDz2aWo0KVXVXz808xrU11P1VrJIeEiByPj5X8WG/BCxnTsqSL7gsTIEiy5GDnDYRZb4HPd4OZyHyEgFkIzVvzmkluWCkyT4sAsLepFx3jM7bl53easQAhJNfEAtFk5MPNZ9hpNnZVFyzDXmjcaLhEVrvZIspSdDtgu5GfGq34oYoHOiQ50C6taMs+ii5kENF4x4cjT12AAK/f8MXuw7tyJIRuz9dl6RYNIGucFQfvAjK7jO7S4BxYH+mxF+7wGcegjwVIWpPp9cHtiFS0s7BkA4PnPHrJRWQDXHNpHpZmo3VQLZvsGuX7VYITZg== X-YMail-OSG: ZSUKIesVM1lE66DNlsvJCMerwb7xl.4b_7xsGKWoi1z_tylPslcKI8oOVtT5Q.4 I3m.KZwCO__TRlF3vMpSqsMAzx3ufVlTz3E_pa.ZZHwJhHvm7HbwKpwIbejx_7IJ5fScx0Y3AfQu gLRING9t84y5ycyu_Q6rPEVaGLt_1TffVi7YH5H6xIWa90OsLxRCWizzOmuMSbBhbmP5Y_UF8kL9 N1.SU.3WO2U5DkoVEXmuUQ5pD5XWGr8tKCBXMkBHqQpyCwuSW1Ce2aV4TC8MfDfrS7U3aj.wU6kP tTr4YrcwbQtXttxykPQKlg_nzJ3F5yLvq.RRkgQRW4jTfFAAUIX.v2sIsGJkbl.L6M_dh38W.Cik sk._OyA5W.XeTmwQd47Hi2bAkMKefJQpPusbYKbKlZEpbI3s1XDQD6O4iVBGMpYjSMBoMItZ7WsL OPsjsnLufXiKUzHzJkbR4br9m.3vlD5FRHjt7vueCQIoNh7UvI7vsafGbJbuzc2AWSO4tSQ87x_I 1lDVCfg0Ubp5YtEl.zMq75YtYemRiGz4H9aGTDM54GcwcVcUYLiPRf7Qnd0.3lQ.QUmXUevgoF9O 9Law5xiKvoLVR1XoZhwPeXqUPTn0VHJGabYT8tVz0mCm5vUkLDA5VYgFne7t9OArq7LWToY0BIAA N8ep0qtYhnhSjxZNzeTU4O.EdhEkaJuVY9VswcWNIcVRMbGSd2yozrh3t1IeHkpa65FWsDbnAcR. rNyEUAPK04KV1eMVbwVTltrWbsDj1YlDWkaBaNyG6Q8ipW.xFeIFVTshDrMsWC6fz9NtsRvxp_L6 t2nCDBRVOf.k9WTEzL8QtIXmJPVqyhyK90HrWlfqW0 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ir2.yahoo.com with HTTP; Fri, 13 Jul 2018 15:11:18 +0000 X-Mailer: WebService/1.1.12062 YahooMailNeo Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148486 Archived-At: I mentioned some problems with flyspell-region on the help-gnu-emacs mailing list here: https://lists.gnu.org/archive/html/help-gnu-emacs/2018-07/msg00100.html Issues are: Issue 1) The spell check is performed just once, and is not updated as I type inside that region. This is what I wrote on the mailing list: "If I mark a region (click on the beginning, hold shift, move to the end), and then run flyspell-region, the region gets spell-checked, and all the dictionary misses are underlined in red, as expected. But then, if I fix the words, the spelling marking (the red underlining) is not removed. It looks like Flyspell is not 'live' anymore within that region. The "overlay" is left behind as static font faces." I do not want to activate Flyspell for the whole buffer, because that would lead to too much red underlining. If I just wanted a single-shot, I would use ispell-region instead. If this cannot be fixed, the current behaviour should be documented. Issue 2) There is no easy way to remove the red underlining (overlays) left behind by flyspell-region. This is what I wrote on the mailing list: "Often I get too many dictionary misses (too much red underlining). Or I just do not want to be distracted anymore. That is the reason why I want to be able to turn spell-checking on and off on demand on a particular region. And, when I want it off, I want to remove the "overlays" from that region. Why should they remain? At the moment, there is no direct way to do that." I also wrote: "After some searching, I found out about flyspell-delete-all-overlays and flyspell-delete-region-overlays, but alas, they are not marked as 'interactive'. I wonder how Flyspell thinks users should remove those marks (how to end the flyspell-region command)." Issue 3) Disabling flyspell-persistent-highlight renders flyspell-region useless. Contrary to some of the answers in the mailing list, that combination does not work at all. This is what I am seeing: "What I mean is that, if you turn flyspell-persistent-highlight off, then flyspell-region does nothing other than consume CPU cycles. The red underlining for dictionary misses does not show up at all." Again, I do not want to turn on Flyspell for the whole buffer. If flyspell-region is supposed to work only when the Flyspell Mode is active, it should check, and error if it is not active. But that kind of defeats the purpose of having a flyspell-region.