From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-open-link-from-string truncates file path at spaces Date: Fri, 27 Apr 2018 17:17:03 +0200 Message-ID: <87bme4vfv4.fsf@nicolasgoaziou.fr> References: <87lgd9r17y.fsf@bzg.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fC57a-0003Z6-LF for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 11:17:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fC57Z-0003M6-Tg for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 11:17:14 -0400 In-Reply-To: <87lgd9r17y.fsf@bzg.fr> (Bastien's message of "Fri, 27 Apr 2018 01:34:41 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Bastien Cc: Joon Ro , "emacs-orgmode@gnu.org" Hello, Bastien writes: > Hi Joon, > > Joon Ro writes: > >> With current org version (Org mode version 9.1.8 (9.1.8-elpaplus @ c: >> /Users/joon/.emacs.d/elpa/org-plus-contrib-20171228/)), >> org-open-link-from-string does not work with a path string if it >> includes a space. For example, >> >> (org-open-link-from-string "file:test test.hmtl") >> >> yields >> >> user-error: No such file: c:/Users/joon/test > > Fixed in maint, thanks. I reverted this fix because it introduces an error when trying to edit a file in an INCLUDE keyword. The initial report is wrong anyway, because "file:test test.hmtl" is not a valid link syntax, i.e., plain links cannot contain spaces. It should be: (org-open-link-from-string "[[file:test test.hmtl]]") IMO, there is nothing to fix in the first place. Regards, -- Nicolas Goaziou