소스 검색

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.
Bastien Guerry 11 년 전
부모
커밋
d035a9af6c
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      lisp/org.el

+ 6 - 3
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)