diff options
| author | Vinicius Jose Latorre | 2005-03-19 04:11:54 +0000 |
|---|---|---|
| committer | Vinicius Jose Latorre | 2005-03-19 04:11:54 +0000 |
| commit | 5d62baca6d9f01e2d527648d47694354e87f5cdf (patch) | |
| tree | 2249e3768cefe8abc0af24f55f2b7dc94fb7566a | |
| parent | 951f97e67d904729032b476caf5f7c2e7e303d73 (diff) | |
| download | emacs-5d62baca6d9f01e2d527648d47694354e87f5cdf.tar.gz emacs-5d62baca6d9f01e2d527648d47694354e87f5cdf.zip | |
Use functionp instead symbolp and fboundp.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/ps-print.el | 14 |
2 files changed, 14 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 43dc9d7bfbc..740c82b9059 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2005-03-19 Vinicius Jose Latorre <viniciusjl@ig.com.br> | ||
| 2 | |||
| 3 | * ps-print.el (ps-generate-string-list, ps-generate-header-line): Use | ||
| 4 | functionp instead of symbolp and fboundp. Reported by Drkm | ||
| 5 | <darkman_spam@yahoo.fr>. | ||
| 6 | (ps-print-version): New version 6.6.6. | ||
| 7 | |||
| 1 | 2005-03-18 Tak Ota <Takaaki.Ota@am.sony.com> | 8 | 2005-03-18 Tak Ota <Takaaki.Ota@am.sony.com> |
| 2 | 9 | ||
| 3 | * textmodes/table.el (table--line-column-position): New idiom. | 10 | * textmodes/table.el (table--line-column-position): New idiom. |
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index d8c8f1f6ded..c99b12acc0e 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; ps-print.el --- print text from the buffer as PostScript | 1 | ;;; ps-print.el --- print text from the buffer as PostScript |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | 3 | ;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
| 4 | ;; 2003, 2004 Free Software Foundation, Inc. | 4 | ;; 2003, 2004, 2005 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Jim Thompson (was <thompson@wg2.waii.com>) | 6 | ;; Author: Jim Thompson (was <thompson@wg2.waii.com>) |
| 7 | ;; Jacques Duthen (was <duthen@cegelec-red.fr>) | 7 | ;; Jacques Duthen (was <duthen@cegelec-red.fr>) |
| @@ -10,12 +10,12 @@ | |||
| 10 | ;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multi-byte characters) | 10 | ;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multi-byte characters) |
| 11 | ;; Vinicius Jose Latorre <viniciusjl@ig.com.br> | 11 | ;; Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| 12 | ;; Keywords: wp, print, PostScript | 12 | ;; Keywords: wp, print, PostScript |
| 13 | ;; Time-stamp: <2004/07/21 23:12:05 vinicius> | 13 | ;; Time-stamp: <2005/03/19 00:40:12 vinicius> |
| 14 | ;; Version: 6.6.5 | 14 | ;; Version: 6.6.6 |
| 15 | ;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/ | 15 | ;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/ |
| 16 | 16 | ||
| 17 | (defconst ps-print-version "6.6.5" | 17 | (defconst ps-print-version "6.6.6" |
| 18 | "ps-print.el, v 6.6.5 <2004/07/21 vinicius> | 18 | "ps-print.el, v 6.6.6 <2004/07/21 vinicius> |
| 19 | 19 | ||
| 20 | Vinicius's last change version -- this file may have been edited as part of | 20 | Vinicius's last change version -- this file may have been edited as part of |
| 21 | Emacs without changes to the version number. When reporting bugs, please also | 21 | Emacs without changes to the version number. When reporting bugs, please also |
| @@ -4831,7 +4831,7 @@ page-height == ((floor print-height ((th + ls) * zh)) * ((th + ls) * zh)) - th | |||
| 4831 | ((stringp (car content)) | 4831 | ((stringp (car content)) |
| 4832 | (car content)) | 4832 | (car content)) |
| 4833 | ;; function symbol | 4833 | ;; function symbol |
| 4834 | ((and (symbolp (car content)) (fboundp (car content))) | 4834 | ((functionp (car content)) |
| 4835 | (concat "(" (funcall (car content)) ")")) | 4835 | (concat "(" (funcall (car content)) ")")) |
| 4836 | ;; variable symbol | 4836 | ;; variable symbol |
| 4837 | ((and (symbolp (car content)) (boundp (car content))) | 4837 | ((and (symbolp (car content)) (boundp (car content))) |
| @@ -4869,7 +4869,7 @@ page-height == ((floor print-height ((th + ls) * zh)) * ((th + ls) * zh)) - th | |||
| 4869 | 4869 | ||
| 4870 | ;; Functions are called -- they should return strings; they will be inserted | 4870 | ;; Functions are called -- they should return strings; they will be inserted |
| 4871 | ;; as strings and the PS string delimiters added. | 4871 | ;; as strings and the PS string delimiters added. |
| 4872 | ((and (symbolp content) (fboundp content)) | 4872 | ((functionp content) |
| 4873 | (ps-output-string (ps-mule-encode-header-string (funcall content) | 4873 | (ps-output-string (ps-mule-encode-header-string (funcall content) |
| 4874 | fonttag))) | 4874 | fonttag))) |
| 4875 | 4875 | ||