From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#25949: 26.0.50; process-file fails when visiting a file with a quoted file name Date: Fri, 03 Mar 2017 20:31:06 +0100 Message-ID: <877f46yx6t.fsf@detlef> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488569536 31661 195.159.176.226 (3 Mar 2017 19:32:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2017 19:32:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 25949@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 03 20:32:09 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 1cjsvu-0007G0-A7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Mar 2017 20:32:06 +0100 Original-Received: from localhost ([::1]:59902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjsw0-0007oE-Gw for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Mar 2017 14:32:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjsvt-0007o7-JJ for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 14:32:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjsvq-0002pC-Gu for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 14:32:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cjsvq-0002p8-DP for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 14:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cjsvq-0007LM-8g for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 14:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Mar 2017 19:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25949 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 25949-submit@debbugs.gnu.org id=B25949.148856947628172 (code B ref 25949); Fri, 03 Mar 2017 19:32:02 +0000 Original-Received: (at 25949) by debbugs.gnu.org; 3 Mar 2017 19:31:16 +0000 Original-Received: from localhost ([127.0.0.1]:38797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjsv6-0007KK-HC for submit@debbugs.gnu.org; Fri, 03 Mar 2017 14:31:16 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:57415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjsv4-0007K6-E9 for 25949@debbugs.gnu.org; Fri, 03 Mar 2017 14:31:15 -0500 Original-Received: from detlef.gmx.de ([93.197.217.245]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MdK8t-1d1h1745Df-00IUJv; Fri, 03 Mar 2017 20:31:07 +0100 In-Reply-To: (Philipp Stephani's message of "Fri, 03 Mar 2017 16:59:49 +0000") X-Provags-ID: V03:K0:91mJehNYE/PU/WLJR9ab/kxgBgUkQDGTtGWfxnCKcH0/MfCerGH G0ARrX5pBXKCyUsD90M0VGG7nL0cnO451aluHXopDPxeoJo7ScJCg+p8dC4gsnY0KG0Mmir QnhW61X19pxi+Ztwu5dPcYBePIvCvPWAeiHJK387vqyfvxTLU0pox2GtRSe0beizzNDTUfP HuxG2E7zmAfBdi/pes1tw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Y/fqVfbqD3s=:Or/2CJBaURbW4aDo2+7irZ tbnvNv5kfDuuEy2vzTXAETr4n3fhqrbApF91BPR8tm7+DL7Kn+vhNWSFRH6TSJEo5CxDB0kVy 1Ru2jf0VrtReE/pjMJMdxqLQq4YLilMzihXHMQ8jD9sFlg4ij0m1MKISHLtV8C6yVte0GYENW QP7zVYN/DzhCB2wQpQEXCRLxJvWNDTRp5cH8xKauJ66wZZAeDHiH2QByyikGE7btjSnbVS7k2 MbIGiKqBQrFZxqlvMtFVUkAX6tPT9PW1To77T4vkuxIFmcD8aroBfzihf+1FzCrnyX0KIvQ86 oLXmwHMUMax49V2yrEDf04bW1curYqk4QTTZ//D5IQPjwFo+0exwGM6LenKqKot2gcncr50mi dhpe6deOvm6B4tCnsMQ+VyPqkN3sOmy7lUmRl/uTZsiTCiwjiK1xS1ozYPn/9yXBd8x5D/6zL 845R6JRbDgDPXxPqs/Yd6iaRx7UqiNNkngSQjE4St0MNJWg0ZsXmKuyaEJxdlwt0oa0zaDvE7 pON4ACriAw4EHvdH60snmvZFvIRnHVhEG0wwEAl2OMJlcwuaeZrOFXzExVnUqa2SVxJkfeI2H SFJu1CIF3HEtfwqLRHIZaw48mFNdgkdBPdGgORw+9gaDbDsRJyWvBR77+/GL5uVx/J12k5ZES qb34pe6gev42NZ77UeXrR15py/jJh6GnWDcGctndRB6GSNo+aRmcwqDqGhsmYReYPVHC55SRG +QP3+5t00tHw3uagP2bhrvtNaST5uLtujgDViv7shLnUhOuTjJunlQJnnxGJG0MENEHBYf6P 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:130131 Archived-At: Philipp Stephani writes: Hi Philippe, > emacs -Q > C-x C-f /:/tmp/foobar.txt (it doesn't matter whether the file > exists) > M-: (process-file "true") > > will result in an error There are other functions which behave similar wrong: M-: (start-file-process "foo" (current-buffer) "true") M-: (shell-command "true") > + ;; Some operations respect file name handlers in > + ;; `default-directory'. Because core function like > + ;; `call-process' don't care about file name handlers in > + ;; `default-directory', we here have to resolve the > + ;; directory into a local one. For `process-file', this > + ;; fixes Bug#25949. > + (if (memq operation '(insert-directory process-file)) Maybe you could add them here (not tested). Best regards, Michael.