[Top][All Lists]

[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: Tue, 19 May 2015 16:27:50 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

On 05/16/2015 01:27 AM, Dmitry Gutov wrote:
Indeed, you will see the fancy quotes on the screen while editing source files, even if something else will get saved to disk. font-lock is handy that way.

OK, I tried that, but it didn't work for me. The attached patch works much of the time, but it causes annoying glitches on the screen (for an example see attached, created by "emacs -Q" and 'C-h b'; note the red color glitch after the double-quote). Fiddling with the regexp doesn't help matters. I'm afraid that font locking is so poorly documented (see Bug#20613) that I can't tell whether the color glitch is a bug in Emacs or in this patch's change to Emacs.

Even if I ignore the glitches, I found it disconcerting that the "wrong" characters were used to display text characters (or, from another point of view, that the buffer's contents were "wrong" compared to what was on the screen). So I'm inclined to do something less tricky, e.g., simply replace characters in the *Help* buffer before displaying the buffer. I plan to look into that next.

Attachment: fontlockquote.txt
Description: Text document

Attachment: Screenshot from 2015-05-19 15:26:13.png
Description: PNG image

reply via email to

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