diff options
| author | Richard M. Stallman | 1995-08-04 19:59:57 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-08-04 19:59:57 +0000 |
| commit | 6770a60f47dfbf67c0fdd9ffc0ac74f67d044185 (patch) | |
| tree | 8f833fc8ea87a8bcd0f69897cb8ef6145f208f44 | |
| parent | 30040449d82de5d70bcaf97cfe80e5091f2fbee9 (diff) | |
| download | emacs-6770a60f47dfbf67c0fdd9ffc0ac74f67d044185.tar.gz emacs-6770a60f47dfbf67c0fdd9ffc0ac74f67d044185.zip | |
(ps-print-emacs-type): Renamed from emacs-type.
| -rw-r--r-- | lisp/ps-print.el | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index b4f82aaa32e..05c92c17fad 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -706,15 +706,14 @@ number, prompt the user for the name of the file to save in." | |||
| 706 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 706 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 707 | ;; Utility functions and variables: | 707 | ;; Utility functions and variables: |
| 708 | 708 | ||
| 709 | (if (featurep 'emacs-vers) | 709 | (defvar ps-print-emacs-type |
| 710 | nil | 710 | (cond ((string-match "XEmacs" emacs-version) 'xemacs) |
| 711 | (defvar emacs-type (cond ((string-match "XEmacs" emacs-version) 'xemacs) | 711 | ((string-match "Lucid" emacs-version) 'lucid) |
| 712 | ((string-match "Lucid" emacs-version) 'lucid) | 712 | ((string-match "Epoch" emacs-version) 'epoch) |
| 713 | ((string-match "Epoch" emacs-version) 'epoch) | 713 | (t 'emacs))) |
| 714 | (t 'emacs)))) | 714 | |
| 715 | 715 | (if (or (eq ps-print-emacs-type 'lucid) | |
| 716 | (if (or (eq emacs-type 'lucid) | 716 | (eq ps-print-emacs-type 'xemacs)) |
| 717 | (eq emacs-type 'xemacs)) | ||
| 718 | (if (< emacs-minor-version 12) | 717 | (if (< emacs-minor-version 12) |
| 719 | (setq ps-print-color-p nil)) | 718 | (setq ps-print-color-p nil)) |
| 720 | (require 'faces)) ; face-font, face-underline-p, | 719 | (require 'faces)) ; face-font, face-underline-p, |
| @@ -1104,7 +1103,7 @@ StandardEncoding 46 82 getinterval aload pop | |||
| 1104 | 1103 | ||
| 1105 | (defvar ps-razchunk 0) | 1104 | (defvar ps-razchunk 0) |
| 1106 | 1105 | ||
| 1107 | (defvar ps-color-format (if (eq emacs-type 'emacs) | 1106 | (defvar ps-color-format (if (eq ps-print-emacs-type 'emacs) |
| 1108 | 1107 | ||
| 1109 | ;;Emacs understands the %f format; we'll | 1108 | ;;Emacs understands the %f format; we'll |
| 1110 | ;;use it to limit color RGB values to | 1109 | ;;use it to limit color RGB values to |
| @@ -1635,14 +1634,14 @@ EndDSCPage\n")) | |||
| 1635 | (memq face kind-list)))) | 1634 | (memq face kind-list)))) |
| 1636 | 1635 | ||
| 1637 | (defun ps-face-bold-p (face) | 1636 | (defun ps-face-bold-p (face) |
| 1638 | (if (eq emacs-type 'emacs) | 1637 | (if (eq ps-print-emacs-type 'emacs) |
| 1639 | (ps-emacs-face-kind-p face 'bold "-\\(bold\\|demibold\\)-" | 1638 | (ps-emacs-face-kind-p face 'bold "-\\(bold\\|demibold\\)-" |
| 1640 | ps-bold-faces) | 1639 | ps-bold-faces) |
| 1641 | (ps-xemacs-face-kind-p face 'WEIGHT_NAME "bold\\|demibold" | 1640 | (ps-xemacs-face-kind-p face 'WEIGHT_NAME "bold\\|demibold" |
| 1642 | ps-bold-faces))) | 1641 | ps-bold-faces))) |
| 1643 | 1642 | ||
| 1644 | (defun ps-face-italic-p (face) | 1643 | (defun ps-face-italic-p (face) |
| 1645 | (if (eq emacs-type 'emacs) | 1644 | (if (eq ps-print-emacs-type 'emacs) |
| 1646 | (ps-emacs-face-kind-p face 'italic "-[io]-" ps-italic-faces) | 1645 | (ps-emacs-face-kind-p face 'italic "-[io]-" ps-italic-faces) |
| 1647 | (or | 1646 | (or |
| 1648 | (ps-xemacs-face-kind-p face 'ANGLE_NAME "i\\|o" ps-italic-faces) | 1647 | (ps-xemacs-face-kind-p face 'ANGLE_NAME "i\\|o" ps-italic-faces) |
| @@ -1716,7 +1715,7 @@ EndDSCPage\n")) | |||
| 1716 | (let ((face 'default) | 1715 | (let ((face 'default) |
| 1717 | (position to)) | 1716 | (position to)) |
| 1718 | (ps-print-ensure-fontified from to) | 1717 | (ps-print-ensure-fontified from to) |
| 1719 | (cond ((or (eq emacs-type 'lucid) (eq emacs-type 'xemacs)) | 1718 | (cond ((or (eq ps-print-emacs-type 'lucid) (eq ps-print-emacs-type 'xemacs)) |
| 1720 | ;; Build the list of extents... | 1719 | ;; Build the list of extents... |
| 1721 | (let ((a (cons 'dummy nil)) | 1720 | (let ((a (cons 'dummy nil)) |
| 1722 | record type extent extent-list) | 1721 | record type extent extent-list) |
| @@ -1767,7 +1766,7 @@ EndDSCPage\n")) | |||
| 1767 | (setq from position) | 1766 | (setq from position) |
| 1768 | (setq a (cdr a))))) | 1767 | (setq a (cdr a))))) |
| 1769 | 1768 | ||
| 1770 | ((eq emacs-type 'emacs) | 1769 | ((eq ps-print-emacs-type 'emacs) |
| 1771 | (let ((property-change from) | 1770 | (let ((property-change from) |
| 1772 | (overlay-change from)) | 1771 | (overlay-change from)) |
| 1773 | (while (< from to) | 1772 | (while (< from to) |
| @@ -1924,10 +1923,13 @@ EndDSCPage\n")) | |||
| 1924 | ;; WARNING!!! The following code is *sample* code only. Don't use it | 1923 | ;; WARNING!!! The following code is *sample* code only. Don't use it |
| 1925 | ;; unless you understand what it does! | 1924 | ;; unless you understand what it does! |
| 1926 | 1925 | ||
| 1927 | (defmacro ps-prsc () (list 'if (list 'eq 'emacs-type ''emacs) [f22] ''f22)) | 1926 | (defmacro ps-prsc () (list 'if (list 'eq 'ps-print-emacs-type ''emacs) |
| 1928 | (defmacro ps-c-prsc () (list 'if (list 'eq 'emacs-type ''emacs) [C-f22] | 1927 | [f22] ''f22)) |
| 1928 | (defmacro ps-c-prsc () (list 'if (list 'eq 'ps-print-emacs-type ''emacs) | ||
| 1929 | [C-f22] | ||
| 1929 | ''(control f22))) | 1930 | ''(control f22))) |
| 1930 | (defmacro ps-s-prsc () (list 'if (list 'eq 'emacs-type ''emacs) [S-f22] | 1931 | (defmacro ps-s-prsc () (list 'if (list 'eq 'ps-print-emacs-type ''emacs) |
| 1932 | [S-f22] | ||
| 1931 | ''(shift f22))) | 1933 | ''(shift f22))) |
| 1932 | 1934 | ||
| 1933 | ;; Look in an article or mail message for the Subject: line. To be | 1935 | ;; Look in an article or mail message for the Subject: line. To be |