et2010/org-edit-latex

Debugger entered--Lisp error: (void-variable org-src--beg-marker)

saccohuo opened this issue · 2 comments

When I abort editing or exit the sub-editing, there is something wrong here.
However, I disable org-edit-latex to use the original function of org-mode for editing src block, there is no error.
Environment: Windows 7 x64, emacs 24.5, org-mode 8.2.10.
Error message is as follows. Because there is some messy code here, so the msg cannot be posted here completely. So there is also a screenshot to illustrate that.

Debugger entered--Lisp error: (void-variable org-src--beg-marker)
  org-edit-latex--unwrap-maybe(#[(&optional context) "\306......
\207" [org-edit-src-from-org-mode fixed-width-p org-edit-src-beg-marker beg org-edit-src-end-marker end boundp error "This is not a sub-editing buffer, something is wrong" string-match "Fixed Width" buffer-name buffer-string org-edit-src-force-single-line macro-definition 0 org-edit-src-allow-write-back-p nil untabify looking-at "[ 	\n]*\n" replace-match "" re-search-forward "\n[ 	\n]*\\'" t 1 count-lines "\\s-+\\'" "\n" "\\n" " " "\\s-*" org-escape-code-in-region "[ 	]*\\(,,\\)?\\(\\*\\|#+\\)" org-edit-src-picture "^" ": " make-string 32 "\\(^\\).+" 2 save erase-buffer set-buffer-modified-p org-src-switch-to-buffer marker-buffer exit save-buffer kill-buffer ...] 7 ("c:/emacs/share/emacs/24.5/lisp/org/org-src.elc" . 24584) nil] exit)

  apply(org-edit-latex--unwrap-maybe #[(&optional context) "\306\300!\203\n......
\207" [org-edit-src-from-org-mode fixed-width-p org-edit-src-beg-marker beg org-edit-src-end-marker end boundp error "This is not a sub-editing buffer, something is wrong" string-match "Fixed Width" buffer-name buffer-string org-edit-src-force-single-line macro-definition 0 org-edit-src-allow-write-back-p nil untabify looking-at "[ 	\n]*\n" replace-match "" re-search-forward "\n[ 	\n]*\\'" t 1 count-lines "\\s-+\\'" "\n" "\\n" " " "\\s-*" org-escape-code-in-region "[ 	]*\\(,,\\)?\\(\\*\\|#+\\)" org-edit-src-picture "^" ": " make-string 32 "\\(^\\).+" 2 save erase-buffer set-buffer-modified-p org-src-switch-to-buffer marker-buffer exit save-buffer kill-buffer ...] 7 ("c:/emacs/share/emacs/24.5/lisp/org/org-src.elc" . 24584) nil] exit)
  org-edit-src-exit(exit)
  org-edit-src-abort()
  call-interactively(org-edit-src-abort nil nil)
  command-execute(org-edit-src-abort)

error msg

Thanks for the report! This package has not been tested on org 8.2. I'll try to fix it. In the meantime, you could try the latest org.

It should be fixed now. But note that inline src block is supported only in orgmode 9.0 and above.