From: Eli Zaretskii <eliz@gnu.org>
To: Al Petrofsky <al@petrofsky.org>
Cc: 64075@debbugs.gnu.org, gregory@heytings.org
Subject: bug#64075: 28.2; ispell broken on uncolored terminals
Date: Thu, 15 Jun 2023 10:48:56 +0300 [thread overview]
Message-ID: <83r0qdtbbr.fsf@gnu.org> (raw)
In-Reply-To: <CAPMQwz5EQ_bw-n9_97X6zM57OgJrm67CMMSbwGsfQWh51KaPAQ@mail.gmail.com> (message from Al Petrofsky on Thu, 15 Jun 2023 02:34:48 -0400)
> From: Al Petrofsky <al@petrofsky.org>
> Date: Thu, 15 Jun 2023 02:34:48 -0400
> Cc: gregory@heytings.org, 64075@debbugs.gnu.org
>
> What's anachronistic about that code (meaning the
> ispell-highlight-spelling-error-generic function) is that it uses a
> kludge that made it possible in pre-version-21 emacs to get some text
> displayed in inverse video on a tty even though emacs could not
> display faces on ttys. But since Emacs 21, on any tty that has a
> termcap "so" capability, you can get inverse-video simply by using an
> inverse-video face.
That this was written before Emacs 21 doesn't yet make it not useful
now.
> So I don't think ispell-highlight-spelling-error-generic currently
> provides any functionality that isn't more conveniently and
> maintainably provided by ispell-highlight-spelling-error-overlay, with
> the additional benefit that the user can, if he wants, customize
> ispell-highlight-face to something other than inverse-video.
It's a working code whose replacement (basically, a cleanup) will mean
extra work for us, and all that for quite rare situations. Based on
my long experience with Emacs, it also means some subtle bugs in some
even rarer use cases, which will take years to find and fix. No,
thanks.
> (Making the default isearch face (and therefore the default
> ispell-highlight-face) be blue-on-magenta on color terminals but
> inverse-video on monochrome terminals is already handled
> automatically.)
You've ignored what I wrote about that possibility: when faces are
customized by users, they are usually customized in simplistic ways,
and are thus unlikely to work for all the cases. IOW, once you allow
for face customizations, it is very hard to make sure this face will
still be distinct on a colorless terminal.
If you or someone wants to present a patch that will make more
terminals use ispell-highlight-spelling-error-overlay, and includes in
that patch a suitable change to the ispell-highlight-face, then I'll
gladly review it. Otherwise, I see this issue as closed by that
last-year bugfix.
next prev parent reply other threads:[~2023-06-15 7:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-14 23:13 bug#64075: 28.2; ispell broken on uncolored terminals Al Petrofsky
2023-06-14 23:25 ` Gregory Heytings
2023-06-14 23:48 ` Al Petrofsky
2023-06-15 5:36 ` Eli Zaretskii
2023-06-15 6:34 ` Al Petrofsky
2023-06-15 7:48 ` Eli Zaretskii [this message]
2023-06-15 23:19 ` Al Petrofsky
2023-06-16 6:27 ` Eli Zaretskii
2023-06-15 5:23 ` Eli Zaretskii
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=83r0qdtbbr.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=64075@debbugs.gnu.org \
--cc=al@petrofsky.org \
--cc=gregory@heytings.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.