cl-mapcan

This commit is contained in:
dickmao 2020-01-11 21:04:36 -05:00
parent f8e6bebbab
commit b749cf7792
2 changed files with 9 additions and 9 deletions

View file

@ -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 ",")))))

View file

@ -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.")))