mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-05 09:01:40 -05:00
Raise error in ein:notebook-insert-cell-below if suspicious
This commit is contained in:
parent
36688ca8c2
commit
4bb9cfd47a
1 changed files with 3 additions and 1 deletions
|
@ -241,7 +241,9 @@ is `nil', BODY is executed with any cell types."
|
|||
((= (ein:notebook-ncells notebook) 0)
|
||||
(ein:cell-enter-last cell))
|
||||
(base-cell
|
||||
(ein:cell-insert-below base-cell cell)))
|
||||
(ein:cell-insert-below base-cell cell))
|
||||
(t (error (concat "`base-cell' is `nil' but ncells != 0. "
|
||||
"There is something wrong..."))))
|
||||
(ein:cell-goto cell)
|
||||
(setf (ein:$notebook-dirty notebook) t))
|
||||
cell))
|
||||
|
|
Loading…
Add table
Reference in a new issue