aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/ps-mule.el16
2 files changed, 13 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b92af6254a0..cd04a63cc79 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-08-16 Vinicius Jose Latorre <vinicius@cpqd.com.br>
2
3 * ps-mule.el: (find-composition): Check if (char-after POS)
4 returns a valid character.
5
12001-08-16 Eli Zaretskii <eliz@is.elta.co.il> 62001-08-16 Eli Zaretskii <eliz@is.elta.co.il>
2 7
3 * hexl.el (hexl-mode, hexl-mode-exit): Adjust hexl-max-address and 8 * hexl.el (hexl-mode, hexl-mode-exit): Adjust hexl-max-address and
diff --git a/lisp/ps-mule.el b/lisp/ps-mule.el
index 91997c9610c..58f8de3d81f 100644
--- a/lisp/ps-mule.el
+++ b/lisp/ps-mule.el
@@ -7,7 +7,7 @@
7;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multi-byte characters) 7;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multi-byte characters)
8;; Vinicius Jose Latorre <vinicius@cpqd.com.br> 8;; Vinicius Jose Latorre <vinicius@cpqd.com.br>
9;; Keywords: wp, print, PostScript, multibyte, mule 9;; Keywords: wp, print, PostScript, multibyte, mule
10;; Time-stamp: <2001/08/07 13:50:53 vinicius> 10;; Time-stamp: <2001/08/15 15:34:11 vinicius>
11 11
12;; This file is part of GNU Emacs. 12;; This file is part of GNU Emacs.
13 13
@@ -242,11 +242,11 @@ Any other value is treated as nil."
242 (+ (* (car rule) 12) (cdr rule))) 242 (+ (* (car rule) 12) (cdr rule)))
243 (defun find-composition (pos &rest ignore) 243 (defun find-composition (pos &rest ignore)
244 (let ((ch (char-after pos))) 244 (let ((ch (char-after pos)))
245 (if (eq (char-charset ch) 'composition) 245 (and ch (eq (char-charset ch) 'composition)
246 (let ((components (decompose-composite-char ch 'vector t))) 246 (let ((components (decompose-composite-char ch 'vector t)))
247 (list pos (ps-mule-next-point pos) components 247 (list pos (ps-mule-next-point pos) components
248 (integerp (aref components 1)) nil 248 (integerp (aref components 1)) nil
249 (char-width ch))))))) 249 (char-width ch)))))))
250 ;; mule package isn't loaded 250 ;; mule package isn't loaded
251 (or (fboundp 'encode-composition-rule) 251 (or (fboundp 'encode-composition-rule)
252 (defun encode-composition-rule (rule) 252 (defun encode-composition-rule (rule)
@@ -1130,10 +1130,10 @@ the sequence."
1130 } ifelse } ifelse } ifelse 1130 } ifelse } ifelse } ifelse
1131 } forall ] /components exch def 1131 } forall ] /components exch def
1132 grestore 1132 grestore
1133 1133
1134 %% Reflect special effects. 1134 %% Reflect special effects.
1135 SpecialEffect 1135 SpecialEffect
1136 1136
1137 %% Draw components while ignoring effects other than shadow and outline. 1137 %% Draw components while ignoring effects other than shadow and outline.
1138 components ShowComponents 1138 components ShowComponents
1139 1139