bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#20385: [PATCH] Support curved quotes in doc strings


From: Paul Eggert
Subject: bug#20385: [PATCH] Support curved quotes in doc strings
Date: Thu, 21 May 2015 00:21:52 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Dmitry Gutov wrote:
...but indeed, this approach could be the simpler one.

I hacked at this a bit, and found that the simpler approach also was better at not curving quotes that shouldn't be curved. For example, describe-variable should curve the quotes in the doc string, but not in the contents of the variable. I'm sure this could all be done with font locking but it's simpler to just edit the characters. And I found a reasonably simple way to put it in, namely, to modify substitute-command-keys so that it substitutes quotes as well, with a simple rule that can be done in one pass with only auxiliary boolean flag.

Revised patches are attached. The first one changes substitute-command-keys. The second one changes the rest of the infrastructure to match; it contains the bulk of the previously-proposed changes. And the third one updates a few doc strings, mostly so that ` isn't turned into ‘ when it's really intended to be a grave accent.

Attachment: 0001-substitute-command-keys-now-curves-quotes.txt
Description: Text document

Attachment: 0002-Support-curved-quotes-in-doc-strings.txt
Description: Text document

Attachment: 0003-Fix-minor-quoting-problems-in-doc-strings.txt
Description: Text document


reply via email to

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