From: Dima Kogan <dima@secretsauce.net>
To: Bastien Guerry <bzg@gnu.org>
Cc: 22472@debbugs.gnu.org
Subject: bug#22472: 25.0.50; org-mode: latex fragments can't be un-rendered after a revert
Date: Wed, 03 Feb 2016 17:54:12 -0800 [thread overview]
Message-ID: <87mvrh2qbf.fsf@secretsauce.net> (raw)
In-Reply-To: <87powd2usq.fsf@secretsauce.net>
Dima Kogan <dima@secretsauce.net> 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?
next prev parent reply other threads:[~2016-02-04 1:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-27 11:01 bug#22472: 25.0.50; org-mode: latex fragments can't be un-rendered after a revert Dima Kogan
2016-02-03 6:44 ` Bastien Guerry
2016-02-04 0:17 ` Dima Kogan
2016-02-04 1:54 ` Dima Kogan [this message]
2016-02-04 8:35 ` Nicolas Goaziou
2016-02-04 8:40 ` Dima Kogan
2016-02-04 8:49 ` Nicolas Goaziou
2016-02-04 18:21 ` Dima Kogan
2016-02-05 22:10 ` Nicolas Goaziou
2016-02-05 22:28 ` bug#22472: " Stephen J. Barr
2016-02-06 8:54 ` Dima Kogan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mvrh2qbf.fsf@secretsauce.net \
--to=dima@secretsauce.net \
--cc=22472@debbugs.gnu.org \
--cc=bzg@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.