From: "Stephen J. Barr" <stevejb@uw.edu>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: Bastien Guerry <bzg@gnu.org>,
22472@debbugs.gnu.org, Dima Kogan <dima@secretsauce.net>
Subject: bug#22472: bug#22472: 25.0.50; org-mode: latex fragments can't be un-rendered after a revert
Date: Fri, 5 Feb 2016 14:28:31 -0800 [thread overview]
Message-ID: <CAO1hKsvG9v-yv8s2-SRSxu5hMx42kXY7Cnm00NEs5Q-DKWbe0A@mail.gmail.com> (raw)
In-Reply-To: <87wpqiq04k.fsf@nicolasgoaziou.fr>
[-- Attachment #1: Type: text/plain, Size: 1663 bytes --]
I was in the progress of writing my own email about this same issue. I was
not aware that C-c C-c is no longer used for disabling overlays. If this is
the case, what is the correct workflow for toggling these previews on and
off?
Thanks,
-Stephen
Stephen J. Barr
PhD Candidate, Operations Management
Dept: Information Systems and Operations Management (ISOM)
Michael G. Foster School of Business
University of Washington
Phone: 425 516 5012
Email: stevejb@uw.edu
Twitter: @stevejb
Website: http://stephen.planetbarr.com
On Fri, Feb 5, 2016 at 2:10 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:
> Hello,
>
> Dima Kogan <dima@secretsauce.net> writes:
>
> > Ah. Thanks for explaining. The patch helps somewhat, but one can still
> > get into an inconsistent state:
> >
> > 1. Write \(1 + 2\)
> > 2. Toggle overlay with C-c C-x C-l
> > 3. M-x revert-buffer
> >
> > After the revert, the overlay remains, which is arguably OK, since the
> > text has not changed. However after the revert org doesn't realize that
> > the overlay is still up: org-latex-fragment-image-overlays is nil.
>
> Indeed.
>
> `org-latex-fragment-image-overlays' is a local variable and
> `revert-buffer' calls `normal-mode', which, in turn, calls
> `fundamental-mode'. The latter calls `kill-all-local-variables'.
> Information is lost.
>
> I don't think that `org-latex-fragment-image-overlays' is useful,
> anyway. So I removed it, along with that bug, hopefully.
>
> > I think the overlays should all disappear on a revert.
>
> I'm not convinced that an unmodified overlay should disappear.
>
> Thank you for the report.
>
>
> Regards,
>
> --
> Nicolas Goaziou
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 3161 bytes --]
next prev parent reply other threads:[~2016-02-05 22:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <874mdz9th5.fsf@secretsauce.net>
2016-02-03 6:44 ` bug#22472: 25.0.50; org-mode: latex fragments can't be un-rendered after a revert Bastien Guerry
2016-02-04 0:17 ` Dima Kogan
2016-02-04 1:54 ` Dima Kogan
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 ` Stephen J. Barr [this message]
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAO1hKsvG9v-yv8s2-SRSxu5hMx42kXY7Cnm00NEs5Q-DKWbe0A@mail.gmail.com \
--to=stevejb@uw.edu \
--cc=22472@debbugs.gnu.org \
--cc=bzg@gnu.org \
--cc=dima@secretsauce.net \
--cc=mail@nicolasgoaziou.fr \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).