From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#28156: Emacs quietly munges symlink contents Date: Mon, 21 Aug 2017 01:34:20 -0700 Organization: UCLA Computer Science Department Message-ID: <6d4110f8-5c70-6c0f-bbad-dd8cd1d193e3@cs.ucla.edu> References: <68b2e6ef-bf0b-ebcf-c577-d296952d593f@cs.ucla.edu> <83pobqcnlf.fsf@gnu.org> <83h8x2ckqn.fsf@gnu.org> <87y3qexfeo.fsf@detlef> <8a526a4a-fd11-06c7-8ad4-bc00a667bcd1@cs.ucla.edu> <83a82ucaew.fsf@gnu.org> <834lt1d4yh.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1503304517 28383 195.159.176.226 (21 Aug 2017 08:35:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Aug 2017 08:35:17 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Cc: p.stephani2@gmail.com, michael.albinus@gmx.de, 28156@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 21 10:35:13 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 1djiAv-0006xt-BJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Aug 2017 10:35:09 +0200 Original-Received: from localhost ([::1]:53395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djiB2-0007RT-4U for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Aug 2017 04:35:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djiAs-0007LR-Tt for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2017 04:35:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djiAo-00070T-U1 for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2017 04:35:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38615) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1djiAo-0006zP-QO for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2017 04:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1djiAo-00032u-BV for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2017 04:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Aug 2017 08:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28156 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 28156-submit@debbugs.gnu.org id=B28156.150330446911662 (code B ref 28156); Mon, 21 Aug 2017 08:35:02 +0000 Original-Received: (at 28156) by debbugs.gnu.org; 21 Aug 2017 08:34:29 +0000 Original-Received: from localhost ([127.0.0.1]:47296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djiAH-000322-1B for submit@debbugs.gnu.org; Mon, 21 Aug 2017 04:34:29 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:33424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djiAF-00031q-GU for 28156@debbugs.gnu.org; Mon, 21 Aug 2017 04:34:28 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 63DA91608B3; Mon, 21 Aug 2017 01:34:21 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id YNWNrchSlWGy; Mon, 21 Aug 2017 01:34:20 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id AC8771608A7; Mon, 21 Aug 2017 01:34:20 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id PzYbpTzZE5wT; Mon, 21 Aug 2017 01:34:20 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [47.153.184.153]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 861FD160880; Mon, 21 Aug 2017 01:34:20 -0700 (PDT) In-Reply-To: <834lt1d4yh.fsf@gnu.org> Content-Language: en-US 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:135984 Archived-At: Eli Zaretskii wrote: > No need to affect its interactive invocation. Yes, that's what npostavs suggested too. I plan to look into it. > (file-symlink-p "/:/tmp/symlink") >=20 > There's special code in file-symlink-p to support this and return a > quoted name of the symlink target. For some reason, you wanted to > remove that code. The proposed change to file-symlink-p doesn't affect support for file nam= e=20 quoting in its argument string. All it affects is the returned string. Th= ere is=20 no need for it to quote the returned string, just as there is no need for= =20 read-file-name to quote the string that it returns. Neither function is=20 documented to quote its return value, and neither should do so.