all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Subrp returns nil for function objects and symbols? Is this a bug or me misunderstanding it?
@ 2024-08-13  9:22 arthur miller
  2024-08-13 11:08 ` Stephen Berman
  0 siblings, 1 reply; 7+ messages in thread
From: arthur miller @ 2024-08-13  9:22 UTC (permalink / raw)
  To: emacs-devel@gnu.org

[-- Attachment #1: Type: text/plain, Size: 497 bytes --]

(subrp 'car) => nil
(subrp #'car) => nil
(subrp '+) => nil

(subrp (symbol-function 'car)) => t

According to the doc, subrp should tell me if "OBJECT" is a built-in
function or not. I would expect "car" to be that, since car is implemented
in the C source (in data.c).

I also get the same behavior for compiled-function-p.

Is it not valid to pass a symbol and function objects to those two functions? Can we
 in that case clarify in the doc string expected value(s) for OBJECT?


[-- Attachment #2: Type: text/html, Size: 2603 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-08-15 18:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-13  9:22 Subrp returns nil for function objects and symbols? Is this a bug or me misunderstanding it? arthur miller
2024-08-13 11:08 ` Stephen Berman
2024-08-13 18:00   ` Sv: " arthur miller
2024-08-14 10:08     ` Stephen Berman
2024-08-15  9:01       ` Andrea Corallo
2024-08-15 16:37         ` Sv: " arthur miller
2024-08-15 18:58       ` arthur miller

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.