emacs-devel
[Top][All Lists]
Advanced

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

Re: Character literals for Unicode (control) characters


From: Clément Pit--Claudel
Subject: Re: Character literals for Unicode (control) characters
Date: Sat, 5 Mar 2016 12:53:10 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

On 03/05/2016 12:12 PM, Paul Eggert wrote:
> I don't see a problem here. The original string should look something like 
> this:
> 
> "Use Greek capital letters (\N{GREEK CAPITAL LETTER ALPHA}\N{EN DASH}\N{GREEK 
> CAPITAL LETTER OMEGA}) to denote figures."
> 
> and there's no space between the "DASH}" and the following "\N{GREEK" for M-q 
> to latch onto. I just now tried M-q on the above string and it came up with:
> 
> (defun foo (abc)
>   "Use Greek capital letters (\N{GREEK CAPITAL LETTER ALPHA}\N{EN
>   DASH}\N{GREEK CAPITAL LETTER OMEGA}) to denote figures."
>   ...)
> 
> which should work OK if arbitrary white space is allowed between words inside 
> \N{...} escapes.

Sorry, maybe I wasn't clear. My point was about the fact that since the escapes 
and the actual characters don't have the same length, and since printing a 
docstring doesn't rewrap it, docstrings wrapped with M-q in the source will 
look wrong after rendering.

Given this (wrapped with M-q):

    (defun aaa ()
      "AAAA.
    \N{ARROW POINTING DOWNWARDS THEN CURVING LEFTWARDS} is not the
    same as \N{ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS}.")

The rendering will be

    aaa is a Lisp function.

    (aaa)

    AAAA.
    ⤶ is not the
    same as ⤵.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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