aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorPaul Eggert2016-12-06 21:38:32 -0800
committerPaul Eggert2016-12-06 21:40:38 -0800
commitf0870da2bb5eee848a5561fb58b2ec3a63861052 (patch)
tree04e35afb3918dd711508b706520dedf342e929e7 /src/image.c
parent2a3420d94206a97f094580e06c25af91d5949516 (diff)
downloademacs-f0870da2bb5eee848a5561fb58b2ec3a63861052.tar.gz
emacs-f0870da2bb5eee848a5561fb58b2ec3a63861052.zip
Simplify FUNCTIONP implementation
* src/bytecode.c (exec_byte_code): * src/image.c (parse_image_spec): Prefer FUNCTIONP (x) to !NILP (Ffunctionp (x)). * src/eval.c (FUNCTIONP): Move here ... * src/lisp.h: ... from here. No longer inline, as that bloats the text and does not help speed (at least on my platform). (functionp): Remove this name, since callers use FUNCTIONP.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index a87dc4d4737..89572b87647 100644
--- a/src/image.c
+++ b/src/image.c
@@ -793,7 +793,7 @@ parse_image_spec (Lisp_Object spec, struct image_keyword *keywords,
793 793
794 case IMAGE_FUNCTION_VALUE: 794 case IMAGE_FUNCTION_VALUE:
795 value = indirect_function (value); 795 value = indirect_function (value);
796 if (!NILP (Ffunctionp (value))) 796 if (FUNCTIONP (value))
797 break; 797 break;
798 return 0; 798 return 0;
799 799