# HG changeset patch # User Richard M. Stallman # Date 1123556125 0 # Node ID 4f150b99e0627c345d1ac0b76a2baca5bb8500d9 # Parent da6e5acb4109ed72045506154a0889d0b686fca8 (ansi-color-make-extent, ansi-color-set-extent-face): Use fboundp, not functionp. diff -r da6e5acb4109 -r 4f150b99e062 lisp/ansi-color.el --- a/lisp/ansi-color.el Tue Aug 09 02:55:00 2005 +0000 +++ b/lisp/ansi-color.el Tue Aug 09 02:55:25 2005 +0000 @@ -486,7 +486,7 @@ OBJECT defaults to the current buffer. XEmacs uses `make-extent', Emacs uses `make-overlay'. XEmacs can use a buffer or a string for OBJECT, Emacs requires OBJECT to be a buffer." - (if (functionp 'make-extent) + (if (fboundp 'make-extent) (make-extent from to object) ;; In Emacs, the overlay might end at the process-mark in comint ;; buffers. In that case, new text will be inserted before the @@ -511,7 +511,7 @@ (defun ansi-color-set-extent-face (extent face) "Set the `face' property of EXTENT to FACE. XEmacs uses `set-extent-face', Emacs uses `overlay-put'." - (if (functionp 'set-extent-face) + (if (fboundp 'set-extent-face) (set-extent-face extent face) (overlay-put extent 'face face)))