mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-04 16:51:38 -05:00
cl-mapcan
This commit is contained in:
parent
f8e6bebbab
commit
b749cf7792
2 changed files with 9 additions and 9 deletions
|
@ -496,6 +496,6 @@
|
|||
(When "^text property at point includes \"\\(.+\\)\"$"
|
||||
(lambda (properties)
|
||||
(should-not
|
||||
(mapcan (lambda (prop)
|
||||
(not (get-text-property (point) (intern prop))))
|
||||
(split-string properties ",")))))
|
||||
(cl-mapcan (lambda (prop)
|
||||
(not (get-text-property (point) (intern prop))))
|
||||
(split-string properties ",")))))
|
||||
|
|
|
@ -203,12 +203,12 @@ combo must match exactly these url/port you used format
|
|||
|
||||
(defun ein:notebook-buffer-list (notebook)
|
||||
"Return the direct and indirect buffers."
|
||||
(mapcan (lambda (ws)
|
||||
(when-let ((ws-buf (ein:worksheet-buffer ws)))
|
||||
(with-current-buffer ws-buf
|
||||
(mapcar #'buffer-name (eieio-oref pm/polymode '-buffers)))))
|
||||
(append (ein:$notebook-worksheets notebook)
|
||||
(ein:$notebook-scratchsheets notebook))))
|
||||
(cl-mapcan (lambda (ws)
|
||||
(when-let ((ws-buf (ein:worksheet-buffer ws)))
|
||||
(with-current-buffer ws-buf
|
||||
(mapcar #'buffer-name (eieio-oref pm/polymode '-buffers)))))
|
||||
(append (ein:$notebook-worksheets notebook)
|
||||
(ein:$notebook-scratchsheets notebook))))
|
||||
|
||||
(defun ein:notebook--get-nb-or-error ()
|
||||
(or ein:%notebook% (error "Not in notebook buffer.")))
|
||||
|
|
Loading…
Add table
Reference in a new issue