emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] bug#22472: 25.0.50; org-mode: latex fragments can't be un-rendered a


From: Nicolas Goaziou
Subject: [O] bug#22472: 25.0.50; org-mode: latex fragments can't be un-rendered after a revert
Date: Thu, 04 Feb 2016 09:35:13 +0100

Hello,

Dima Kogan <address@hidden> writes:

> Dima Kogan <address@hidden> writes:
>
>> So a revert puts emacs into an inconsistent state, where the equation is
>> rendered, but the source may or may not be there anymore, and where org
>> doesn't think there's a render there at all.
>
> This looks like an issue in emacs, rather than org. I think the right
> solution is for a revert to delete all overlays. I.e.:
>
>   (add-hook 'before-revert-hook 'delete-all-overlays)
>
> This generally works, but is unideal because:
>
>
> 1. We'd want this to apply to org buffers, not to all emacs buffers
>
> 2. This works only if revert-buffer-function is nil or
> revert-buffer--default.
>
>
> If we don't want to delete overlays on revert, then
> org-latex-fragment-image-overlays must be properly set to reflect the
> overlay state, AND emacs should make sure the overlay is still valid on
> revert.
>
> Any particular thoughts?

Would the following patch (applied on maint) solve the problem?


Regards,

-- 
Nicolas Goaziou

Attachment: 0001-Remove-LaTeX-overlay-when-text-below-is-modified.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]