From 6523bf2962fddb899d70e257debc2821bc66855d Mon Sep 17 00:00:00 2001
From: kuangdash <kuangdash@126.com>
Date: Sat, 28 Feb 2015 17:10:59 +0800
Subject: [PATCH] again

---
 lisp/org.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lisp/org.el b/lisp/org.el
index 8215a46..1b62d5f 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -20757,6 +20757,8 @@ This command does many different things, depending on context:
 - If a function in `org-ctrl-c-ctrl-c-hook' recognizes this location,
   this is what we do.
 
+- If the cursor is on the overlay(latex fragment .etc), delete it.
+
 - If the cursor is on a statistics cookie, update it.
 
 - If the cursor is in a headline, prompt for tags and insert them
@@ -20795,6 +20797,10 @@ This command does many different things, depending on context:
   inhibited by setting `org-babel-no-eval-on-ctrl-c-ctrl-c'."
   (interactive "P")
   (cond
+   ((overlayp (car (overlays-at (point)))) (let ((overlay (car (overlays-at (point)))))
+                                             (if (overlayp overlay)
+                                                 (delete-overlay overlay)
+                                               )))
    ((or (and (boundp 'org-clock-overlays) org-clock-overlays)
 	org-occur-highlights)
     (and (boundp 'org-clock-overlays) (org-clock-remove-overlays))
-- 
2.2.2

