Просмотр исходного кода

adding commented out code which should be activated once org-element has been merged

  Used to clean up orphaned keywords of blocks removed by
  org-export-blocks-preprocess.
Eric Schulte 13 лет назад
Родитель
Сommit
dec32064a7
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      lisp/org-exp-blocks.el

+ 6 - 0
lisp/org-exp-blocks.el

@@ -208,6 +208,12 @@ which defaults to the value of `org-export-blocks-witheld'."
 		(let ((replacement (save-match-data
 				     (if (memq type org-export-blocks-witheld) ""
 				       (apply func body headers)))))
+		  ;; ;; un-comment this code after the org-element merge
+		  ;; (save-match-data
+		  ;;   (when (and replacement (string= replacement ""))
+		  ;;     (delete-region
+		  ;;      (car (org-element-collect-affiliated-keyword))
+		  ;;      match-start)))
 		  (when replacement
 		    (delete-region match-start match-end)
 		    (goto-char match-start) (insert replacement)