Section comments on ein-notebook.el

This commit is contained in:
Takafumi Arakaki 2012-08-27 18:34:25 +02:00
parent 78eb22df8d
commit 465c4a446a

View file

@ -218,6 +218,9 @@ Current buffer for these functions is set to the notebook buffer.")
"Buffer local variable to store an instance of `ein:$notebook'.")
(define-obsolete-variable-alias 'ein:notebook 'ein:%notebook% "0.1.2")
;;; Constructor
(defun ein:notebook-new (url-or-port notebook-id &rest args)
(let ((notebook (apply #'make-ein:$notebook
:url-or-port url-or-port
@ -225,6 +228,9 @@ Current buffer for these functions is set to the notebook buffer.")
args)))
notebook))
;;; Destructor
(defun ein:notebook-del (notebook)
"Destructor for `ein:$notebook'."
(ein:log-ignore-errors
@ -238,6 +244,9 @@ call notebook destructor `ein:notebook-del'."
(unless worksheets
(ein:notebook-del notebook))))
;;; Notebook utility functions
(defun ein:notebook-buffer (notebook)
"Return the buffer that is associated with NOTEBOOK."
;; FIXME: Find a better way to define notebook buffer! (or remove this func)
@ -258,6 +267,9 @@ will be updated with kernel's cwd."
(defalias 'ein:notebook-name 'ein:$notebook-notebook-name)
;;; Open notebook
(defun ein:notebook-url (notebook)
(ein:notebook-url-from-url-and-id (ein:$notebook-url-or-port notebook)
(ein:$notebook-notebook-id notebook)))
@ -459,7 +471,7 @@ This is equivalent to do ``C-c`` in the console program."
'ein:shared-output-eval-string "0.1.2")
;;; Persistance and loading
;;; Persistence and loading
(defun ein:notebook-set-notebook-name (notebook name)
"Check NAME and change the name of NOTEBOOK to it."