Max Nikulin writes:
>>> It returns a cons, doesn't it? Is it confusing that separator for
>>> components is related to the argument?
>>
>> It is confusing that cons consist of _file name_ and node name.
>> However, the function may return non-file as car of the cons.
>
> "dir" should not appear
On 20/08/2022 14:29, Ihor Radchenko wrote:
Max Nikulin writes:
On 19/08/2022 11:28, Ihor Radchenko wrote:
Max Nikulin writes:
+(defun org-info--link-file-node (path)
+ "Extract file name and node from info link PATH.
+
+Return cons consisting of file name and node name or \"Top\" if node
Max Nikulin writes:
> On 19/08/2022 11:28, Ihor Radchenko wrote:
>> Max Nikulin writes:
>>
>>> +(defun org-info--link-file-node (path)
>>> + "Extract file name and node from info link PATH.
>>> +
>>> +Return cons consisting of file name and node name or \"Top\" if node
>>> +part is not
On 19/08/2022 11:28, Ihor Radchenko wrote:
Max Nikulin writes:
+(defun org-info--link-file-node (path)
+ "Extract file name and node from info link PATH.
+
+Return cons consisting of file name and node name or \"Top\" if node
+part is not specified. Components may be separated by \":\" or by
Max Nikulin writes:
> I have rewritten the patch to use `pcase' and to fix allowed separators
> between file name and node.
Thanks!
> +(defun org-info--link-file-node (path)
> + "Extract file name and node from info link PATH.
> +
> +Return cons consisting of file name and node name or
y at this point may cause more problems.From 7aeaa36ee1b30aa1c9711fe76e151ec956199f27 Mon Sep 17 00:00:00 2001
From: Max Nikulin
Date: Sat, 30 Jul 2022 19:13:01 +0700
Subject: [PATCH v2] ol-info: Define :insert-description function
* lisp/ol-info.el (org-info--link-file-node): New helper to parse