From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r116230: Fix bug #16558 with w32-shell-execute on remote file names. Date: Tue, 04 Feb 2014 21:38:12 -0500 Message-ID: References: <83ob2q4nbv.fsf@gnu.org> <83k3de41sc.fsf@gnu.org> <83iosx4iid.fsf@gnu.org> <83txcg3fle.fsf@gnu.org> <83lhxs2mru.fsf@gnu.org> <837g9a3kmb.fsf@gnu.org> <83vbwu1tk2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391567912 3526 80.91.229.3 (5 Feb 2014 02:38:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Feb 2014 02:38:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 05 03:38:39 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WAsNr-0000cs-0c for ged-emacs-devel@m.gmane.org; Wed, 05 Feb 2014 03:38:39 +0100 Original-Received: from localhost ([::1]:57166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAsNq-0005DL-L0 for ged-emacs-devel@m.gmane.org; Tue, 04 Feb 2014 21:38:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAsNg-0005D6-JL for emacs-devel@gnu.org; Tue, 04 Feb 2014 21:38:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAsNY-0003l6-KT for emacs-devel@gnu.org; Tue, 04 Feb 2014 21:38:27 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:31011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAsNQ-0003hn-T8; Tue, 04 Feb 2014 21:38:12 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFG4rxNY/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GsR+QDpEKA4hhnBmBXoMV X-IPAS-Result: Av4EABK/CFG4rxNY/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GsR+QDpEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46803204" Original-Received: from 184-175-19-88.dsl.teksavvy.com (HELO pastel.home) ([184.175.19.88]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 04 Feb 2014 21:38:12 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 13ED260145; Tue, 4 Feb 2014 21:38:12 -0500 (EST) In-Reply-To: <83vbwu1tk2.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 04 Feb 2014 23:01:17 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:169402 Archived-At: > This API uses the "file association" infrastructure to find the > application registered to open a file. Perhaps that infrastructure > cannot cope with relative file names that have leading directories? Yuck! So I guess the best we can do is: (if (file-name-absolute-p file) (let ((dir (file-name-directory file))) (if (null dir) (if (faccess dir) )))) -- Stefan