From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#29423: 27.0.50; ls-lisp does not handle -F switch properly Date: Fri, 24 Nov 2017 09:12:11 -0800 (PST) Message-ID: References: <87fu93yhdy.fsf@gmx.de> <335b6fe8-7d72-462d-a0ef-778b93955ddb@default> <87k1yfpqdk.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1511543593 22100 195.159.176.226 (24 Nov 2017 17:13:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Nov 2017 17:13:13 +0000 (UTC) Cc: 29423@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 24 18:13:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1eIHXI-0005JO-3F for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Nov 2017 18:13:08 +0100 Original-Received: from localhost ([::1]:50402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIHXP-0004ip-Gx for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Nov 2017 12:13:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIHXG-0004iS-1a for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 12:13:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIHXC-0006Kz-NG for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 12:13:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47567) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eIHXC-0006Hj-IK for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 12:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eIHXC-0004XY-5J for bug-gnu-emacs@gnu.org; Fri, 24 Nov 2017 12:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Nov 2017 17:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29423 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 29423-submit@debbugs.gnu.org id=B29423.151154354117400 (code B ref 29423); Fri, 24 Nov 2017 17:13:02 +0000 Original-Received: (at 29423) by debbugs.gnu.org; 24 Nov 2017 17:12:21 +0000 Original-Received: from localhost ([127.0.0.1]:56248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIHWW-0004Wa-TN for submit@debbugs.gnu.org; Fri, 24 Nov 2017 12:12:21 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:44873) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIHWV-0004WK-0H for 29423@debbugs.gnu.org; Fri, 24 Nov 2017 12:12:19 -0500 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vAOHCDhM002901 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 24 Nov 2017 17:12:13 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vAOHCDYS025491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 24 Nov 2017 17:12:13 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vAOHCCFM010243; Fri, 24 Nov 2017 17:12:12 GMT In-Reply-To: <87k1yfpqdk.fsf@gmx.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4615.0 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140323 Archived-At: > > I think you're talking (only) about the final / char. > > That seems to be the only place where the property is not > > present. >=20 > Yes. Finally, it was triggered by Tramp using the F switch. This was > added by Tramp in order to get a trailing / for directory names in the > directory listing. You said "Yes", but below you seem to say "No". Is the / the only place where the property is not present? > > Is that / part of the (directory as) file name? Dunno > > whether that consideration helps here - probably not. > > What to cover by the property really depends on what the > > property is used for. >=20 > No, it is not part of the file name. Like the trailing " -> foo" for > symlinks. >=20 > My problem is, that the whole file name is missing the text property, > not only the trailing slash. (See above for (my) confusion about this.) That's not what I see, in any Emacs release or in the 26.1 prerelease (MS Windows binary). Perhaps what you see is a problem introduced after that prerelease or is platform-dependent? > > Unfortunately perhaps, unlike the case for functions and > > variables, there is no doc string for text properties. > > Unless something is called out for this in some doc string > > or in code comments, only the current uses of the property > > can guide what it should apply to. >=20 > I agree. However, in the given case, the text property 'dired-filename > shall highlight exactly the file name. It is used later in dired (as the > name of the property says), but it is also used in Tramp, because for > some of the Tramp backends, ls-lisp-insert-directory is used internally, > and Tramp needs some massage on the result. I definitely agree that the name of the directory (sans /) needs the property. If that's missing then there is likely a regression. > Parsing the output of any insert-directory is a pain. Therefore, it is > helpful to know that the file name part of this output is marked with > 'dired-filename. I agree 100% that the name needs the property. As the only char I see missing the property is the final /, I thought that's what you were asking about and reporting as a problem.