diff options
author | Miles Bader <miles@gnu.org> | 2004-08-27 07:00:34 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2004-08-27 07:00:34 +0000 |
commit | b71f2b97d343dd5ec39b64b66de86051ee47eb3e (patch) | |
tree | 85e3d906c7ba13a3fd447ad054a430388386b748 /lisp/ps-mule.el | |
parent | 21b4a4fb21f6254fb37da88b0d5858575f953e22 (diff) | |
parent | 11d2e01ba3a82c41eec105df81260568f048e726 (diff) | |
download | emacs-b71f2b97d343dd5ec39b64b66de86051ee47eb3e.tar.gz |
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-32
Merge from emacs--cvs-trunk--0
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-486
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-487
Tweak permissions
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-488
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-489
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-490
Update from CVS: man/fixit.texi (Spelling): Fix typo.
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-491
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-494
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-495
Update from CVS: Add missing lisp/mh-e files
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-496
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-499
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-500
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-513
Update from CVS
Diffstat (limited to 'lisp/ps-mule.el')
-rw-r--r-- | lisp/ps-mule.el | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/lisp/ps-mule.el b/lisp/ps-mule.el index 1f43e011c62..65106948b67 100644 --- a/lisp/ps-mule.el +++ b/lisp/ps-mule.el @@ -204,69 +204,6 @@ Any other value is treated as nil." (const bdf-font-except-latin) (const :tag "nil" nil)) :group 'ps-print-font) - -(eval-and-compile - ;; For Emacs 20.2 and the earlier version. - (if (and (boundp 'mule-version) - (not (string< (symbol-value 'mule-version) "4.0"))) - ;; mule package is loaded - (progn - (defalias 'ps-mule-next-point '1+) - (defalias 'ps-mule-chars-in-string 'length) - (defalias 'ps-mule-string-char 'aref) - (defsubst ps-mule-next-index (str i) (1+ i))) - ;; mule package isn't loaded or mule version lesser than 4.0 - (defun ps-mule-next-point (arg) - (save-excursion (goto-char arg) (forward-char 1) (point))) - (defun ps-mule-chars-in-string (string) - (/ (length string) - (charset-bytes (char-charset (string-to-char string))))) - (defun ps-mule-string-char (string idx) - (string-to-char (substring string idx))) - (defun ps-mule-next-index (string i) - (+ i (charset-bytes (char-charset (string-to-char string))))) - ) - (if (boundp 'mule-version) - ;; For Emacs 20.4 and the earlier version. - (if (string< (symbol-value 'mule-version) "5.0") - ;; mule package is loaded and mule version is lesser than 5.0 - (progn - (defun encode-composition-rule (rule) - (if (= (car rule) 4) (setcar rule 10)) - (if (= (cdr rule) 4) (setcdr rule 10)) - (+ (* (car rule) 12) (cdr rule))) - (defun ps-mule-search-composition (from to) - (save-excursion - (goto-char from) - (search-forward "\200" to t))) - (defun ps-mule-get-composition (pos) - (let ((ch (char-after pos))) - (and ch (eq (char-charset ch) 'composition) - (let ((components - (decompose-composite-char ch 'vector t))) - (list pos (ps-mule-next-point pos) components - (integerp (aref components 1)) nil - (char-width ch))))))) - (defun ps-mule-search-composition (from to) - (let (cmp-info) - (while (and (< from to) - (setq cmp-info (find-composition from to)) - (not (nth 2 cmp-info))) - (setq from (nth 1 cmp-info))) - (< from to))) - (defun ps-mule-get-composition (pos) - (find-composition pos nil nil t))) - - ;; mule package isn't loaded - (or (fboundp 'encode-composition-rule) - (defun encode-composition-rule (rule) - 130)) - (defun ps-mule-search-composition (&rest ignore) - nil) - (defun ps-mule-get-composition (&rest ignore) - nil) - )) - (defvar ps-mule-font-info-database nil "Alist of charsets with the corresponding font information. |