comparison lisp/ps-print.el @ 23484:d13d8b3b3d69

(ps-mule-chars-in-string): No need to use sref. (ps-mule-string-char): No need to use sref. (ps-mule-next-index): No need to use sref.
author Richard M. Stallman <rms@gnu.org>
date Sat, 17 Oct 1998 19:51:34 +0000
parents 969f4c2e38c0
children d8a958630c9d
comparison
equal deleted inserted replaced
23483:abcdf0c8e98d 23484:d13d8b3b3d69
2815 (defun charset-after (&optional arg) 2815 (defun charset-after (&optional arg)
2816 (char-charset (char-after arg))) 2816 (char-charset (char-after arg)))
2817 (defun ps-mule-next-point (arg) 2817 (defun ps-mule-next-point (arg)
2818 (save-excursion (goto-char arg) (forward-char 1) (point))) 2818 (save-excursion (goto-char arg) (forward-char 1) (point)))
2819 (defun ps-mule-chars-in-string (string) 2819 (defun ps-mule-chars-in-string (string)
2820 (/ (length string) (char-bytes (sref string 0)))) 2820 (length string))
2821 (defalias 'ps-mule-string-char 'sref) 2821 (defalias 'ps-mule-string-char 'aref)
2822 (defun ps-mule-next-index (str i) 2822 (defun ps-mule-next-index (str i)
2823 (+ i (char-bytes (sref str i))))) 2823 (1+ i)))
2824 ) 2824 )
2825 2825
2826 (defvar ps-mule-font-info-database 2826 (defvar ps-mule-font-info-database
2827 '((latin-iso8859-1 2827 '((latin-iso8859-1
2828 (normal nil nil iso-latin-1))) 2828 (normal nil nil iso-latin-1)))