Re: [O] [Bug] org-open-at-point adds file+

2014-03-05 Thread Daimrod
Nicolas Goaziou  writes:

> Hello,
>
> Daimrod  writes:
>
>> I think that since its recent rewrite, `org-open-at-point' adds 'file+'
>> before the name of the application before trying to find the correct
>> application.
>>
>> For example the following link:
>>
>> #+BEGIN_EXAMPLE
>> [[docview:foo.pdf]]
>> #+END_EXAMPLE
>>
>> won't trigger the `org-docview-open' handler
>
> This should be fixed. Thank you for reporting it.

Thanks for the fast reply.

> Regards,

-- 
Daimrod/Greg



Re: [O] [Bug] org-open-at-point adds file+

2014-03-05 Thread Nicolas Goaziou
Hello,

Daimrod  writes:

> I think that since its recent rewrite, `org-open-at-point' adds 'file+'
> before the name of the application before trying to find the correct
> application.
>
> For example the following link:
>
> #+BEGIN_EXAMPLE
> [[docview:foo.pdf]]
> #+END_EXAMPLE
>
> won't trigger the `org-docview-open' handler

This should be fixed. Thank you for reporting it.


Regards,

-- 
Nicolas Goaziou



[O] [Bug] org-open-at-point adds file+

2014-03-04 Thread Daimrod
Hello,

I think that since its recent rewrite, `org-open-at-point' adds 'file+'
before the name of the application before trying to find the correct
application.

For example the following link:
#+BEGIN_EXAMPLE
[[docview:foo.pdf]]
#+END_EXAMPLE
won't trigger the `org-docview-open' handler
because the following code:
#+BEGIN_SRC emacs-lisp
(or (let ((app (org-element-property :application context)))
 (nth 1 (assoc (concat "file" (and app (concat "+" 
app)))
   org-link-protocols)))
   #'org-open-file)
#+END_SRC
adds `file+' and then search in `org-link-protocols'.

-- 
Daimrod/Greg


signature.asc
Description: PGP signature