|
From: | Paul Eggert |
Subject: | Re: [Emacs-diffs] master c4151eb: Improve the optional translation of quotes |
Date: | Thu, 25 Jun 2015 07:05:04 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
Dmitry Gutov wrote:
See the bottom of this email for the patch
I didn't see any patch in that email, unfortunately -- perhaps you forgot to include it?
- "too tempting to implement complicated heuristics that would have been a pain to document" is not a good argument not to do something in a high-level language.
True. But it's still a temptation we should strive to avoid.
- Like you said: "describe-variable should curve the quotes in the doc string, but not in the contents of the variable". The code that prints the value will need to add some text property to it ("verbatim"? "font-lock-ignore"?), and the font-lock rule can look it up and skip those regions. Nothing too hard.
As you'll recall, I don't understand font-lock. That being said, I worry that all this stuff would be complicated and would involve using undocumented or poorly-documented features (see Bug#20613).
Also, it's not clear how the overall approach would work on limited displays that don't have alternate fonts and/or colors. Suppose, for example, that the user is running 'emacs --color=never' on a character terminal?
[Prev in Thread] | Current Thread | [Next in Thread] |