Merge pull request #660 from dickmao/dev

Check symbolp before assuming symbol-name
This commit is contained in:
dickmao 2020-02-09 18:15:47 -05:00 committed by GitHub
commit 84f367f736
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -61,7 +61,7 @@ How do I...
... report a bug?
File an issue using ``M-x ein:dev-bug-report-template``.
First try ``emacs -Q -f package-initialize`` and reproduce the bug. The ``-Q`` skips any user configuration that might interfere with EIN.
First try ``emacs -Q -f package-initialize --eval "(setq debug-on-error t)"`` and reproduce the bug. The ``-Q`` skips any user configuration that might interfere with EIN.
Note EIN is tested only for *released* GNU Emacs versions
.. CI VERSION (see Makefile)

View file

@ -70,7 +70,7 @@ How do I...
... report a bug?
File an issue using ``M-x ein:dev-bug-report-template``.
First try ``emacs -Q -f package-initialize`` and reproduce the bug. The ``-Q`` skips any user configuration that might interfere with EIN.
First try ``emacs -Q -f package-initialize --eval "(setq debug-on-error t)"`` and reproduce the bug. The ``-Q`` skips any user configuration that might interfere with EIN.
Note EIN is tested only for *released* GNU Emacs versions
25.1

View file

@ -1102,13 +1102,13 @@ If :above or :below specified, execute above/below the current cell."
(lambda (my other)
(not (string= (slot-value other 'cell-id) my)))
current-id)))
(append (when (and current-id above)
(append (when above
(aif (seq-take-while not-matching all)
it
(prog1 nil
(ein:log 'info
"ein:worksheet-execute-all-cells: no cells above current"))))
(when (and current-id below)
(when below
(seq-drop-while not-matching all))))
all)))))

View file

@ -6,7 +6,7 @@
(defmacro poly-ein--remove-hook (label functions)
"Remove any hooks saying LABEL from FUNCTIONS"
`(mapc (lambda (x) (when (cl-search ,label (symbol-name x))
`(mapc (lambda (x) (when (and (symbolp x) (cl-search ,label (symbol-name x)))
(remove-hook (quote ,functions) x t)))
,functions))