From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: lisp/term/ns-win.el modification Date: Fri, 28 Apr 2017 00:31:34 +0900 Message-ID: <01A45B01-12DB-49C2-BA5B-95038E07F61E@gmail.com> References: <44D4AA3B-8F87-42B6-A2D2-00487B066183@gmail.com> <74D20593-63B6-46FB-BAC3-D841D0BCD461@gmail.com> <0A49E755-3D18-48E8-81D4-253160F60A16@gmail.com> <40f503a4-49eb-a3ff-fe5f-993c8f346c33@lanl.gov> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1493307157 7615 195.159.176.226 (27 Apr 2017 15:32:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Apr 2017 15:32:37 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 27 17:32:33 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3lPD-0001tF-Kw for ged-emacs-devel@m.gmane.org; Thu, 27 Apr 2017 17:32:31 +0200 Original-Received: from localhost ([::1]:32969 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3lPJ-00013I-9x for ged-emacs-devel@m.gmane.org; Thu, 27 Apr 2017 11:32:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3lOS-000124-Kj for emacs-devel@gnu.org; Thu, 27 Apr 2017 11:31:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3lOM-0005Fk-Dv for emacs-devel@gnu.org; Thu, 27 Apr 2017 11:31:44 -0400 Original-Received: from mail-pf0-x22e.google.com ([2607:f8b0:400e:c00::22e]:35100) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3lOM-0005FG-6P for emacs-devel@gnu.org; Thu, 27 Apr 2017 11:31:38 -0400 Original-Received: by mail-pf0-x22e.google.com with SMTP id v14so30176902pfd.2 for ; Thu, 27 Apr 2017 08:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=lk5zU39PsGoIiyC3buLoJER/9iOAGzRh6svt/BJQq3w=; b=TjxIW7ADEN/PhZEttCAqfA4jyLSmFHZE18wvYEt3Is936eS2zzq2nOm4V615OUiNhE p/U8SgE9lLotJFUODqfqs3P/xdi37zOBsa0luTCxQKCNExiFGQVLBX7nYx+3GmFETv/U mXte2FCIBi5Kad1q2EaYEp4f7ZFtopvhilS3bqj/9aWurlFr0lnAPR5MrBO3rvjJBlq3 ea4L59JM+CUHu/WUbCTxfwC71zVxrWxREK7HjaAPFglEPKKhMJ7d7P0vyM7MDVXiW+OT 83JmjK1a6UbyjI5GdfFTr0JxaASTe1KZfyJqRf5moGi0NyurVLVaZU5aJf1tiGSI1xik nG6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=lk5zU39PsGoIiyC3buLoJER/9iOAGzRh6svt/BJQq3w=; b=TQ+DbgocqTwlljAm1ou+njOJJpyobIKd3e78iOrqWv9pc02P6H3mVw6MZfuty9sRGB 3sFi4sU1duYQFy/X7w1qMTwtBHfGYQ3iv91EAvc4BR3cjhNFgYVWRx71kl3vVLQwHIQT T5x2Lye4oJgpyks1tAsOH06YyKLnGanLIIvhiqndSnwU7cNyRMouBd91iYv6tmCMecpr dOZgiESIbwUv4rk72kTgrPoLikH1tyrJCcgjCFmt7EeHR46m1zDd2kN4Gid3PgS+URUl C8Kd1nWbLrssY4CGdm6WydTH6QsOcj+ocOHxh4gmpqNEMOuGe44vfEcapmzQA43qkMUP 9n5A== X-Gm-Message-State: AN3rC/5S+B9sMLUqbyeD+cHv7pFudb0HoSLUT/8he9qrevTiYbM/1gP2 A3hQHJZ28R0+2WTD5Kw= X-Received: by 10.99.123.72 with SMTP id k8mr6551616pgn.6.1493307096988; Thu, 27 Apr 2017 08:31:36 -0700 (PDT) Original-Received: from [192.168.24.54] (pl25298.ag0304.nttpc.ne.jp. [133.232.153.210]) by smtp.gmail.com with ESMTPSA id q1sm5437827pfc.35.2017.04.27.08.31.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Apr 2017 08:31:36 -0700 (PDT) In-Reply-To: <40f503a4-49eb-a3ff-fe5f-993c8f346c33@lanl.gov> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214352 Archived-At: > On Apr 28, 2017, at 0:09, Davis Herring wrote: >=20 >>> 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. >>=20 >> 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. >=20 > All those characters could appear as well: macOS is Unix They probably could, but how realistic do you think it is to have a file = path that *includes* a page break, a carriage return, a tabulation, a = new line, or a vertical tab? > , 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. I understand. The current use case is the following: The user selects lines that all include 1 path on each line, and = depending on the way the lines are selected (triple-clicking or = selection with the keyboard) some leading and trailing white spaces can = be included. So we are not really talking about a very general case of any possible = path that's possible under Unix. I think it is reasonable to make = assumptions about what the user *sees* and what the user considers a = path to be selected and opened with that service. Jean-Christophe=20=