Karthik Chikmagalur <karthikchikmaga...@gmail.com> writes:

>> The new signature is (ov image-data-or-path &optional link align width)
>> So, LINK becomes optional in a sense that ALIGN+WIDTH may be provided 
>> instead.
>>
>> Should be 100% backwards-compatible.
>
> Is this the new signature for the API, i.e. previewers of all kinds?

Hmm. Maybe we have a misunderstanding. I was talking about
`org-link-preview-file' signature.

> ... I don't follow how the preview function can be called when link is
> optional.  Currently in `org-link-preview-region' we have
>
> (push (list preview-func ov path link) preview-queue)

> I'm not seeing how this can change to accommodate align+width.

With the new signature, (org-link-preview-file ov path link) will be
still ok. The point is that other callers that want to use
`org-link-preview-file' independently may use the alternative calling
convention.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to