aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-08-09 02:55:25 +0000
committerRichard M. Stallman2005-08-09 02:55:25 +0000
commitc8f0dac9e369d3371c2cb82a98f8cc6cc0b6e306 (patch)
treea5d5e8943ae009772705bb164121d9236de22d29
parentf373470debdd17410474b52b177941a569b64794 (diff)
downloademacs-c8f0dac9e369d3371c2cb82a98f8cc6cc0b6e306.tar.gz
emacs-c8f0dac9e369d3371c2cb82a98f8cc6cc0b6e306.zip
(ansi-color-make-extent, ansi-color-set-extent-face):
Use fboundp, not functionp.
-rw-r--r--lisp/ansi-color.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ansi-color.el b/lisp/ansi-color.el
index 94b6b81e031..c329bab5788 100644
--- a/lisp/ansi-color.el
+++ b/lisp/ansi-color.el
@@ -486,7 +486,7 @@ For XEmacs, we create a temporary face and return it."
486OBJECT defaults to the current buffer. XEmacs uses `make-extent', Emacs 486OBJECT defaults to the current buffer. XEmacs uses `make-extent', Emacs
487uses `make-overlay'. XEmacs can use a buffer or a string for OBJECT, 487uses `make-overlay'. XEmacs can use a buffer or a string for OBJECT,
488Emacs requires OBJECT to be a buffer." 488Emacs requires OBJECT to be a buffer."
489 (if (functionp 'make-extent) 489 (if (fboundp 'make-extent)
490 (make-extent from to object) 490 (make-extent from to object)
491 ;; In Emacs, the overlay might end at the process-mark in comint 491 ;; In Emacs, the overlay might end at the process-mark in comint
492 ;; buffers. In that case, new text will be inserted before the 492 ;; buffers. In that case, new text will be inserted before the
@@ -511,7 +511,7 @@ property."
511(defun ansi-color-set-extent-face (extent face) 511(defun ansi-color-set-extent-face (extent face)
512 "Set the `face' property of EXTENT to FACE. 512 "Set the `face' property of EXTENT to FACE.
513XEmacs uses `set-extent-face', Emacs uses `overlay-put'." 513XEmacs uses `set-extent-face', Emacs uses `overlay-put'."
514 (if (functionp 'set-extent-face) 514 (if (fboundp 'set-extent-face)
515 (set-extent-face extent face) 515 (set-extent-face extent face)
516 (overlay-put extent 'face face))) 516 (overlay-put extent 'face face)))
517 517