all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "R. Diez" <rdiezmail-emacs@yahoo.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Flyspell difficult to configure, documentation not honest
Date: Thu, 12 Jul 2018 21:50:00 +0000 (UTC)	[thread overview]
Message-ID: <1186940967.5630978.1531432200575@mail.yahoo.com> (raw)
In-Reply-To: 1186940967.5630978.1531432200575.ref@mail.yahoo.com


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



       reply	other threads:[~2018-07-12 21:50 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1186940967.5630978.1531432200575.ref@mail.yahoo.com>
2018-07-12 21:50 ` R. Diez [this message]
2018-07-13  6:35   ` Flyspell difficult to configure, documentation not honest Eli Zaretskii
     [not found] <974173872.5393015.1531407541695.ref@mail.yahoo.com>
2018-07-12 14:59 ` R. Diez
2018-07-12 16:26   ` Eli Zaretskii
     [not found] ` <mailman.3464.1531407559.1292.help-gnu-emacs@gnu.org>
2018-07-12 17:30   ` Emanuel Berg
2018-07-12 21:01     ` Brett Gilio
2018-07-13  7:15       ` Eli Zaretskii
2018-07-13 11:31       ` Gregor Zattler
2018-07-13 12:50         ` Devin Prater
2018-07-13 13:35         ` Teemu Likonen
     [not found]         ` <mailman.3518.1531488931.1292.help-gnu-emacs@gnu.org>
2018-07-13 14:42           ` Emanuel Berg
2018-07-13  7:41     ` Eric S Fraga
2018-07-13 17:08       ` Bob Newell
2018-07-14  8:58         ` Eric S Fraga
2018-07-14  9:15           ` tomas
2018-07-14 17:47           ` Bob Newell
2018-07-14 18:59             ` Devin Prater
2018-07-15  1:45           ` Brett Gilio
2018-07-15  2:42             ` Eli Zaretskii
     [not found]     ` <mailman.3502.1531467702.1292.help-gnu-emacs@gnu.org>
2018-07-13 10:22       ` Emanuel Berg
2018-07-13 17:04         ` Eric S Fraga
2018-07-13 19:02           ` Brett Gilio
2018-07-14  9:01             ` Eric S Fraga
     [not found]         ` <mailman.3536.1531501486.1292.help-gnu-emacs@gnu.org>
2018-07-13 18:41           ` Emanuel Berg
2018-07-13 19:06             ` Brett Gilio
2018-07-14  9:03               ` Eric S Fraga
2018-07-14  9:02             ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1186940967.5630978.1531432200575@mail.yahoo.com \
    --to=rdiezmail-emacs@yahoo.de \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.