aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2007-10-29 15:33:04 +0000
committerDan Nicolaescu2007-10-29 15:33:04 +0000
commit6546555e7d4beb565d3775f1c4fa6e3b5d9ace03 (patch)
treed742ec5a09e035a492b6e03a3207ab831bde604b
parentd9774611743fca896e2debd914bd303891674138 (diff)
downloademacs-6546555e7d4beb565d3775f1c4fa6e3b5d9ace03.tar.gz
emacs-6546555e7d4beb565d3775f1c4fa6e3b5d9ace03.zip
* calc/calc.el (calc-emacs-type-lucid): Remove.
(calc-digit-map, calcDigit-start, calc-read-key) (calc-clear-unread-commands): * calc/calc-ext.el (calc-user-key-map): Replace uses of calc-emacs-type-lucid with (featurep 'xemacs) * emulation/tpu-mapper.el: Replace tpu-lucid-emacs19-p with (featurep 'xemacs). (tpu-lucid-emacs19-p): Remove. (tpu-map-key): Make it a function instead of using fset. Inline tpu-emacs-map-key and tpu-lucid-map-key. Use featurep 'xemacs. (tpu-emacs-map-key, tpu-lucid-map-key): Remove. * ielm.el: Use featurep 'xemacs. * progmodes/cperl-mode.el (cperl-xemacs-p): Remove. (condition-case, cperl-can-font-lock, cperl-singly-quote-face) (cperl-define-key, cperl-mode-map, cperl-mode, cperl-init-faces) (cperl-write-tags, cperl-tags-hier-init, cperl-perldoc): Replace cperl-xemacs-p with (featurep 'xemacs). (font-lock-cache-position): Pacify byte compiler.
-rw-r--r--lisp/ChangeLog24
-rw-r--r--lisp/calc/calc-ext.el4
-rw-r--r--lisp/calc/calc.el15
-rw-r--r--lisp/emulation/tpu-mapper.el78
-rw-r--r--lisp/ielm.el2
-rw-r--r--lisp/progmodes/cperl-mode.el39
-rw-r--r--lisp/ps-print.el4
7 files changed, 85 insertions, 81 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2ce58cd08dc..ea7356efedd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,27 @@
12007-10-29 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * calc/calc.el (calc-emacs-type-lucid): Remove.
4 (calc-digit-map, calcDigit-start, calc-read-key)
5 (calc-clear-unread-commands):
6 * calc/calc-ext.el (calc-user-key-map): Replace uses of
7 calc-emacs-type-lucid with (featurep 'xemacs)
8
9 * emulation/tpu-mapper.el: Replace tpu-lucid-emacs19-p with
10 (featurep 'xemacs).
11 (tpu-lucid-emacs19-p): Remove.
12 (tpu-map-key): Make it a function instead of using fset. Inline
13 tpu-emacs-map-key and tpu-lucid-map-key. Use featurep 'xemacs.
14 (tpu-emacs-map-key, tpu-lucid-map-key): Remove.
15
16 * ielm.el: Use featurep 'xemacs.
17
18 * progmodes/cperl-mode.el (cperl-xemacs-p): Remove.
19 (condition-case, cperl-can-font-lock, cperl-singly-quote-face)
20 (cperl-define-key, cperl-mode-map, cperl-mode, cperl-init-faces)
21 (cperl-write-tags, cperl-tags-hier-init, cperl-perldoc): Replace
22 cperl-xemacs-p with (featurep 'xemacs).
23 (font-lock-cache-position): Pacify byte compiler.
24
12007-10-29 Drew Adams <drew.adams@oracle.com> 252007-10-29 Drew Adams <drew.adams@oracle.com>
2 26
3 * faces.el (read-color): New function. 27 * faces.el (read-color): New function.
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el
index 0aa053702b8..bb054de4951 100644
--- a/lisp/calc/calc-ext.el
+++ b/lisp/calc/calc-ext.el
@@ -1782,8 +1782,8 @@ calc-kill calc-kill-region calc-yank))))
1782;;; User menu. 1782;;; User menu.
1783 1783
1784(defun calc-user-key-map () 1784(defun calc-user-key-map ()
1785 (if calc-emacs-type-lucid 1785 (if (featurep 'xemacs)
1786 (error "User-defined keys are not supported in Lucid Emacs")) 1786 (error "User-defined keys are not supported in XEmacs"))
1787 (let ((res (cdr (lookup-key calc-mode-map "z")))) 1787 (let ((res (cdr (lookup-key calc-mode-map "z"))))
1788 (if (eq (car (car res)) 27) 1788 (if (eq (car (car res)) 27)
1789 (cdr res) 1789 (cdr res)
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index 44e802d36b1..5cfccb4f8db 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -821,9 +821,6 @@ If nil, selections displayed but ignored.")
821(defvar calc-embedded-mode-hook nil 821(defvar calc-embedded-mode-hook nil
822 "Hook run when starting embedded mode.") 822 "Hook run when starting embedded mode.")
823 823
824;; Verify that Calc is running on the right kind of system.
825(defvar calc-emacs-type-lucid (not (not (string-match "Lucid" emacs-version))))
826
827;; Set up the autoloading linkage. 824;; Set up the autoloading linkage.
828(let ((name (and (fboundp 'calc-dispatch) 825(let ((name (and (fboundp 'calc-dispatch)
829 (eq (car-safe (symbol-function 'calc-dispatch)) 'autoload) 826 (eq (car-safe (symbol-function 'calc-dispatch)) 'autoload)
@@ -968,7 +965,7 @@ If nil, selections displayed but ignored.")
968 965
969(defvar calc-digit-map 966(defvar calc-digit-map
970 (let ((map (make-keymap))) 967 (let ((map (make-keymap)))
971 (if calc-emacs-type-lucid 968 (if (featurep 'xemacs)
972 (map-keymap (function 969 (map-keymap (function
973 (lambda (keys bind) 970 (lambda (keys bind)
974 (define-key map keys 971 (define-key map keys
@@ -999,7 +996,7 @@ If nil, selections displayed but ignored.")
999 (define-key calc-mode-map x 'calc-pop) 996 (define-key calc-mode-map x 'calc-pop)
1000 (define-key calc-mode-map 997 (define-key calc-mode-map
1001 (if (vectorp x) 998 (if (vectorp x)
1002 (if calc-emacs-type-lucid 999 (if (featurep 'xemacs)
1003 (if (= (length x) 1) 1000 (if (= (length x) 1)
1004 (vector (if (consp (aref x 0)) 1001 (vector (if (consp (aref x 0))
1005 (cons 'meta (aref x 0)) 1002 (cons 'meta (aref x 0))
@@ -2109,13 +2106,13 @@ See calc-keypad for details."
2109 (calc-prev-char nil) 2106 (calc-prev-char nil)
2110 (calc-prev-prev-char nil) 2107 (calc-prev-prev-char nil)
2111 (calc-buffer (current-buffer)) 2108 (calc-buffer (current-buffer))
2112 (buf (if calc-emacs-type-lucid 2109 (buf (if (featurep 'xemacs)
2113 (catch 'calc-foo 2110 (catch 'calc-foo
2114 (catch 'execute-kbd-macro 2111 (catch 'execute-kbd-macro
2115 (throw 'calc-foo 2112 (throw 'calc-foo
2116 (read-from-minibuffer 2113 (read-from-minibuffer
2117 "Calc: " "" calc-digit-map))) 2114 "Calc: " "" calc-digit-map)))
2118 (error "Lucid Emacs requires RET after %s" 2115 (error "XEmacs requires RET after %s"
2119 "digit entry in kbd macro")) 2116 "digit entry in kbd macro"))
2120 (let ((old-esc (lookup-key global-map "\e"))) 2117 (let ((old-esc (lookup-key global-map "\e")))
2121 (unwind-protect 2118 (unwind-protect
@@ -3646,7 +3643,7 @@ Also looks for the equivalent TeX words, \\gets and \\evalto."
3646;;; Functions needed for Lucid Emacs support. 3643;;; Functions needed for Lucid Emacs support.
3647 3644
3648(defun calc-read-key (&optional optkey) 3645(defun calc-read-key (&optional optkey)
3649 (cond (calc-emacs-type-lucid 3646 (cond ((featurep 'xemacs)
3650 (let ((event (next-command-event))) 3647 (let ((event (next-command-event)))
3651 (let ((key (event-to-character event t t))) 3648 (let ((key (event-to-character event t t)))
3652 (or key optkey (error "Expected a plain keystroke")) 3649 (or key optkey (error "Expected a plain keystroke"))
@@ -3664,7 +3661,7 @@ Also looks for the equivalent TeX words, \\gets and \\evalto."
3664 3661
3665(defun calc-clear-unread-commands () 3662(defun calc-clear-unread-commands ()
3666 (if (featurep 'xemacs) 3663 (if (featurep 'xemacs)
3667 (calc-emacs-type-lucid (setq unread-command-event nil)) 3664 (setq unread-command-event nil)
3668 (setq unread-command-events nil))) 3665 (setq unread-command-events nil)))
3669 3666
3670(when calc-always-load-extensions 3667(when calc-always-load-extensions
diff --git a/lisp/emulation/tpu-mapper.el b/lisp/emulation/tpu-mapper.el
index 3e5af7a38bd..3f216ca8a2b 100644
--- a/lisp/emulation/tpu-mapper.el
+++ b/lisp/emulation/tpu-mapper.el
@@ -78,13 +78,6 @@
78 78
79 79
80;;; 80;;;
81;;; Decide whether we're running Lucid Emacs or Emacs itself.
82;;;
83(defconst tpu-lucid-emacs19-p (string-match "Lucid" emacs-version)
84 "Non-nil if we are running Lucid Emacs version 19.")
85
86
87;;;
88;;; Key variables 81;;; Key variables
89;;; 82;;;
90(defvar tpu-kp4 nil) 83(defvar tpu-kp4 nil)
@@ -100,7 +93,7 @@
100;;; 93;;;
101;;; Make sure the window is big enough to display the instructions 94;;; Make sure the window is big enough to display the instructions
102;;; 95;;;
103(if tpu-lucid-emacs19-p (set-screen-size (selected-screen) 80 36) 96(if (featurep 'xemacs) (set-screen-size (selected-screen) 80 36)
104 (set-frame-size (selected-frame) 80 36)) 97 (set-frame-size (selected-frame) 80 36))
105 98
106 99
@@ -167,7 +160,7 @@
167;;; Save <CR> for future reference 160;;; Save <CR> for future reference
168;;; 161;;;
169(cond 162(cond
170 (tpu-lucid-emacs19-p 163 ((featurep 'xemacs)
171 (setq tpu-return-seq (read-key-sequence "Hit carriage-return <CR> to continue ")) 164 (setq tpu-return-seq (read-key-sequence "Hit carriage-return <CR> to continue "))
172 (setq tpu-return (concat "[" (format "%s" (event-key (aref tpu-return-seq 0))) "]"))) 165 (setq tpu-return (concat "[" (format "%s" (event-key (aref tpu-return-seq 0))) "]")))
173 (t 166 (t
@@ -179,41 +172,36 @@
179;;; 172;;;
180;;; Key mapping functions 173;;; Key mapping functions
181;;; 174;;;
182(defun tpu-lucid-map-key (ident descrip func gold-func) 175(defun tpu-map-key (ident descrip func gold-func)
183 (interactive)
184 (setq tpu-key-seq (read-key-sequence (format "Press %s%s: " ident descrip)))
185 (setq tpu-key (concat "[" (format "%s" (event-key (aref tpu-key-seq 0))) "]"))
186 (cond ((not (equal tpu-key tpu-return))
187 (set-buffer "Keys")
188 (insert (format"(global-set-key %s %s)\n" tpu-key func))
189 (set-buffer "Gold-Keys")
190 (insert (format "(define-key GOLD-map %s %s)\n" tpu-key gold-func))
191 (set-buffer "Directions"))
192 ;; bogosity to get next prompt to come up, if the user hits <CR>!
193 ;; check periodically to see if this is still needed...
194 (t
195 (format "%s" tpu-key)))
196 tpu-key)
197
198(defun tpu-emacs-map-key (ident descrip func gold-func)
199 (interactive) 176 (interactive)
200 (message "Press %s%s: " ident descrip) 177 (if (featurep 'xemacs)
201 (setq tpu-key-seq (read-event)) 178 (progn
202 (setq tpu-key (concat "[" (format "%s" tpu-key-seq) "]")) 179 (setq tpu-key-seq (read-key-sequence (format "Press %s%s: " ident descrip)))
203 (cond ((not (equal tpu-key tpu-return)) 180 (setq tpu-key (concat "[" (format "%s" (event-key (aref tpu-key-seq 0))) "]"))
204 (set-buffer "Keys") 181 (cond ((not (equal tpu-key tpu-return))
205 (insert (format"(define-key tpu-global-map %s %s)\n" tpu-key func)) 182 (set-buffer "Keys")
206 (set-buffer "Gold-Keys") 183 (insert (format"(global-set-key %s %s)\n" tpu-key func))
207 (insert (format "(define-key tpu-gold-map %s %s)\n" tpu-key gold-func)) 184 (set-buffer "Gold-Keys")
208 (set-buffer "Directions")) 185 (insert (format "(define-key GOLD-map %s %s)\n" tpu-key gold-func))
209 ;; bogosity to get next prompt to come up, if the user hits <CR>! 186 (set-buffer "Directions"))
210 ;; check periodically to see if this is still needed... 187 ;; bogosity to get next prompt to come up, if the user hits <CR>!
211 (t 188 ;; check periodically to see if this is still needed...
212 (format "%s" tpu-key))) 189 (t
213 tpu-key) 190 (format "%s" tpu-key))))
214 191 (message "Press %s%s: " ident descrip)
215(fset 'tpu-map-key (if tpu-lucid-emacs19-p 'tpu-lucid-map-key 'tpu-emacs-map-key)) 192 (setq tpu-key-seq (read-event))
216 193 (setq tpu-key (concat "[" (format "%s" tpu-key-seq) "]"))
194 (cond ((not (equal tpu-key tpu-return))
195 (set-buffer "Keys")
196 (insert (format"(define-key tpu-global-map %s %s)\n" tpu-key func))
197 (set-buffer "Gold-Keys")
198 (insert (format "(define-key tpu-gold-map %s %s)\n" tpu-key gold-func))
199 (set-buffer "Directions"))
200 ;; bogosity to get next prompt to come up, if the user hits <CR>!
201 ;; check periodically to see if this is still needed...
202 (t
203 (format "%s" tpu-key))))
204 tpu-key)
217 205
218(set-buffer "Keys") 206(set-buffer "Keys")
219(insert " 207(insert "
@@ -350,7 +338,7 @@
350;; 338;;
351") 339")
352 340
353(cond (tpu-lucid-emacs19-p 341(cond ((featurep 'xemacs)
354 (insert (format "(setq tpu-help-enter \"%s\")\n" tpu-enter-seq)) 342 (insert (format "(setq tpu-help-enter \"%s\")\n" tpu-enter-seq))
355 (insert (format "(setq tpu-help-return \"%s\")\n" tpu-return-seq)) 343 (insert (format "(setq tpu-help-return \"%s\")\n" tpu-return-seq))
356 (insert "(setq tpu-help-N \"[#<keypress-event N>]\")\n") 344 (insert "(setq tpu-help-N \"[#<keypress-event N>]\")\n")
@@ -368,7 +356,7 @@
368;;; 356;;;
369(let ((file 357(let ((file
370 (convert-standard-filename 358 (convert-standard-filename
371 (if tpu-lucid-emacs19-p "~/.tpu-lucid-keys" "~/.tpu-keys")))) 359 (if (featurep 'xemacs) "~/.tpu-lucid-keys" "~/.tpu-keys"))))
372 (set-visited-file-name 360 (set-visited-file-name
373 (read-file-name (format "Save key mapping to file (default %s): " file) "" file))) 361 (read-file-name (format "Save key mapping to file (default %s): " file) "" file)))
374(save-buffer) 362(save-buffer)
diff --git a/lisp/ielm.el b/lisp/ielm.el
index 98df0d1e3d4..a734f87ad92 100644
--- a/lisp/ielm.el
+++ b/lisp/ielm.el
@@ -169,7 +169,7 @@ This variable is buffer-local.")
169 169
170(defvar ielm-map nil) 170(defvar ielm-map nil)
171(if ielm-map nil 171(if ielm-map nil
172 (if (string-match "Lucid" emacs-version) 172 (if (featurep 'xemacs)
173 ;; Lemacs 173 ;; Lemacs
174 (progn 174 (progn
175 (setq ielm-map (make-sparse-keymap)) 175 (setq ielm-map (make-sparse-keymap))
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index d030110d85a..13f1e0c24b8 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -78,9 +78,8 @@
78 (condition-case nil 78 (condition-case nil
79 (require 'man) 79 (require 'man)
80 (error nil)) 80 (error nil))
81 (defconst cperl-xemacs-p (string-match "XEmacs\\|Lucid" emacs-version))
82 (defvar cperl-can-font-lock 81 (defvar cperl-can-font-lock
83 (or cperl-xemacs-p 82 (or (featurep 'xemacs)
84 (and (boundp 'emacs-major-version) 83 (and (boundp 'emacs-major-version)
85 (or window-system 84 (or window-system
86 (> emacs-major-version 20))))) 85 (> emacs-major-version 20)))))
@@ -131,14 +130,14 @@
131 (cperl-make-face ,arg ,descr)) 130 (cperl-make-face ,arg ,descr))
132 (or (boundp (quote ,arg)) ; We use unquoted variants too 131 (or (boundp (quote ,arg)) ; We use unquoted variants too
133 (defvar ,arg (quote ,arg) ,descr)))) 132 (defvar ,arg (quote ,arg) ,descr))))
134 (if cperl-xemacs-p 133 (if (featurep 'xemacs)
135 (defmacro cperl-etags-snarf-tag (file line) 134 (defmacro cperl-etags-snarf-tag (file line)
136 `(progn 135 `(progn
137 (beginning-of-line 2) 136 (beginning-of-line 2)
138 (list ,file ,line))) 137 (list ,file ,line)))
139 (defmacro cperl-etags-snarf-tag (file line) 138 (defmacro cperl-etags-snarf-tag (file line)
140 `(etags-snarf-tag))) 139 `(etags-snarf-tag)))
141 (if cperl-xemacs-p 140 (if (featurep 'xemacs)
142 (defmacro cperl-etags-goto-tag-location (elt) 141 (defmacro cperl-etags-goto-tag-location (elt)
143 ;;(progn 142 ;;(progn
144 ;; (switch-to-buffer (get-file-buffer (elt ,elt 0))) 143 ;; (switch-to-buffer (get-file-buffer (elt ,elt 0)))
@@ -151,10 +150,8 @@
151 (defmacro cperl-etags-goto-tag-location (elt) 150 (defmacro cperl-etags-goto-tag-location (elt)
152 `(etags-goto-tag-location ,elt)))) 151 `(etags-goto-tag-location ,elt))))
153 152
154(defconst cperl-xemacs-p (string-match "XEmacs\\|Lucid" emacs-version))
155
156(defvar cperl-can-font-lock 153(defvar cperl-can-font-lock
157 (or cperl-xemacs-p 154 (or (featurep 'xemacs)
158 (and (boundp 'emacs-major-version) 155 (and (boundp 'emacs-major-version)
159 (or window-system 156 (or window-system
160 (> emacs-major-version 20))))) 157 (> emacs-major-version 20)))))
@@ -458,7 +455,7 @@ Font for POD headers."
458 :group 'cperl-faces) 455 :group 'cperl-faces)
459 456
460;;; Some double-evaluation happened with font-locks... Needed with 21.2... 457;;; Some double-evaluation happened with font-locks... Needed with 21.2...
461(defvar cperl-singly-quote-face cperl-xemacs-p) 458(defvar cperl-singly-quote-face (featurep 'xemacs))
462 459
463(defcustom cperl-invalid-face 'underline 460(defcustom cperl-invalid-face 'underline
464 "*Face for highlighting trailing whitespace." 461 "*Face for highlighting trailing whitespace."
@@ -1011,7 +1008,7 @@ In regular expressions (except character classes):
1011(defmacro cperl-define-key (emacs-key definition &optional xemacs-key) 1008(defmacro cperl-define-key (emacs-key definition &optional xemacs-key)
1012 `(define-key cperl-mode-map 1009 `(define-key cperl-mode-map
1013 ,(if xemacs-key 1010 ,(if xemacs-key
1014 `(if cperl-xemacs-p ,xemacs-key ,emacs-key) 1011 `(if (featurep 'xemacs) ,xemacs-key ,emacs-key)
1015 emacs-key) 1012 emacs-key)
1016 ,definition)) 1013 ,definition))
1017 1014
@@ -1024,7 +1021,7 @@ In regular expressions (except character classes):
1024 (setq cperl-del-back-ch (aref cperl-del-back-ch 0))) 1021 (setq cperl-del-back-ch (aref cperl-del-back-ch 0)))
1025 1022
1026(defun cperl-mark-active () (mark)) ; Avoid undefined warning 1023(defun cperl-mark-active () (mark)) ; Avoid undefined warning
1027(if cperl-xemacs-p 1024(if (featurep 'xemacs)
1028 (progn 1025 (progn
1029 ;; "Active regions" are on: use region only if active 1026 ;; "Active regions" are on: use region only if active
1030 ;; "Active regions" are off: use region unconditionally 1027 ;; "Active regions" are off: use region unconditionally
@@ -1040,7 +1037,7 @@ In regular expressions (except character classes):
1040(defun cperl-putback-char (c) ; Emacs 19 1037(defun cperl-putback-char (c) ; Emacs 19
1041 (set 'unread-command-events (list c))) ; Avoid undefined warning 1038 (set 'unread-command-events (list c))) ; Avoid undefined warning
1042 1039
1043(if cperl-xemacs-p 1040(if (featurep 'xemacs)
1044 (defun cperl-putback-char (c) ; XEmacs >= 19.12 1041 (defun cperl-putback-char (c) ; XEmacs >= 19.12
1045 (setq unread-command-events (list (eval '(character-to-event c)))))) 1042 (setq unread-command-events (list (eval '(character-to-event c))))))
1046 1043
@@ -1192,7 +1189,7 @@ versions of Emacs."
1192 ;;(concat (char-to-string help-char) "v") ; does not work 1189 ;;(concat (char-to-string help-char) "v") ; does not work
1193 'cperl-get-help 1190 'cperl-get-help
1194 [(control c) (control h) v])) 1191 [(control c) (control h) v]))
1195 (if (and cperl-xemacs-p 1192 (if (and (featurep 'xemacs)
1196 (<= emacs-minor-version 11) (<= emacs-major-version 19)) 1193 (<= emacs-minor-version 11) (<= emacs-major-version 19))
1197 (progn 1194 (progn
1198 ;; substitute-key-definition is usefulness-deenhanced... 1195 ;; substitute-key-definition is usefulness-deenhanced...
@@ -1744,7 +1741,7 @@ or as help on variables `cperl-tips', `cperl-problems',
1744 (setq paragraph-separate paragraph-start) 1741 (setq paragraph-separate paragraph-start)
1745 (make-local-variable 'paragraph-ignore-fill-prefix) 1742 (make-local-variable 'paragraph-ignore-fill-prefix)
1746 (setq paragraph-ignore-fill-prefix t) 1743 (setq paragraph-ignore-fill-prefix t)
1747 (if cperl-xemacs-p 1744 (if (featurep 'xemacs)
1748 (progn 1745 (progn
1749 (make-local-variable 'paren-backwards-message) 1746 (make-local-variable 'paren-backwards-message)
1750 (set 'paren-backwards-message t))) 1747 (set 'paren-backwards-message t)))
@@ -1835,7 +1832,7 @@ or as help on variables `cperl-tips', `cperl-problems',
1835 (or (boundp 'font-lock-unfontify-region-function) 1832 (or (boundp 'font-lock-unfontify-region-function)
1836 (set 'font-lock-unfontify-region-function 1833 (set 'font-lock-unfontify-region-function
1837 'font-lock-default-unfontify-region)) 1834 'font-lock-default-unfontify-region))
1838 (unless cperl-xemacs-p ; Our: just a plug for wrong font-lock 1835 (unless (featurep 'xemacs) ; Our: just a plug for wrong font-lock
1839 (make-local-variable 'font-lock-unfontify-region-function) 1836 (make-local-variable 'font-lock-unfontify-region-function)
1840 (set 'font-lock-unfontify-region-function ; not present with old Emacs 1837 (set 'font-lock-unfontify-region-function ; not present with old Emacs
1841 'cperl-font-lock-unfontify-region-function)) 1838 'cperl-font-lock-unfontify-region-function))
@@ -5854,7 +5851,7 @@ indentation and initial hashes. Behaves usually outside of comment."
5854 (and (fboundp 'turn-on-font-lock) ; Check for newer font-lock 5851 (and (fboundp 'turn-on-font-lock) ; Check for newer font-lock
5855 ;; not yet as of XEmacs 19.12, works with 21.1.11 5852 ;; not yet as of XEmacs 19.12, works with 21.1.11
5856 (or 5853 (or
5857 (not cperl-xemacs-p) 5854 (not (featurep 'xemacs))
5858 (string< "21.1.9" emacs-version) 5855 (string< "21.1.9" emacs-version)
5859 (and (string< "21.1.10" emacs-version) 5856 (and (string< "21.1.10" emacs-version)
5860 (string< emacs-version "21.1.2"))) 5857 (string< emacs-version "21.1.2")))
@@ -6015,7 +6012,7 @@ indentation and initial hashes. Behaves usually outside of comment."
6015 ;; (defconst cperl-nonoverridable-face 6012 ;; (defconst cperl-nonoverridable-face
6016 ;; 'cperl-nonoverridable-face 6013 ;; 'cperl-nonoverridable-face
6017 ;; "Face to use for data types from another group.")) 6014 ;; "Face to use for data types from another group."))
6018 ;;(if (not cperl-xemacs-p) nil 6015 ;;(if (not (featurep 'xemacs)) nil
6019 ;; (or (boundp 'font-lock-comment-face) 6016 ;; (or (boundp 'font-lock-comment-face)
6020 ;; (defconst font-lock-comment-face 6017 ;; (defconst font-lock-comment-face
6021 ;; 'font-lock-comment-face 6018 ;; 'font-lock-comment-face
@@ -6964,7 +6961,7 @@ Use as
6964 (save-excursion 6961 (save-excursion
6965 (cond (inbuffer nil) ; Already there 6962 (cond (inbuffer nil) ; Already there
6966 ((file-exists-p tags-file-name) 6963 ((file-exists-p tags-file-name)
6967 (if cperl-xemacs-p 6964 (if (featurep 'xemacs)
6968 (visit-tags-table-buffer) 6965 (visit-tags-table-buffer)
6969 (visit-tags-table-buffer tags-file-name))) 6966 (visit-tags-table-buffer tags-file-name)))
6970 (t (set-buffer (find-file-noselect tags-file-name)))) 6967 (t (set-buffer (find-file-noselect tags-file-name))))
@@ -7100,7 +7097,7 @@ One may build such TAGS files from CPerl mode menu."
7100 pack name cons1 to l1 l2 l3 l4 b) 7097 pack name cons1 to l1 l2 l3 l4 b)
7101 ;; (setq cperl-hierarchy '(() () ())) ; Would write into '() later! 7098 ;; (setq cperl-hierarchy '(() () ())) ; Would write into '() later!
7102 (setq cperl-hierarchy (list l1 l2 l3)) 7099 (setq cperl-hierarchy (list l1 l2 l3))
7103 (if cperl-xemacs-p ; Not checked 7100 (if (featurep 'xemacs) ; Not checked
7104 (progn 7101 (progn
7105 (or tags-file-name 7102 (or tags-file-name
7106 ;; Does this work in XEmacs? 7103 ;; Does this work in XEmacs?
@@ -8451,7 +8448,7 @@ the appropriate statement modifier."
8451 'variable-documentation)))) 8448 'variable-documentation))))
8452 (manual-program (if is-func "perldoc -f" "perldoc"))) 8449 (manual-program (if is-func "perldoc -f" "perldoc")))
8453 (cond 8450 (cond
8454 (cperl-xemacs-p 8451 ((featurep 'xemacs)
8455 (let ((Manual-program "perldoc") 8452 (let ((Manual-program "perldoc")
8456 (Manual-switches (if is-func (list "-f")))) 8453 (Manual-switches (if is-func (list "-f"))))
8457 (manual-entry word))) 8454 (manual-entry word)))
@@ -8493,7 +8490,7 @@ the appropriate statement modifier."
8493 (interactive) 8490 (interactive)
8494 (require 'man) 8491 (require 'man)
8495 (cond 8492 (cond
8496 (cperl-xemacs-p 8493 ((featurep 'xemacs)
8497 (let ((Manual-program "perldoc")) 8494 (let ((Manual-program "perldoc"))
8498 (manual-entry buffer-file-name))) 8495 (manual-entry buffer-file-name)))
8499 (t 8496 (t
@@ -8689,6 +8686,8 @@ start with default arguments, then refine the slowdown regions."
8689 (message "to %s:%6s,%7s" l delta tot)) 8686 (message "to %s:%6s,%7s" l delta tot))
8690 tot)) 8687 tot))
8691 8688
8689(defvar font-lock-cache-position)
8690
8692(defun cperl-emulate-lazy-lock (&optional window-size) 8691(defun cperl-emulate-lazy-lock (&optional window-size)
8693 "Emulate `lazy-lock' without `condition-case', so `debug-on-error' works. 8692 "Emulate `lazy-lock' without `condition-case', so `debug-on-error' works.
8694Start fontifying the buffer from the start (or end) using the given 8693Start fontifying the buffer from the start (or end) using the given
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 1466c6dbb23..43df4eddad6 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -1464,10 +1464,6 @@ Please send all bug fixes and enhancements to
1464 1464
1465(let ((case-fold-search t)) 1465(let ((case-fold-search t))
1466 (cond ((featurep 'xemacs)) 1466 (cond ((featurep 'xemacs))
1467 ((string-match "Lucid" emacs-version)
1468 (error "`ps-print' doesn't support Lucid"))
1469 ((string-match "Epoch" emacs-version)
1470 (error "`ps-print' doesn't support Epoch"))
1471 (t 1467 (t
1472 (unless (and (boundp 'emacs-major-version) 1468 (unless (and (boundp 'emacs-major-version)
1473 (>= emacs-major-version 22)) 1469 (>= emacs-major-version 22))