[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Escaping quotes in docstrings, Was: A simple solution to "Upcoming l

From: Paul Eggert
Subject: Re: Escaping quotes in docstrings, Was: A simple solution to "Upcoming loss of usability ..."
Date: Fri, 31 Jul 2015 18:36:59 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0

Dmitry Gutov wrote:

one alternative use has already been mentioned ... don't use
the quotes in the output at all, and instead highlight the quoted expressions
with color; and possibly a different font-face.

We can cross that bridge if we ever need to come to it. Such a use can't be the default everywhere, since not every platform supports colors and faces (e.g., batch diagnostics). So we'll need something with quotes anyway. And we already have code that highlights the contents of quotations so that may well be good enough.

C code is perfectly able to use Lisp functions.

I expect that some of the diagnostics are at a low level, and can't assume that Lisp functions are callable, and that we'll need to do some of this at the C level regardless. Once it's done there, why bother with redoing it in Lisp?

I hope we can agree, at least, that substitute-command-keys shouldn't perform
the translation itself.

Whether substitute-command-keys does it directly, or via calling some other function, is an implementation detail and it's not clear to me yet which is the right way to go here.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]