mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
jupyter-org-insert-src-block: Don't move past an inlinetask
This commit is contained in:
parent
642b0ef592
commit
e084842242
1 changed files with 3 additions and 1 deletions
|
@ -183,7 +183,9 @@ language based on the src-block's near `point'."
|
|||
(unless (looking-at-p "^[\t ]*$")
|
||||
;; Move past the current element first
|
||||
(let ((elem (org-element-at-point)) parent)
|
||||
(while (setq parent (org-element-property :parent elem))
|
||||
(while (and (setq parent (org-element-property :parent elem))
|
||||
(not (memq (org-element-type parent)
|
||||
'(inlinetask))))
|
||||
(setq elem parent))
|
||||
(when elem
|
||||
(goto-char (org-element-property
|
||||
|
|
Loading…
Add table
Reference in a new issue