diff options
| author | Richard M. Stallman | 2005-08-09 02:55:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-08-09 02:55:25 +0000 |
| commit | c8f0dac9e369d3371c2cb82a98f8cc6cc0b6e306 (patch) | |
| tree | a5d5e8943ae009772705bb164121d9236de22d29 | |
| parent | f373470debdd17410474b52b177941a569b64794 (diff) | |
| download | emacs-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.el | 4 |
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." | |||
| 486 | OBJECT defaults to the current buffer. XEmacs uses `make-extent', Emacs | 486 | OBJECT defaults to the current buffer. XEmacs uses `make-extent', Emacs |
| 487 | uses `make-overlay'. XEmacs can use a buffer or a string for OBJECT, | 487 | uses `make-overlay'. XEmacs can use a buffer or a string for OBJECT, |
| 488 | Emacs requires OBJECT to be a buffer." | 488 | Emacs 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. |
| 513 | XEmacs uses `set-extent-face', Emacs uses `overlay-put'." | 513 | XEmacs 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 | ||