From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: bug#22472: 25.0.50; org-mode: latex fragments can't be un-rendered after a revert Date: Thu, 04 Feb 2016 09:49:05 +0100 Message-ID: <87mvrgoo72.fsf@nicolasgoaziou.fr> References: <874mdz9th5.fsf@secretsauce.net> <87oabyuwbf.fsf@free.fr> <87powd2usq.fsf@secretsauce.net> <87mvrh2qbf.fsf@secretsauce.net> <87zivgoou6.fsf@nicolasgoaziou.fr> <87io243m32.fsf@secretsauce.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRFaB-0003T6-6b for emacs-orgmode@gnu.org; Thu, 04 Feb 2016 03:48:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRFa6-0002pI-Mn for emacs-orgmode@gnu.org; Thu, 04 Feb 2016 03:48:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:50325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRFa6-0002pD-JH for emacs-orgmode@gnu.org; Thu, 04 Feb 2016 03:48:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aRFa6-0005rX-CB for emacs-orgmode@gnu.org; Thu, 04 Feb 2016 03:48:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87io243m32.fsf@secretsauce.net> (Dima Kogan's message of "Thu, 04 Feb 2016 00:40:17 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dima Kogan Cc: Bastien Guerry , 22472@debbugs.gnu.org Dima Kogan writes: > Nicolas Goaziou writes: > >> Would the following patch (applied on maint) solve the problem? > > Hi. I didn't observe anything acting differently with this patch. What > did you see it do? Was it supposed to unrender on revert, or to keep the > render, but update the state? As the commit message says, it is supposed to remove the overlay when text below is modified (e.g. when using a replace-regexp). E.g., 1. Write \(1 + 2\) 2. Toggle overlay with C-c C-x C-l 3. M-% 2 RET 3 RET 4. The overlay should have disappeared I didn't test it with the `revert-buffer' command, but I would be surprised that it doesn't run any modification hook. Regards, -- Nicolas