summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2014-01-31 15:53:42 +0100
committerBastien Guerry <bzg@altern.org>2014-01-31 15:53:42 +0100
commitd035a9af6c77deacb102406feb5450fed78a7c25 (patch)
tree6f46ec7a81c224ae0c83ad63797bf2c3474dca50
parent7ddebe5c7b4d57614a4b35d406796b8a613aff11 (diff)
downloadorg-mode-d035a9af6c77deacb102406feb5450fed78a7c25.tar.gz
org.el (org-ctrl-c-ctrl-c): Bugfix
* org.el (org-ctrl-c-ctrl-c): Fix behavior when hitting C-c C-c on LaTeX formulas in tables.
-rw-r--r--lisp/org.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 650b6ba..98443b5 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -20236,9 +20236,12 @@ This command does many different things, depending on context:
((bold code entity export-snippet inline-babel-call inline-src-block
italic latex-fragment line-break macro strike-through subscript
superscript underline verbatim)
- (while (and (setq context (org-element-property :parent context))
- (not (memq (setq type (org-element-type context))
- '(paragraph verse-block)))))))
+ (while (and (not (memq (setq type (org-element-type context))
+ '(paragraph verse-block)))
+ (org-element-property
+ :parent
+ (org-element-property :parent context)))
+ (setq context (org-element-property :parent context)))))
;; For convenience: at the first line of a paragraph on the
;; same line as an item, apply function on that item instead.
(when (eq type 'paragraph)