[Top][All Lists]

[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: Fri, 28 Apr 2017 08:32:35 +0900

> On Apr 28, 2017, at 0:09, Davis Herring <address@hidden> wrote:
>>> I mean what the string contains. Your code splits it on certain characters: 
>>> "[\f\t\n\r\v]+". It is always good to be able to go to some documentation, 
>>> to verify that these really are the characters that delimiter file names. 
>>> However, if the content is an arbitrary text file, then that should be 
>>> mentioned.
>> The content is an arbitrary string selected in any application that supports 
>> services. I've removed \s from the delimiters *because* spaces can be part 
>> of a path on Mac.
> All those characters could appear as well: macOS is Unix, after all, and so 
> supports anything except NUL (and reserves / as a directory separator, 
> although in some interfaces / and : are interchanged).  That said, of course 
> spaces are much more common in names, but it's good to remember that this is 
> a human factors decision, not a technical one based on OS rules.

After a night of sleep, I guess I could split only on \n and \r since they are 
the one that the user will use as a visual cue to select paths put on multiple 
lines. Would that be satisfying ?


reply via email to

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