Skip to content

Commit

Permalink
Merge ff0e81a into 368b04d
Browse files Browse the repository at this point in the history
  • Loading branch information
flatwhatson committed May 28, 2020
2 parents 368b04d + ff0e81a commit 834fffe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elisp-def.el
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ source code: they have e.g. org.elc but no org.el."
(defun elisp-def--primitive-p (sym callable-p)
"Return t if SYM is defined in C."
(if callable-p
(subrp (indirect-function sym))
(if (fboundp 'subr-primitive-p)
(subr-primitive-p (indirect-function sym))
(subrp (indirect-function sym)))
(let ((filename (find-lisp-object-file-name sym 'defvar)))
(or (eq filename 'C-source)
(and (stringp filename)
Expand Down

0 comments on commit 834fffe

Please sign in to comment.