* bug#9790: Cleaning up nobreak-char-display
@ 2011-10-19 0:22 Chong Yidong
2020-12-07 17:38 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Chong Yidong @ 2011-10-19 0:22 UTC (permalink / raw)
To: 9790
See emacs-devel discussion at
http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg00747.html
After Emacs 24.1, we should clean up the nobreak-char-display mechanism.
The highlighted chars should be in a variable, not hardcoded. The name
`nobreak-char-display' should probably be changed. Also, we should
figure out how to deal with the different Unicode space characters.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#9790: Cleaning up nobreak-char-display
2011-10-19 0:22 bug#9790: Cleaning up nobreak-char-display Chong Yidong
@ 2020-12-07 17:38 ` Lars Ingebrigtsen
2020-12-08 8:55 ` Juri Linkov
0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-07 17:38 UTC (permalink / raw)
To: Chong Yidong; +Cc: 9790
Chong Yidong <cyd@gnu.org> writes:
> After Emacs 24.1, we should clean up the nobreak-char-display mechanism.
> The highlighted chars should be in a variable, not hardcoded. The name
> `nobreak-char-display' should probably be changed. Also, we should
> figure out how to deal with the different Unicode space characters.
The latter was fixed earlier this year, I think?
As for having the former in a variable -- is that warranted? It would
mean slowing redisplay down a bit, I guess? I don't know whether that's
worth it.
Any opinions?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#9790: Cleaning up nobreak-char-display
2020-12-07 17:38 ` Lars Ingebrigtsen
@ 2020-12-08 8:55 ` Juri Linkov
2020-12-08 14:17 ` Lars Ingebrigtsen
2020-12-08 16:23 ` Drew Adams
0 siblings, 2 replies; 5+ messages in thread
From: Juri Linkov @ 2020-12-08 8:55 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 9790, Chong Yidong
>> After Emacs 24.1, we should clean up the nobreak-char-display mechanism.
>> The highlighted chars should be in a variable, not hardcoded. The name
>> `nobreak-char-display' should probably be changed. Also, we should
>> figure out how to deal with the different Unicode space characters.
>
> The latter was fixed earlier this year, I think?
>
> As for having the former in a variable -- is that warranted? It would
> mean slowing redisplay down a bit, I guess? I don't know whether that's
> worth it.
>
> Any opinions?
To address specific needs for highlighting Unicode space characters,
in bug#44236 I resorted to the GNU ELPA package 'markchars' that has
the variable 'markchars-nobreak-space-pattern' with a list of
Unicode space characters.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#9790: Cleaning up nobreak-char-display
2020-12-08 8:55 ` Juri Linkov
@ 2020-12-08 14:17 ` Lars Ingebrigtsen
2020-12-08 16:23 ` Drew Adams
1 sibling, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-08 14:17 UTC (permalink / raw)
To: Juri Linkov; +Cc: 9790, Chong Yidong
Juri Linkov <juri@linkov.net> writes:
>>> After Emacs 24.1, we should clean up the nobreak-char-display mechanism.
>>> The highlighted chars should be in a variable, not hardcoded. The name
>>> `nobreak-char-display' should probably be changed. Also, we should
>>> figure out how to deal with the different Unicode space characters.
>>
>> The latter was fixed earlier this year, I think?
>>
>> As for having the former in a variable -- is that warranted? It would
>> mean slowing redisplay down a bit, I guess? I don't know whether that's
>> worth it.
>>
>> Any opinions?
>
> To address specific needs for highlighting Unicode space characters,
> in bug#44236 I resorted to the GNU ELPA package 'markchars' that has
> the variable 'markchars-nobreak-space-pattern' with a list of
> Unicode space characters.
So if there's a package that does provide this functionality, then we
don't really need to have it in-core, either (since it doesn't seem like
this is a feature tons of people crave), and I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#9790: Cleaning up nobreak-char-display
2020-12-08 8:55 ` Juri Linkov
2020-12-08 14:17 ` Lars Ingebrigtsen
@ 2020-12-08 16:23 ` Drew Adams
1 sibling, 0 replies; 5+ messages in thread
From: Drew Adams @ 2020-12-08 16:23 UTC (permalink / raw)
To: Juri Linkov, Lars Ingebrigtsen; +Cc: 9790, Chong Yidong
Various posts in this thread essentially propose different blanket approaches, i.e., paint something with a broad brush. Some want such brushwork in some contexts; others don't.
What's needed, I think, are (1) a fine-grained mechanism to control which chars get highlighted and how and where/when, (2) default applications of that mechanism to specific contexts, and (3) user ability to control things.
No broad brushwork will be satisfactory, I think. I think some form of #1 is the starting point - without that, I don't see a good solution.
I mentioned my library `highlight-chars.el', which provides support for #1: ways to highlight any set of chars, and control where/when/whether that's done. Maybe take a look at what it offers, as food for thought or even perhaps reuse?
https://www.emacswiki.org/emacs/download/highlight-chars.el
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-12-08 16:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-19 0:22 bug#9790: Cleaning up nobreak-char-display Chong Yidong
2020-12-07 17:38 ` Lars Ingebrigtsen
2020-12-08 8:55 ` Juri Linkov
2020-12-08 14:17 ` Lars Ingebrigtsen
2020-12-08 16:23 ` Drew Adams
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).