From: <kuangdash@163.com>
To: "Nicolas Goaziou" <mail@nicolasgoaziou.fr>
Cc: "Andreas Leha" <andreas.leha@med.uni-goettingen.de>,
"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Here is a patch I want to add to org.el……
Date: Sat, 28 Feb 2015 09:03:11 +0000 [thread overview]
Message-ID: <54F18876.F46538.06976@m12-14.163.com> (raw)
In-Reply-To: <54F0D25E.AC5A60.07341@m50-132.163.com>
[-- Attachment #1.1: Type: text/plain, Size: 1449 bytes --]
Hi, buddies:
a little change has been made……
Sent from Windows Mail
From: kuangdash@163.com
Sent: Saturday, February 28, 2015 4:05 AM
To: Nicolas Goaziou
Cc: Andreas Leha, emacs-orgmode@gnu.org
I have seen the newest org.el. The request below can be done by the patch:
when the cursor on the overlay
C-c C-c
delete the overlay
If you want to recover it , just ‘toggle all latex fragment’, which use the cache too(with little delay).
Is there any problem I left out?
Sent from Windows Mail
From: kuangdash@163.com
Sent: Saturday, February 28, 2015 3:38 AM
To: Nicolas Goaziou
Cc: Andreas Leha, emacs-orgmode@gnu.org
what if search for ‘org-remove-latex-fragment-image-overlays’ in org.el ? I see it in the function ‘org-ctrl-c-ctrl-c’ (org 8.2.10)
Sent from Windows Mail
From: Nicolas Goaziou
Sent: Saturday, February 28, 2015 1:32 AM
To: kuangdash@163.com
Cc: Andreas Leha, emacs-orgmode@gnu.org
<kuangdash@163.com> writes:
> I'm not sure if the patch proposed may cause any other problems, but
> I think this feature should be added by someone.
Your patch is about C-c C-c, which is no longer related to
`org-toggle-latex-fragment'. So, it cannot be applied.
Regards,
[-- Attachment #1.2: Type: text/html, Size: 6750 bytes --]
[-- Attachment #2: 0001-again.patch --]
[-- Type: application/octet-stream, Size: 1363 bytes --]
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
next prev parent reply other threads:[~2015-02-28 9:21 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-25 4:14 Here is a patch I want to add to org.el…… kuangdash
2015-02-25 4:41 ` kuangdash
2015-02-26 18:49 ` Nicolas Goaziou
2015-02-25 13:03 ` Nicolas Goaziou
2015-02-27 6:25 ` kuangdash
2015-02-27 9:29 ` Andreas Leha
2015-02-27 9:49 ` Nicolas Goaziou
2015-02-27 14:36 ` kuangdash
2015-02-27 17:32 ` Nicolas Goaziou
2015-02-27 19:38 ` kuangdash
2015-02-27 21:19 ` Nick Dokos
[not found] ` <54F0D25E.AC5A60.07341@m50-132.163.com>
2015-02-28 9:03 ` kuangdash [this message]
2015-02-28 15:43 ` Nick Dokos
2015-02-28 16:26 ` kuangdash
2015-02-27 15:26 ` Andreas Leha
2015-02-27 15:55 ` Rasmus
2015-02-27 22:22 ` Andreas Leha
2015-02-28 9:44 ` Rasmus
2015-02-27 23:37 ` Nicolas Goaziou
2015-02-28 11:01 ` Andreas Leha
2015-03-02 22:48 ` Andreas Leha
2015-03-03 0:21 ` Nicolas Goaziou
2015-03-03 9:38 ` Andreas Leha
2015-03-03 9:40 ` Andreas Leha
2015-03-03 21:00 ` Nicolas Goaziou
2015-03-03 21:11 ` Andreas Leha
2015-03-06 11:08 ` Nicolas Goaziou
2015-03-06 11:29 ` Andreas Leha
2015-02-27 9:46 ` Nicolas Goaziou
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=54F18876.F46538.06976@m12-14.163.com \
--to=kuangdash@163.com \
--cc=andreas.leha@med.uni-goettingen.de \
--cc=emacs-orgmode@gnu.org \
--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).