diff options
| author | Karl Heuer | 1998-09-23 22:11:56 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-09-23 22:11:56 +0000 |
| commit | c82b4a75210db3affae03f2382a349863abd5bf4 (patch) | |
| tree | f3400e1efdd623e0cc9d674bb630a4700b303c13 | |
| parent | a73a57bca1820e6c723601798e4f83f0b97680a9 (diff) | |
| download | emacs-c82b4a75210db3affae03f2382a349863abd5bf4.tar.gz emacs-c82b4a75210db3affae03f2382a349863abd5bf4.zip | |
Skip invisible overlay.
(ps-print-version): New version number (4.1) and doc fix.
(ps-generate-postscript-with-faces): Skip invisible overlay.
| -rw-r--r-- | lisp/ps-print.el | 45 |
1 files changed, 17 insertions, 28 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index 78f33149494..8b62a7b2e35 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -9,11 +9,11 @@ | |||
| 9 | ;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multibyte characters) | 9 | ;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multibyte characters) |
| 10 | ;; Maintainer: Vinicius Jose Latorre <vinicius@cpqd.com.br> | 10 | ;; Maintainer: Vinicius Jose Latorre <vinicius@cpqd.com.br> |
| 11 | ;; Keywords: print, PostScript | 11 | ;; Keywords: print, PostScript |
| 12 | ;; Time-stamp: <98/08/19 11:10:03 vinicius> | 12 | ;; Time-stamp: <98/09/18 9:51:23 vinicius> |
| 13 | ;; Version: 4.0 | 13 | ;; Version: 4.1 |
| 14 | 14 | ||
| 15 | (defconst ps-print-version "4.0" | 15 | (defconst ps-print-version "4.1" |
| 16 | "ps-print.el, v 4.0 <98/08/19 vinicius> | 16 | "ps-print.el, v 4.1 <98/09/18 vinicius> |
| 17 | 17 | ||
| 18 | Vinicius's last change version -- this file may have been edited as part of | 18 | Vinicius's last change version -- this file may have been edited as part of |
| 19 | Emacs without changes to the version number. When reporting bugs, | 19 | Emacs without changes to the version number. When reporting bugs, |
| @@ -377,21 +377,21 @@ Please send all bug fixes and enhancements to | |||
| 377 | ;; | 377 | ;; |
| 378 | ;; Valid values for `ps-print-control-characters' are: | 378 | ;; Valid values for `ps-print-control-characters' are: |
| 379 | ;; | 379 | ;; |
| 380 | ;; 8-bit This is the value to use when you want an ascii encoding of | 380 | ;; 8-bit This is the value to use when you want an ASCII encoding of |
| 381 | ;; any control or non-ascii character. Control characters are | 381 | ;; any control or non-ASCII character. Control characters are |
| 382 | ;; encoded as "^D", and non-ascii characters have an | 382 | ;; encoded as "^D", and non-ASCII characters have an |
| 383 | ;; octal encoding. | 383 | ;; octal encoding. |
| 384 | ;; | 384 | ;; |
| 385 | ;; control-8-bit This is the value to use when you want an ascii encoding of | 385 | ;; control-8-bit This is the value to use when you want an ASCII encoding of |
| 386 | ;; any control character, whether it is 7 or 8-bit. | 386 | ;; any control character, whether it is 7 or 8-bit. |
| 387 | ;; European 8-bits accented characters are printed according | 387 | ;; European 8-bits accented characters are printed according |
| 388 | ;; the current font. | 388 | ;; the current font. |
| 389 | ;; | 389 | ;; |
| 390 | ;; control Only ascii control characters have an ascii encoding. | 390 | ;; control Only ASCII control characters have an ASCII encoding. |
| 391 | ;; European 8-bits accented characters are printed according | 391 | ;; European 8-bits accented characters are printed according |
| 392 | ;; the current font. | 392 | ;; the current font. |
| 393 | ;; | 393 | ;; |
| 394 | ;; nil No ascii encoding. Any character is printed according the | 394 | ;; nil No ASCII encoding. Any character is printed according the |
| 395 | ;; current font. | 395 | ;; current font. |
| 396 | ;; | 396 | ;; |
| 397 | ;; Any other value is treated as nil. | 397 | ;; Any other value is treated as nil. |
| @@ -1065,7 +1065,7 @@ Valid values are: | |||
| 1065 | 1065 | ||
| 1066 | `8-bit' This is the value to use when you want an ASCII encoding of | 1066 | `8-bit' This is the value to use when you want an ASCII encoding of |
| 1067 | any control or non-ASCII character. Control characters are | 1067 | any control or non-ASCII character. Control characters are |
| 1068 | encoded as \"^D\", and non-ascii characters have an | 1068 | encoded as \"^D\", and non-ASCII characters have an |
| 1069 | octal encoding. | 1069 | octal encoding. |
| 1070 | 1070 | ||
| 1071 | `control-8-bit' This is the value to use when you want an ASCII encoding of | 1071 | `control-8-bit' This is the value to use when you want an ASCII encoding of |
| @@ -1073,7 +1073,7 @@ Valid values are: | |||
| 1073 | European 8-bits accented characters are printed according | 1073 | European 8-bits accented characters are printed according |
| 1074 | the current font. | 1074 | the current font. |
| 1075 | 1075 | ||
| 1076 | `control' Only ascii control characters have an ASCII encoding. | 1076 | `control' Only ASCII control characters have an ASCII encoding. |
| 1077 | European 8-bits accented characters are printed according | 1077 | European 8-bits accented characters are printed according |
| 1078 | the current font. | 1078 | the current font. |
| 1079 | 1079 | ||
| @@ -2897,8 +2897,6 @@ Currently, data for Japanese and Korean PostScript printers are listed.") | |||
| 2897 | (bold bdf "etl16b-latin1.bdf" iso-latin-1 1) | 2897 | (bold bdf "etl16b-latin1.bdf" iso-latin-1 1) |
| 2898 | (italic bdf "etl16i-latin1.bdf" iso-latin-1 1) | 2898 | (italic bdf "etl16i-latin1.bdf" iso-latin-1 1) |
| 2899 | (bold-italic bdf "etl16bi-latin1.bdf" iso-latin-1 1)) | 2899 | (bold-italic bdf "etl16bi-latin1.bdf" iso-latin-1 1)) |
| 2900 | (latin-iso8859-1 | ||
| 2901 | (normal nil nil iso-latin-1)) | ||
| 2902 | (latin-iso8859-2 | 2900 | (latin-iso8859-2 |
| 2903 | (normal bdf "etl24-latin2.bdf" iso-latin-2 1)) | 2901 | (normal bdf "etl24-latin2.bdf" iso-latin-2 1)) |
| 2904 | (latin-iso8859-3 | 2902 | (latin-iso8859-3 |
| @@ -4040,7 +4038,7 @@ page-height == bm + print-height + tm - ho - hh | |||
| 4040 | (save-excursion ;insert string | 4038 | (save-excursion ;insert string |
| 4041 | (insert (string-as-unibyte string))) | 4039 | (insert (string-as-unibyte string))) |
| 4042 | ;; Find and quote special characters as necessary for PS | 4040 | ;; Find and quote special characters as necessary for PS |
| 4043 | ;; This skips everything except control chars, nonascii chars, (, ) and \. | 4041 | ;; This skips everything except control chars, non-ASCII chars, (, ) and \. |
| 4044 | (while (progn (skip-chars-forward " -'*-[]-~") (not (eobp))) | 4042 | (while (progn (skip-chars-forward " -'*-[]-~") (not (eobp))) |
| 4045 | (let ((special (following-char))) | 4043 | (let ((special (following-char))) |
| 4046 | (delete-char 1) | 4044 | (delete-char 1) |
| @@ -4276,6 +4274,7 @@ page-height == bm + print-height + tm - ho - hh | |||
| 4276 | (setq tail (cdr tail))) | 4274 | (setq tail (cdr tail))) |
| 4277 | (nreverse new))) | 4275 | (nreverse new))) |
| 4278 | 4276 | ||
| 4277 | |||
| 4279 | ;; Find the first occurrence of ITEM in LIST. | 4278 | ;; Find the first occurrence of ITEM in LIST. |
| 4280 | ;; Return the index of the matching item, or nil if not found. | 4279 | ;; Return the index of the matching item, or nil if not found. |
| 4281 | ;; Elements are compared with `eq'. | 4280 | ;; Elements are compared with `eq'. |
| @@ -4976,17 +4975,7 @@ If FACE is not a valid face name, it is used default face." | |||
| 4976 | (let ((property-change from) | 4975 | (let ((property-change from) |
| 4977 | (overlay-change from) | 4976 | (overlay-change from) |
| 4978 | (save-buffer-invisibility-spec buffer-invisibility-spec) | 4977 | (save-buffer-invisibility-spec buffer-invisibility-spec) |
| 4979 | (buffer-invisibility-spec | 4978 | (buffer-invisibility-spec nil)) |
| 4980 | (and (listp buffer-invisibility-spec) | ||
| 4981 | (let ((seq buffer-invisibility-spec) | ||
| 4982 | elt res) | ||
| 4983 | (while seq | ||
| 4984 | (setq elt (car seq) | ||
| 4985 | seq (cdr seq)) | ||
| 4986 | (or (eq elt 'invisible) | ||
| 4987 | (and (listp elt) (eq (car elt) 'invisible)) | ||
| 4988 | (setq res (cons elt res)))) | ||
| 4989 | (nreverse seq))))) | ||
| 4990 | (while (< from to) | 4979 | (while (< from to) |
| 4991 | (if (< property-change to) ; Don't search for property change | 4980 | (if (< property-change to) ; Don't search for property change |
| 4992 | ; unless previous search succeeded. | 4981 | ; unless previous search succeeded. |
| @@ -5032,8 +5021,8 @@ If FACE is not a valid face name, it is used default face." | |||
| 5032 | save-buffer-invisibility-spec) | 5021 | save-buffer-invisibility-spec) |
| 5033 | (assq overlay-invisible | 5022 | (assq overlay-invisible |
| 5034 | save-buffer-invisibility-spec))) | 5023 | save-buffer-invisibility-spec))) |
| 5035 | nil) | 5024 | 'emacs--invisible--face) |
| 5036 | ((and face overlay-face))) | 5025 | (face overlay-face)) |
| 5037 | face-priority overlay-priority))) | 5026 | face-priority overlay-priority))) |
| 5038 | (setq overlays (cdr overlays)))) | 5027 | (setq overlays (cdr overlays)))) |
| 5039 | ;; Plot up to this record. | 5028 | ;; Plot up to this record. |