[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] links-9.0 v3
From: |
Nicolas Goaziou |
Subject: |
Re: [O] links-9.0 v3 |
Date: |
Mon, 18 Jul 2016 18:05:49 +0200 |
John Kitchin <address@hidden> writes:
> I am not sure what you mean for this. Let me know if it isn't fixed in
> the attached patches. I thought I had squashed everything into a concise
> history.
No worries. Let's just apply the 21 patches.
> I think this code below (which should be in the patches) handles the
> option correctly.
>
> (defun org--open-file-link (path app)
It should, but I didn't see it in the previous patch, hence my remark.
> -(defvar org-store-link-functions nil
> - "List of functions that are called to create and store a link.
> Each function will be called in turn until one returns a non-nil
> -value. Each function should check if it is responsible for creating
> -this link (for example by looking at the major mode).
> -If not, it must exit and return nil.
> -If yes, it should return a non-nil value after a calling
> -`org-store-link-props' with a list of properties and values.
> -Special properties are:
> +value. Each function should check if it is responsible for
> +creating this link (for example by looking at the major mode). If
> +not, it must exit and return nil. If yes, it should return a
> +non-nil value after a calling `org-store-link-props' with a list
> +of properties and values. Special properties are:
Missing a space after the full stop above.
> +(defun org--open-file-link (path app)
> + "Open PATH using APP.
> +
> +PATH is from a file link, and can have the following syntax:
> + [[file:~/code/main.c::255]]
> + [[file:~/xx.org::My Target]]
> + [[file:~/xx.org::*My Target]]
> + [[file:~/xx.org::#my-custom-id]]
> + [[file:~/xx.org::/regexp/]]
> +
> +APP is '(4) to open the PATH in Emacs, or 'system to use a system
> application."
Maybe something like:
Called it with \\[universal-argument] to open PATH in Emacs. If ARG is
`system', use a system application instead.
Regards,
- Re: [O] links-9.0 v3, (continued)
- Re: [O] links-9.0 v3, John Kitchin, 2016/07/07
- Re: [O] links-9.0 v3, Nicolas Goaziou, 2016/07/08
- Re: [O] links-9.0 v3, John Kitchin, 2016/07/08
- Re: [O] links-9.0 v3, John Kitchin, 2016/07/09
- Re: [O] links-9.0 v3, Nicolas Goaziou, 2016/07/18
- Re: [O] links-9.0 v3, John Kitchin, 2016/07/14
- Re: [O] links-9.0 v3, Nicolas Goaziou, 2016/07/18
- Re: [O] links-9.0 v3, John Kitchin, 2016/07/18
- Re: [O] links-9.0 v3,
Nicolas Goaziou <=
- Re: [O] links-9.0 v3, John Kitchin, 2016/07/18
- Re: [O] links-9.0 v3, Nicolas Goaziou, 2016/07/18
- Re: [O] links-9.0 v3, John Kitchin, 2016/07/18