mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 01:21:38 -05:00
Ignore scratchsheet in ein:notebook-ask-before-kill-buffer
This commit is contained in:
parent
c969f0f735
commit
4b9d10d5c9
1 changed files with 1 additions and 0 deletions
|
@ -873,6 +873,7 @@ Note that print page is not supported in IPython 0.12.1."
|
|||
"Return `nil' to prevent killing the notebook buffer.
|
||||
Called via `kill-buffer-query-functions'."
|
||||
(not (and ein:notebook-kill-buffer-ask
|
||||
(ein:worksheet-p ein:%worksheet%) ; it's not `ein:scratchsheet'
|
||||
(ein:notebook-modified-p)
|
||||
(not (y-or-n-p "You have unsaved changes. Discard changes?")))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue