* org-open-link-from-string truncates file path at spaces
@ 2018-01-02 4:19 Joon Ro
2018-04-26 23:34 ` Bastien
0 siblings, 1 reply; 5+ messages in thread
From: Joon Ro @ 2018-01-02 4:19 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 363 bytes --]
Hi,
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
Best Regards,
Joon
[-- Attachment #2: Type: text/html, Size: 2533 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-open-link-from-string truncates file path at spaces
2018-01-02 4:19 org-open-link-from-string truncates file path at spaces Joon Ro
@ 2018-04-26 23:34 ` Bastien
2018-04-27 15:17 ` Nicolas Goaziou
0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2018-04-26 23:34 UTC (permalink / raw)
To: Joon Ro; +Cc: emacs-orgmode@gnu.org
Hi Joon,
Joon Ro <joon.ro@outlook.com> 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.
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-open-link-from-string truncates file path at spaces
2018-04-26 23:34 ` Bastien
@ 2018-04-27 15:17 ` Nicolas Goaziou
2018-04-27 16:14 ` Bastien
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2018-04-27 15:17 UTC (permalink / raw)
To: Bastien; +Cc: Joon Ro, emacs-orgmode@gnu.org
Hello,
Bastien <bzg@gnu.org> writes:
> Hi Joon,
>
> Joon Ro <joon.ro@outlook.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-open-link-from-string truncates file path at spaces
2018-04-27 15:17 ` Nicolas Goaziou
@ 2018-04-27 16:14 ` Bastien
2018-04-30 2:45 ` Joon Ro
0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2018-04-27 16:14 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: Joon Ro, emacs-orgmode@gnu.org
Hi Nicolas,
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> 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.
Indeed, sorry for the wrong fix here and thanks for the revert.
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-open-link-from-string truncates file path at spaces
2018-04-27 16:14 ` Bastien
@ 2018-04-30 2:45 ` Joon Ro
0 siblings, 0 replies; 5+ messages in thread
From: Joon Ro @ 2018-04-30 2:45 UTC (permalink / raw)
To: Bastien, Nicolas Goaziou; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 439 bytes --]
Hi -
> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> 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.
Thanks - (org-open-link-from-string "[[file:test test.html]]") works perfectly.
Best,
Joon
[-- Attachment #2: Type: text/html, Size: 2123 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-04-30 2:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-02 4:19 org-open-link-from-string truncates file path at spaces Joon Ro
2018-04-26 23:34 ` Bastien
2018-04-27 15:17 ` Nicolas Goaziou
2018-04-27 16:14 ` Bastien
2018-04-30 2:45 ` Joon Ro
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).