]> git.eshelyaron.com Git - emacs.git/commitdiff
* Make use of use of `subr-primitive-p' in `find-function-library'
authorAndrea Corallo <akrl@sdf.org>
Sat, 19 Sep 2020 20:42:16 +0000 (22:42 +0200)
committerAndrea Corallo <akrl@sdf.org>
Mon, 21 Sep 2020 19:46:18 +0000 (21:46 +0200)
* lisp/emacs-lisp/find-func.el (find-function-library): Use
`subr-primitive-p'.

lisp/emacs-lisp/find-func.el

index f5f8c822089b6380802fb170e0b39967d3444509..a4577a53164adf91c7474f6cdd339ffd9c1e0915 100644 (file)
@@ -432,7 +432,7 @@ message about the whole chain of aliases."
     (cons function
           (cond
            ((autoloadp def) (nth 1 def))
-           ((and (subrp def) (not (subr-native-elisp-p def)))
+           ((subr-primitive-p def)
             (if lisp-only
                 (error "%s is a built-in function" function))
             (help-C-file-name def 'subr))