aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-10-02 18:35:07 -0700
committerGlenn Morris2010-10-02 18:35:07 -0700
commitef47f179dc29110301c38699eb0fdcf9a9539a75 (patch)
tree8195d83b9693d87bd7e3ed083a66a531243aab05
parent12421f1c89bcf3fdd061a203ea715f6151d47250 (diff)
downloademacs-ef47f179dc29110301c38699eb0fdcf9a9539a75.tar.gz
emacs-ef47f179dc29110301c38699eb0fdcf9a9539a75.zip
Remove some unused ps-def definitions.
* lisp/ps-def.el (leading-code-private-22, charset-bytes, charset-id) (charset-width, find-charset-region, chars-in-region, forward-point) (encode-coding-string, coding-system-p, ccl-execute-on-string) (define-ccl-program, multibyte-string-p, string-make-multibyte): Remove compatibility cruft (none of these are used by ps*.el).
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/ps-def.el65
2 files changed, 8 insertions, 65 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d2a75cdc227..c4e1ab16ce1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12010-10-03 Glenn Morris <rgm@gnu.org>
2
3 * ps-def.el (leading-code-private-22, charset-bytes, charset-id)
4 (charset-width, find-charset-region, chars-in-region, forward-point)
5 (encode-coding-string, coding-system-p, ccl-execute-on-string)
6 (define-ccl-program, multibyte-string-p, string-make-multibyte):
7 Remove compatibility cruft (none of these are used by ps*.el).
8
12010-10-03 Kevin Rodgers <kevin.d.rodgers@gmail.com> 92010-10-03 Kevin Rodgers <kevin.d.rodgers@gmail.com>
2 10
3 * subr.el (booleanp): Return t instead of a list (Bug#7086). 11 * subr.el (booleanp): Return t instead of a list (Bug#7086).
diff --git a/lisp/ps-def.el b/lisp/ps-def.el
index a9151683c1b..9122b8fdc9a 100644
--- a/lisp/ps-def.el
+++ b/lisp/ps-def.el
@@ -50,90 +50,25 @@
50(cond 50(cond
51 ((featurep 'xemacs) ; XEmacs 51 ((featurep 'xemacs) ; XEmacs
52 52
53
54 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 53 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
55 ;; ps-bdf 54 ;; ps-bdf
56 55
57 (defvar installation-directory nil) 56 (defvar installation-directory nil)
58 (defvar coding-system-for-read) 57 (defvar coding-system-for-read)
59 58
60
61 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 59 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
62 ;; ps-mule 60 ;; ps-mule
63 61
64 (defvar leading-code-private-22 157)
65
66 (or (fboundp 'charset-bytes)
67 (defun charset-bytes (charset) 1)) ; ascii
68
69 (or (fboundp 'charset-dimension) 62 (or (fboundp 'charset-dimension)
70 (defun charset-dimension (charset) 1)) ; ascii 63 (defun charset-dimension (charset) 1)) ; ascii
71 64
72 (or (fboundp 'charset-id)
73 (defun charset-id (charset) 0)) ; ascii
74
75 (or (fboundp 'charset-width)
76 (defun charset-width (charset) 1)) ; ascii
77
78 (or (fboundp 'find-charset-region)
79 (defun find-charset-region (beg end &optional table)
80 (list 'ascii)))
81
82 (or (fboundp 'char-width) 65 (or (fboundp 'char-width)
83 (defun char-width (char) 1)) ; ascii 66 (defun char-width (char) 1)) ; ascii
84 67
85 (or (fboundp 'chars-in-region)
86 (defun chars-in-region (beg end)
87 (- (max beg end) (min beg end))))
88
89 (or (fboundp 'forward-point)
90 (defun forward-point (arg)
91 (save-excursion
92 (let ((count (abs arg))
93 (step (if (zerop arg)
94 0
95 (/ arg arg))))
96 (while (and (> count 0)
97 (< (point-min) (point)) (< (point) (point-max)))
98 (forward-char step)
99 (setq count (1- count)))
100 (+ (point) (* count step))))))
101
102 (or (fboundp 'encode-coding-string)
103 (defun encode-coding-string (string coding-system &optional nocopy)
104 (if nocopy
105 string
106 (copy-sequence string))))
107
108 (or (fboundp 'coding-system-p)
109 (defun coding-system-p (obj) nil))
110
111 (or (fboundp 'ccl-execute-on-string)
112 (defun ccl-execute-on-string (ccl-prog status str
113 &optional contin unibyte-p)
114 str))
115
116 (or (fboundp 'define-ccl-program)
117 (defmacro define-ccl-program (name ccl-program &optional doc)
118 `(defconst ,name nil ,doc)))
119
120 (or (fboundp 'multibyte-string-p)
121 (defun multibyte-string-p (str)
122 (let ((len (length str))
123 (i 0)
124 multibyte)
125 (while (and (< i len) (not (setq multibyte (> (aref str i) 255))))
126 (setq i (1+ i)))
127 multibyte)))
128
129 (or (fboundp 'string-make-multibyte)
130 (defalias 'string-make-multibyte 'copy-sequence))
131
132 (or (fboundp 'encode-char) 68 (or (fboundp 'encode-char)
133 (defun encode-char (ch ccs) 69 (defun encode-char (ch ccs)
134 ch)) 70 ch))
135 71
136
137 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 72 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
138 ;; ps-print 73 ;; ps-print
139 74