From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "R. Diez" Newsgroups: gmane.emacs.help Subject: Re: Flyspell difficult to configure, documentation not honest Date: Thu, 12 Jul 2018 21:50:00 +0000 (UTC) Message-ID: <1186940967.5630978.1531432200575@mail.yahoo.com> References: <1186940967.5630978.1531432200575.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 1531432110 4038 195.159.176.226 (12 Jul 2018 21:48:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2018 21:48:30 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 12 23:48:26 2018 Return-path: Envelope-to: geh-help-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 1fdjRq-0000xO-Cb for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jul 2018 23:48:26 +0200 Original-Received: from localhost ([::1]:34205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdjTx-0001yC-E3 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jul 2018 17:50:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdjTW-0001xe-Gv for help-gnu-emacs@gnu.org; Thu, 12 Jul 2018 17:50:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdjTT-0005yJ-Ee for help-gnu-emacs@gnu.org; Thu, 12 Jul 2018 17:50:10 -0400 Original-Received: from sonic305-21.consmr.mail.ir2.yahoo.com ([77.238.177.83]:40737) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdjTT-0005wd-5H for help-gnu-emacs@gnu.org; Thu, 12 Jul 2018 17:50:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1531432205; bh=vmnixxWLf6PyLg/LNCFtbt3BORcFGrSlNZSiM2tL8+s=; h=Date:From:Reply-To:To:Cc:Subject:References:From:Subject; b=H5UF+tcZbpsx5ghV01jjaJy+Hzgic50tFkRyKiqxKEv0aH/Ep/IjMvZknQqGfne+ztSIYRuw7Xeozv2badWZYfxqMXsMDAm1ASOlrRUmh/BsuaqZTIN++E8143TTB6E1CE0cdnotJkgt6w7u79hc/jruFsl+cNG/ZBECtwZX5k6nEPExE9YBuijOsZf2vzSPI1l7tM24x0VYpxbHHsCHJUskvWI+9rfKed81ej2nyzw01KZiSPdU9B7t+8Xtj9S9jFG7YwZ1T+vDkgSzv5J0O9Iza0rQGqTPASDKRHeT8lbES//uCU4U/immwfPF2k0ka5TMbTA7e8c7vyE3bFgLMw== X-YMail-OSG: SUQkmU4VM1nkEmDX75XDJDuN4Is40Rcnhy95RCDHjCEv11ig1bHJQ8pKv_lJwrk KVEHCrXU00k.o9hTW_Z0s20gzSINcmTlEQzAwBeD2yPmu0ALh8DZ9Vk.qTcqg5lMpgzu2B.nQnKh BWB85A9jdoXAKmzVpwjxOYLeXui3ga2z8AfxrX4qLHtWrMXhFDtt.wDU4ZnYhNoTC.S7rGpWacxo NsDUp1dUgEObijTTGihGaJ.g6TCLUFQ.6PLLQ7I7txp2kRZA8HsTQjw0mMbLIz3IjHeoQo1ucERs 5FgZ_NhGKl9WkprrJ8os_RqmrJO6m_tk4XmOS_1HpBzGnp.ImIaeDZPg_Di10PO729YeT28cHweR epF0oQ6E2.XuCaiMre5vl3XbkbBUxgWntH9fj.AZxpyaCvQ.gYD9I.aWjsZ1QT_9_QP6vbMI0w5p BDFLPuIU5XI8BriVs6dpejAcOX8jEsMN.Ml0l.VUCxk_gLDkV_FhWOI1hLmjaNGAaM_FkbJp2KHT gemjjvg4dg7W4NKvUjyaZQb5qq0q6gZuZA221yjWZnJ7e19_58bq1w6aO_yP04FDyaP_BZGITIBd JuUWEpsBkNodkhluz9gfWugg4XzxjSCnoXhgndFYsRq1ycX4HrnQpuIIo9v1MfR93c5EeMGYeiZB 0CJRAo2yIwnyzFYdPZ0C9D8I.qe7RrTrgnogPEmHUWeM_UH.NoRr51bdmC7GMrEKBGw9o3_GVXjH xS15a_vDVFb9mfenGLklpW_UAwQ_MPC26cWDv51RxNxsLJ3c_He43KtLixeUfvxVcsJTnTKyuK8z _JVmHu9LoNnI0J4a53syla1NnPwrpSa0l4ygYjVo3X Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ir2.yahoo.com with HTTP; Thu, 12 Jul 2018 21:50:05 +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-Received-From: 77.238.177.83 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117415 Archived-At: First of all, thanks for your answer and the fixes to the source code and docs. > It is outdated and partially incorrect (e.g., > right mouse click does work on Flyspell). It is not right-click, like everybody else would expect, but middle-click. But you are right, it does work, and that's actually good enough for me. >> [...] >> I tried flyspell-region, and that is one of the biggest surprises: >> the spell check is performed just once, and is not updated >> as I type inside that region. > Like everything else in Flyspell, misspelled words are re-checked > when you move across them or modify them. That's a feature. > If you don't like that, I suggest to use ispell-region instead. On the contrary, that is the behaviour I do want. Am I doing something wrong? 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. >> Well, I can manually recheck, however inconvenient. But the biggest >> surprise is trying to remove the spelling marks at the end. > If the word is still a misspelling, why should the mark be removed? 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. > They are strings, aren't they? How should Flyspell know that some > string is a file name? I would not have expected the filenames inside #include statements to be considered literal strings to be spell-checked. That does not make any sense. Anyway, like I said, I do not want to check literal strings. Just comments. Emacs does know the difference. After all, the link I posted described how to turn off spell checking based on fonts/faces. And Emacs does show different colours depending on the C syntax, so it must know what is a literal string, what is an include filename, etc. >> To top it all, there is one little surprise in store: disabling >> flyspell-persistent-highlight renders flyspell-region useless. > Disabling flyspell-persistent-highlight turns off highlight > once point moves off the misspelled word. I've now added > that to the doc string. That is an improvement, but it is not enough. 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. Regards, rdiez