aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorVinicius Jose Latorre2006-11-30 10:03:25 +0000
committerVinicius Jose Latorre2006-11-30 10:03:25 +0000
commit0723946185f3371cfb0bb3450d4795955be28970 (patch)
tree27c3f654e8228c710ab005009f286d05b492f35f /lisp
parent65dc67a94fd2e59d06ac2b9b693844dd5fa2c237 (diff)
downloademacs-0723946185f3371cfb0bb3450d4795955be28970.tar.gz
emacs-0723946185f3371cfb0bb3450d4795955be28970.zip
Fix maintainer email. Emacs 20/21 compatibility.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog12
-rw-r--r--lisp/ps-bdf.el2
-rw-r--r--lisp/ps-mule.el39
-rw-r--r--lisp/ps-print.el16
4 files changed, 58 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index aff4ab051e2..aadf13bedbe 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,15 @@
12006-11-29 Vinicius Jose Latorre <viniciusjl@ig.com.br>
2
3 * ps-bdf.el : Fix maintainer email.
4
5 * ps-mule.el : Fix maintainer email. Define functions for Emacs 20
6 compatibility.
7
8 * ps-print.el : Fix maintainer email. Define functions for Emacs 20 &
9 21 compatibility.
10 (ps-print-quote): Replace '?\s' by '?\ ' to keep compatibility with
11 Emacs 20 & 21.
12
12006-11-29 J.D. Smith <jdsmith@as.arizona.edu> 132006-11-29 J.D. Smith <jdsmith@as.arizona.edu>
2 14
3 * progmodes/idlwave.el (idlwave-auto-fill): Remove 15 * progmodes/idlwave.el (idlwave-auto-fill): Remove
diff --git a/lisp/ps-bdf.el b/lisp/ps-bdf.el
index 0c3736fab9e..154566312ab 100644
--- a/lisp/ps-bdf.el
+++ b/lisp/ps-bdf.el
@@ -6,7 +6,7 @@
6;; Registration Number H14PRO021 6;; Registration Number H14PRO021
7 7
8;; Keywords: wp, BDF, font, PostScript 8;; Keywords: wp, BDF, font, PostScript
9;; Maintainer: Kenichi Handa <handa@etl.go.jp> 9;; Maintainer: Kenichi Handa <handa@m17n.org>
10;; Time-stamp: <2003/07/11 21:13:44 vinicius> 10;; Time-stamp: <2003/07/11 21:13:44 vinicius>
11 11
12;; This file is part of GNU Emacs. 12;; This file is part of GNU Emacs.
diff --git a/lisp/ps-mule.el b/lisp/ps-mule.el
index c4a19cd3871..5d2e3be573f 100644
--- a/lisp/ps-mule.el
+++ b/lisp/ps-mule.el
@@ -3,12 +3,12 @@
3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4;; 2005, 2006 Free Software Foundation, Inc. 4;; 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Author: Vinicius Jose Latorre <vinicius@cpqd.com.br> 6;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br>
7;; Kenichi Handa <handa@etl.go.jp> (multi-byte characters) 7;; Kenichi Handa <handa@m17n.org> (multi-byte characters)
8;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multi-byte characters) 8;; Maintainer: Kenichi Handa <handa@m17n.org> (multi-byte characters)
9;; Vinicius Jose Latorre <vinicius@cpqd.com.br> 9;; Vinicius Jose Latorre <viniciusjl@ig.com.br>
10;; Keywords: wp, print, PostScript, multibyte, mule 10;; Keywords: wp, print, PostScript, multibyte, mule
11;; Time-stamp: <2003/05/14 22:19:41 vinicius> 11;; Time-stamp: <2006/11/11 16:58:10 vinicius>
12 12
13;; This file is part of GNU Emacs. 13;; This file is part of GNU Emacs.
14 14
@@ -163,7 +163,34 @@
163 (defalias 'string-make-multibyte 'copy-sequence)) 163 (defalias 'string-make-multibyte 'copy-sequence))
164 (or (fboundp 'encode-char) 164 (or (fboundp 'encode-char)
165 (defun encode-char (ch ccs) 165 (defun encode-char (ch ccs)
166 ch))) 166 ch))
167
168 ;; For Emacs 20 compatibility
169 (if (and (boundp 'mule-version)
170 (string< (symbol-value 'mule-version) "5.0"))
171 ;; mule package is loaded and mule version is lesser than 5.0
172 (progn
173 (or (fboundp 'encode-composition-rule)
174 (defun encode-composition-rule (rule)
175 (if (= (car rule) 4) (setcar rule 10))
176 (if (= (cdr rule) 4) (setcdr rule 10))
177 (+ (* (car rule) 12) (cdr rule))))
178 (or (fboundp 'find-composition)
179 (defun find-composition (pos &rest ignore)
180 (let ((ch (char-after pos)))
181 (and ch (eq (char-charset ch) 'composition)
182 (let ((components (decompose-composite-char ch 'vector t)))
183 (list pos (ps-mule-next-point pos) components
184 (integerp (aref components 1)) nil
185 (char-width ch))))))))
186 ;; mule package isn't loaded
187 (or (fboundp 'encode-composition-rule)
188 (defun encode-composition-rule (rule)
189 130))
190 (or (fboundp 'find-composition)
191 (defun find-composition (pos &rest ignore)
192 nil))
193 ))
167 194
168 195
169;;;###autoload 196;;;###autoload
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 32f2b881890..27f727d743f 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -6,8 +6,8 @@
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>)
8;; Vinicius Jose Latorre <viniciusjl@ig.com.br> 8;; Vinicius Jose Latorre <viniciusjl@ig.com.br>
9;; Kenichi Handa <handa@etl.go.jp> (multi-byte characters) 9;; Kenichi Handa <handa@m17n.org> (multi-byte characters)
10;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multi-byte characters) 10;; Maintainer: Kenichi Handa <handa@m17n.org> (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: <2005/06/27 00:57:22 vinicius> 13;; Time-stamp: <2005/06/27 00:57:22 vinicius>
@@ -1545,7 +1545,13 @@ Please send all bug fixes and enhancements to
1545 (defun ps-face-background-name (face) 1545 (defun ps-face-background-name (face)
1546 (ps-xemacs-color-name (face-background face))) 1546 (ps-xemacs-color-name (face-background face)))
1547 ) 1547 )
1548 (t ; emacs 1548 ((<= emacs-major-version 21) ; emacs 20 & 21
1549 (defvar mark-active nil)
1550 (defun ps-mark-active-p ()
1551 mark-active)
1552 (defalias 'ps-face-foreground-name 'face-foreground)
1553 (defalias 'ps-face-background-name 'face-background))
1554 (t ; emacs 22 or higher
1549 (defvar mark-active nil) 1555 (defvar mark-active nil)
1550 (defun ps-mark-active-p () 1556 (defun ps-mark-active-p ()
1551 mark-active) 1557 mark-active)
@@ -3760,7 +3766,9 @@ If `ps-prefix-quote' is nil, it's set to t after generating string."
3760 "(setq ") 3766 "(setq ")
3761 key 3767 key
3762 (if (> col len) 3768 (if (> col len)
3763 (make-string (- col len) ?\s) 3769 ;; to keep compatibility with Emacs 20 & 21:
3770 ;; DO NOT REPLACE `?\ ' BY `?\s'
3771 (make-string (- col len) ?\ )
3764 " ") 3772 " ")
3765 (ps-value-string val)))) 3773 (ps-value-string val))))
3766 (t "") 3774 (t "")