Mercurial > emacs
comparison lisp/ps-print.el @ 33579:952f2b202a9a
Minor fixes from author.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 17 Nov 2000 22:49:45 +0000 |
parents | 75b72848ba05 |
children | 0083bc743c14 |
comparison
equal
deleted
inserted
replaced
33578:2d5a46f974fa | 33579:952f2b202a9a |
---|---|
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, 2000 Free Software Foundation, Inc. | 3 ;; Copyright (C) 1993-2000 Free Software Foundation, Inc. |
4 | 4 |
5 ;; Author: Jim Thompson (was <thompson@wg2.waii.com>) | 5 ;; Author: Jim Thompson (was <thompson@wg2.waii.com>) |
6 ;; Author: Jacques Duthen (was <duthen@cegelec-red.fr>) | 6 ;; Author: Jacques Duthen (was <duthen@cegelec-red.fr>) |
7 ;; Author: Vinicius Jose Latorre <vinicius@cpqd.com.br> | 7 ;; Author: Vinicius Jose Latorre <vinicius@cpqd.com.br> |
8 ;; Author: Kenichi Handa <handa@etl.go.jp> (multi-byte characters) | 8 ;; Author: Kenichi Handa <handa@etl.go.jp> (multi-byte characters) |
12 ;; Time-stamp: <2000/11/01 14:39:00 vinicius> | 12 ;; Time-stamp: <2000/11/01 14:39:00 vinicius> |
13 ;; Version: 6.3.1 | 13 ;; Version: 6.3.1 |
14 ;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/ | 14 ;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/ |
15 | 15 |
16 (defconst ps-print-version "6.3.1" | 16 (defconst ps-print-version "6.3.1" |
17 "ps-print.el, v 6.3.1 <2000/10/30 vinicius> | 17 "ps-print.el, v 6.3.1 <2000/11/01 vinicius> |
18 | 18 |
19 Vinicius's last change version -- this file may have been edited as part of | 19 Vinicius's last change version -- this file may have been edited as part of |
20 Emacs without changes to the version number. When reporting bugs, please also | 20 Emacs without changes to the version number. When reporting bugs, please also |
21 report the version of Emacs, if any, that ps-print was distributed with. | 21 report the version of Emacs, if any, that ps-print was distributed with. |
22 | 22 |
2960 (if (< emacs-minor-version 12) | 2960 (if (< emacs-minor-version 12) |
2961 (setq ps-print-color-p nil)) | 2961 (setq ps-print-color-p nil)) |
2962 (require 'faces)) ; face-font, face-underline-p, | 2962 (require 'faces)) ; face-font, face-underline-p, |
2963 ; x-font-regexp | 2963 ; x-font-regexp |
2964 | 2964 |
2965 | |
2965 ;; Return t if the device (which can be changed during an emacs session) | 2966 ;; Return t if the device (which can be changed during an emacs session) |
2966 ;; can handle colors. | 2967 ;; can handle colors. |
2967 ;; This function is not yet implemented for GNU emacs. | 2968 ;; This function is not yet implemented for GNU emacs. |
2968 (cond ((and (eq ps-print-emacs-type 'xemacs) | 2969 (cond ((and (eq ps-print-emacs-type 'xemacs) |
2969 (>= emacs-minor-version 12)) ; xemacs | 2970 (>= emacs-minor-version 12)) ; xemacs |
3026 ) | 3027 ) |
3027 ; xemacs | 3028 ; xemacs |
3028 ; lucid | 3029 ; lucid |
3029 (t ; epoch | 3030 (t ; epoch |
3030 | 3031 |
3031 (or (ps-x-find-coding-system 'raw-text-unix) | 3032 (and (fboundp 'find-coding-system) |
3032 (ps-x-copy-coding-system 'no-conversion-unix 'raw-text-unix)) | 3033 (or (ps-x-find-coding-system 'raw-text-unix) |
3034 (ps-x-copy-coding-system 'no-conversion-unix 'raw-text-unix))) | |
3033 | 3035 |
3034 (defun ps-color-values (x-color) | 3036 (defun ps-color-values (x-color) |
3035 (let ((color (ps-xemacs-color-name x-color))) | 3037 (let ((color (ps-xemacs-color-name x-color))) |
3036 (cond | 3038 (cond |
3037 ((fboundp 'x-color-values) | 3039 ((fboundp 'x-color-values) |