From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: =?UTF-8?B?UmU6IEhlcmUgaXMgYSBwYXRjaCBJIHdhbnQgdG8gYWRkIHRvIG9y?= =?UTF-8?B?Zy5lbOKApuKApg==?= Date: Fri, 27 Feb 2015 09:29:41 +0000 Message-ID: References: <54ED4E97.C3CC91.30527@m12-13.163.com> <87d24yb0u1.fsf@nicolasgoaziou.fr> <54F0118E.D911F7.27458@m12-15.163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRHF0-00073u-Lq for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 04:29:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRHEv-0007VM-Id for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 04:29:50 -0500 Received: from plane.gmane.org ([80.91.229.3]:52284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRHEv-0007VG-Bs for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 04:29:45 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YRHEs-0000gc-N1 for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 10:29:42 +0100 Received: from 193.63.220.174 ([193.63.220.174]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Feb 2015 10:29:42 +0100 Received: from andreas.leha by 193.63.220.174 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Feb 2015 10:29:42 +0100 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: emacs-orgmode@gnu.org Hi, writes: > Here comes the reason: > > “C-c C-c” always removes all overlays in org files (such as formulas, > images .etc ),but sometimes I only want to edit one and leave the > others as it is (overlay). > > so, I modified the org.el .(maybe I should use “advice”……) > > Do you think it is deserved to patch it? > > Sent from Windows Mail > > From: Nicolas Goaziou > Sent: ‎Wednesday‎, ‎February‎ ‎25‎, ‎2015 ‎9‎:‎03‎ ‎PM > To: kuangdash@163.com > Cc: emacs-orgmode@gnu.org > > Hello, > > writes: > >> But how to do it? > > Just send it to the list, using "git format-patch" and a proper commit > message. See http://orgmode.org/worg/org-contribute.html for more > information. >> Besides,I‘m glad to view your opinions,so here comes the codes: >> >> The place:(defun org-ctrl-c-ctrl-c the first (cond >> >> add: >> >> (cond >> ((overlayp (car (overlays-at (point)))) (let ((overlay (car > (overlays-at (point))))) >> (if (overlayp overlay) >> (delete-overlay overlay) >> ))) >> >> >> so that I won’t make all overlays disappear at only once “C-c C-c” > > Would you mind explaining what problem you want to solve? > > Regards, I haven't looked at the patch and I do not understand how the patch achieves the removal of single overlays. But I am in the same boat. I also would (usually) like to remove only the rendered formula at the point. I think that this should even be the default. Regards, Andreas