emacs-devel
[Top][All Lists]
Advanced

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

Re: lisp/term/ns-win.el modification


From: Jean-Christophe Helary
Subject: Re: lisp/term/ns-win.el modification
Date: Mon, 1 May 2017 07:23:55 +0900

> On Apr 30, 2017, at 23:12, Eli Zaretskii <address@hidden> wrote:
> 
>>> Besides, it doesn't trim non-breakable spaces.
>> 
>> That's a pity. Is there a reason why non-breakable spaces would not be 
>> considered for trimming purposes?
> 
> What's the rationale for adding NBSP?  Also, is it only the NBSP
> character that's missing, or there are others?

It depends on what the definition of "trimming a string" is.

The regex used in subr-x is:  "\\`[ \t\n\r]+"

If we use the Unicode definition of white space, we need to add a lot more 
strings:
https://en.wikipedia.org/wiki/Whitespace_character#Unicode

Jean-Christophe




reply via email to

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