aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2007-10-21 17:22:04 +0000
committerDan Nicolaescu2007-10-21 17:22:04 +0000
commitf82460271ec718957a1ae311c2cdbd8f7d5ca8c4 (patch)
treed207d4304089ead427d20211bcf3fab48342ce32
parent3cd79f623b94e3aeef6c08dde13128733e5e6dec (diff)
downloademacs-f82460271ec718957a1ae311c2cdbd8f7d5ca8c4.tar.gz
emacs-f82460271ec718957a1ae311c2cdbd8f7d5ca8c4.zip
* emulation/edt-mapper.el (function-key-map):
(edt-map-key): Make it a function instead of using fset. Inline edt-gnu-map-key and edt-lucid-map-key. Use featurep 'xemacs. (edt-gnu-map-key, edt-lucid-map-key): Remove. (edt-x-emacs-p): Remove. (edt-emacs-variant, edt-window-system, edt-xserver): Use featurep 'xemacs. * net/eudc.el: Use (featurep 'xemacs) instead of the string test. Replace eudc-xemacs-p with its definition. (eudc-xemacs-p, eudc-emacs-p, eudc-xemacs-mule-p) (eudc-emacs-mule-p): Remove. (eudc-install-menu, eudc-mode): Replace eudc-emacs-p and eudc-xemacs-p with feature tests. * net/eudc-bob.el (eudc-bob-generic-menu, eudc-bob-mail-keymap) (eudc-bob-url-keymap, eudc-bob-sound-keymap) (eudc-bob-generic-keymap, eudc-bob-popup-menu) (eudc-bob-toggle-inline-display): * net/eudc-hotlist.el (eudc-hotlist-emacs-menu): Replace eudc-emacs-p and eudc-xemacs-p with feature tests. * net/eudcb-ph.el (eudc-ph-open-session): Replace eudc-xemacs-mule-p with its former definition. * progmodes/octave-mod.el (octave-xemacs-p): Remove. (octave-abbrev-start): Replace octave-xemacs-p with (featurep 'xemacs). * progmodes/vera-mode.el (vera-xemacs): Remove. (vera-mode-syntax-table): Replace vera-xemacs with (featurep 'xemacs). * progmodes/vhdl-mode.el (vhdl-xemacs): Remove. (vhdl-doc-mode, vhdl-doc-variable, vhdl-compile-init) (vhdl-speedbar-initialize, vhdl-ps-print-init) (vhdl-forward-comment, vhdl-mode-map-init, vhdl-show-messages) (vhdl-emacs-22, vhdl-emacs-21): Replace vhdl-xemacs with (featurep 'xemacs). * progmodes/antlr-mode.el (cond-emacs-xemacs-macfn, defunx) (save-buffer-state-x): * obsolete/fast-lock.el (fast-lock-verbose): * emulation/viper-init.el (viper-xemacs-p) (viper-cond-compile-for-xemacs-or-emacs): * emacs-lisp/checkdoc.el (checkdoc-minor-mode-map): * ps-print.el (case-fold-search): * ediff-hook.el (ediff-cond-compile-for-xemacs-or-emacs): * calculator.el (calculator-help): Use featurep 'xemacs.
-rw-r--r--lisp/ChangeLog50
-rw-r--r--lisp/calculator.el2
-rw-r--r--lisp/ediff-hook.el4
-rw-r--r--lisp/emacs-lisp/checkdoc.el2
-rw-r--r--lisp/emulation/edt-mapper.el71
-rw-r--r--lisp/emulation/viper-init.el4
-rw-r--r--lisp/net/eudc-bob.el39
-rw-r--r--lisp/net/eudc-hotlist.el10
-rw-r--r--lisp/net/eudc.el17
-rw-r--r--lisp/net/eudcb-ph.el2
-rw-r--r--lisp/obsolete/fast-lock.el2
-rw-r--r--lisp/progmodes/antlr-mode.el8
-rw-r--r--lisp/progmodes/octave-mod.el5
-rw-r--r--lisp/progmodes/vera-mode.el8
-rw-r--r--lisp/progmodes/vhdl-mode.el33
-rw-r--r--lisp/ps-print.el2
16 files changed, 144 insertions, 115 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e346d83e34d..f03f5cc953d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,55 @@
12007-10-21 Dan Nicolaescu <dann@ics.uci.edu> 12007-10-21 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 * emulation/edt-mapper.el (function-key-map):
4 (edt-map-key): Make it a function instead of using fset. Inline
5 edt-gnu-map-key and edt-lucid-map-key. Use featurep 'xemacs.
6 (edt-gnu-map-key, edt-lucid-map-key): Remove.
7 (edt-x-emacs-p): Remove.
8 (edt-emacs-variant, edt-window-system, edt-xserver):
9 Use featurep 'xemacs.
10
11 * net/eudc.el: Use (featurep 'xemacs) instead of the string test.
12 Replace eudc-xemacs-p with its definition.
13 (eudc-xemacs-p, eudc-emacs-p, eudc-xemacs-mule-p)
14 (eudc-emacs-mule-p): Remove.
15 (eudc-install-menu, eudc-mode): Replace eudc-emacs-p and
16 eudc-xemacs-p with feature tests.
17
18 * net/eudc-bob.el (eudc-bob-generic-menu, eudc-bob-mail-keymap)
19 (eudc-bob-url-keymap, eudc-bob-sound-keymap)
20 (eudc-bob-generic-keymap, eudc-bob-popup-menu)
21 (eudc-bob-toggle-inline-display):
22 * net/eudc-hotlist.el (eudc-hotlist-emacs-menu): Replace
23 eudc-emacs-p and eudc-xemacs-p with feature tests.
24
25 * net/eudcb-ph.el (eudc-ph-open-session): Replace
26 eudc-xemacs-mule-p with its former definition.
27
28 * progmodes/octave-mod.el (octave-xemacs-p): Remove.
29 (octave-abbrev-start): Replace octave-xemacs-p with
30 (featurep 'xemacs).
31
32 * progmodes/vera-mode.el (vera-xemacs): Remove.
33 (vera-mode-syntax-table): Replace vera-xemacs with
34 (featurep 'xemacs).
35
36 * progmodes/vhdl-mode.el (vhdl-xemacs): Remove.
37 (vhdl-doc-mode, vhdl-doc-variable, vhdl-compile-init)
38 (vhdl-speedbar-initialize, vhdl-ps-print-init)
39 (vhdl-forward-comment, vhdl-mode-map-init, vhdl-show-messages)
40 (vhdl-emacs-22, vhdl-emacs-21): Replace vhdl-xemacs
41 with (featurep 'xemacs).
42
43 * progmodes/antlr-mode.el (cond-emacs-xemacs-macfn, defunx)
44 (save-buffer-state-x):
45 * obsolete/fast-lock.el (fast-lock-verbose):
46 * emulation/viper-init.el (viper-xemacs-p)
47 (viper-cond-compile-for-xemacs-or-emacs):
48 * emacs-lisp/checkdoc.el (checkdoc-minor-mode-map):
49 * ps-print.el (case-fold-search):
50 * ediff-hook.el (ediff-cond-compile-for-xemacs-or-emacs):
51 * calculator.el (calculator-help): Use featurep 'xemacs.
52
3 * progmodes/prolog.el: Undo previous change. 53 * progmodes/prolog.el: Undo previous change.
4 (comint-prompt-regexp, comint-process-echoes): Pacify 54 (comint-prompt-regexp, comint-process-echoes): Pacify
5 byte-compiler. 55 byte-compiler.
diff --git a/lisp/calculator.el b/lisp/calculator.el
index 2676bedadba..aca37dd7cda 100644
--- a/lisp/calculator.el
+++ b/lisp/calculator.el
@@ -1715,7 +1715,7 @@ Used by `calculator-paste' and `get-register'."
1715 (use-global-map calculator-saved-global-map)) 1715 (use-global-map calculator-saved-global-map))
1716 (if (or (not calculator-electric-mode) 1716 (if (or (not calculator-electric-mode)
1717 ;; XEmacs has a problem with electric-describe-mode 1717 ;; XEmacs has a problem with electric-describe-mode
1718 (string-match "XEmacs" (emacs-version))) 1718 (featurep 'xemacs))
1719 (describe-mode) 1719 (describe-mode)
1720 (electric-describe-mode)) 1720 (electric-describe-mode))
1721 (if calculator-electric-mode 1721 (if calculator-electric-mode
diff --git a/lisp/ediff-hook.el b/lisp/ediff-hook.el
index 951abc20f73..00e6ba6bab2 100644
--- a/lisp/ediff-hook.el
+++ b/lisp/ediff-hook.el
@@ -53,10 +53,10 @@
53;; compiler at hand (emacs or xemacs). 53;; compiler at hand (emacs or xemacs).
54;; The autoload, below, is useless in Emacs because ediff-hook.el 54;; The autoload, below, is useless in Emacs because ediff-hook.el
55;; is dumped with emacs, but it is needed in XEmacs 55;; is dumped with emacs, but it is needed in XEmacs
56;;;###autoload (defmacro ediff-cond-compile-for-xemacs-or-emacs (xemacs-form emacs-form) (if (string-match "XEmacs" emacs-version) xemacs-form emacs-form)) 56;;;###autoload (defmacro ediff-cond-compile-for-xemacs-or-emacs (xemacs-form emacs-form) (if (featurep 'xemacs) xemacs-form emacs-form))
57 57
58(defmacro ediff-cond-compile-for-xemacs-or-emacs (xemacs-form emacs-form) 58(defmacro ediff-cond-compile-for-xemacs-or-emacs (xemacs-form emacs-form)
59 (if (string-match "XEmacs" emacs-version) 59 (if (featurep 'xemacs)
60 xemacs-form emacs-form)) 60 xemacs-form emacs-form))
61 61
62;; This autoload is useless in Emacs because ediff-hook.el is dumped with 62;; This autoload is useless in Emacs because ediff-hook.el is dumped with
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index edbf382f39e..185df6fbe43 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -1182,7 +1182,7 @@ generating a buffered list of errors."
1182 ;; Override some bindings 1182 ;; Override some bindings
1183 (define-key map "\C-\M-x" 'checkdoc-eval-defun) 1183 (define-key map "\C-\M-x" 'checkdoc-eval-defun)
1184 (define-key map "\C-x`" 'checkdoc-continue) 1184 (define-key map "\C-x`" 'checkdoc-continue)
1185 (if (not (string-match "XEmacs" emacs-version)) 1185 (if (not (featurep 'xemacs))
1186 (define-key map [menu-bar emacs-lisp eval-buffer] 1186 (define-key map [menu-bar emacs-lisp eval-buffer]
1187 'checkdoc-eval-current-buffer)) 1187 'checkdoc-eval-current-buffer))
1188 ;; Add some new bindings under C-c ? 1188 ;; Add some new bindings under C-c ?
diff --git a/lisp/emulation/edt-mapper.el b/lisp/emulation/edt-mapper.el
index 9cf377f5645..484cfe58b3a 100644
--- a/lisp/emulation/edt-mapper.el
+++ b/lisp/emulation/edt-mapper.el
@@ -118,17 +118,17 @@
118;;; Decide Emacs Variant, GNU Emacs or XEmacs (aka Lucid Emacs). 118;;; Decide Emacs Variant, GNU Emacs or XEmacs (aka Lucid Emacs).
119;;; Determine Window System, and X Server Vendor (if appropriate). 119;;; Determine Window System, and X Server Vendor (if appropriate).
120;;; 120;;;
121(defconst edt-x-emacs-p (string-match "XEmacs" emacs-version) 121(defconst (featurep 'xemacs) (string-match "XEmacs" emacs-version)
122 "Non-nil if we are running XEmacs version 19, or higher.") 122 "Non-nil if we are running XEmacs version 19, or higher.")
123 123
124(defconst edt-emacs-variant (if edt-x-emacs-p "xemacs" "gnu") 124(defconst edt-emacs-variant (if (featurep 'xemacs) "xemacs" "gnu")
125 "Indicates Emacs variant: GNU Emacs or XEmacs \(aka Lucid Emacs\).") 125 "Indicates Emacs variant: GNU Emacs or XEmacs \(aka Lucid Emacs\).")
126 126
127(defconst edt-window-system (if edt-x-emacs-p (console-type) window-system) 127(defconst edt-window-system (if (featurep 'xemacs) (console-type) window-system)
128 "Indicates window system \(in GNU Emacs\) or console type \(in XEmacs\).") 128 "Indicates window system \(in GNU Emacs\) or console type \(in XEmacs\).")
129 129
130(defconst edt-xserver (if (eq edt-window-system 'x) 130(defconst edt-xserver (if (eq edt-window-system 'x)
131 (if edt-x-emacs-p 131 (if (featurep 'xemacs)
132 ;; The Cygwin window manager has a `/' in its 132 ;; The Cygwin window manager has a `/' in its
133 ;; name, which breaks the generated file name of 133 ;; name, which breaks the generated file name of
134 ;; the custom key map file. Replace `/' with a 134 ;; the custom key map file. Replace `/' with a
@@ -245,7 +245,7 @@
245;;; function-key-map. 245;;; function-key-map.
246;;; 246;;;
247(cond 247(cond
248 (edt-x-emacs-p 248 ((featurep 'xemacs)
249 (setq edt-return-seq (read-key-sequence "Hit carriage-return <CR> to continue ")) 249 (setq edt-return-seq (read-key-sequence "Hit carriage-return <CR> to continue "))
250 (setq edt-return (concat "[" (format "%s" (event-key (aref edt-return-seq 0))) "]"))) 250 (setq edt-return (concat "[" (format "%s" (event-key (aref edt-return-seq 0))) "]")))
251 (t 251 (t
@@ -327,40 +327,37 @@
327;;; 327;;;
328;;; Key mapping functions 328;;; Key mapping functions
329;;; 329;;;
330(defun edt-lucid-map-key (ident descrip) 330(defun edt-map-key (ident descrip)
331 (interactive) 331 (interactive)
332 (setq edt-key-seq (read-key-sequence (format "Press %s%s: " ident descrip))) 332 (if (featurep 'xemacs)
333 (setq edt-key (concat "[" (format "%s" (event-key (aref edt-key-seq 0))) "]")) 333 (progn
334 (cond ((not (equal edt-key edt-return)) 334 (setq edt-key-seq (read-key-sequence (format "Press %s%s: " ident descrip)))
335 (set-buffer "Keys") 335 (setq edt-key (concat "[" (format "%s" (event-key (aref edt-key-seq 0))) "]"))
336 (insert (format " (\"%s\" . %s)\n" ident edt-key)) 336 (cond ((not (equal edt-key edt-return))
337 (set-buffer "Directions")) 337 (set-buffer "Keys")
338 ;; bogosity to get next prompt to come up, if the user hits <CR>! 338 (insert (format " (\"%s\" . %s)\n" ident edt-key))
339 ;; check periodically to see if this is still needed... 339 (set-buffer "Directions"))
340 (t 340 ;; bogosity to get next prompt to come up, if the user hits <CR>!
341 (set-buffer "Keys") 341 ;; check periodically to see if this is still needed...
342 (insert (format " (\"%s\" . \"\" )\n" ident)) 342 (t
343 (set-buffer "Directions"))) 343 (set-buffer "Keys")
344 (insert (format " (\"%s\" . \"\" )\n" ident))
345 (set-buffer "Directions"))))
346 (setq edt-key (read-key-sequence (format "Press %s%s: " ident descrip)))
347 (cond ((not (equal edt-key edt-return))
348 (set-buffer "Keys")
349 (insert (if (vectorp edt-key)
350 (format " (\"%s\" . %s)\n" ident edt-key)
351 (format " (\"%s\" . \"%s\")\n" ident edt-key)))
352 (set-buffer "Directions"))
353 ;; bogosity to get next prompt to come up, if the user hits <CR>!
354 ;; check periodically to see if this is still needed...
355 (t
356 (set-buffer "Keys")
357 (insert (format " (\"%s\" . \"\" )\n" ident))
358 (set-buffer "Directions"))))
344 edt-key) 359 edt-key)
345 360
346(defun edt-gnu-map-key (ident descrip)
347 (interactive)
348 (setq edt-key (read-key-sequence (format "Press %s%s: " ident descrip)))
349 (cond ((not (equal edt-key edt-return))
350 (set-buffer "Keys")
351 (insert (if (vectorp edt-key)
352 (format " (\"%s\" . %s)\n" ident edt-key)
353 (format " (\"%s\" . \"%s\")\n" ident edt-key)))
354 (set-buffer "Directions"))
355 ;; bogosity to get next prompt to come up, if the user hits <CR>!
356 ;; check periodically to see if this is still needed...
357 (t
358 (set-buffer "Keys")
359 (insert (format " (\"%s\" . \"\" )\n" ident))
360 (set-buffer "Directions")))
361 edt-key)
362
363(fset 'edt-map-key (if edt-x-emacs-p 'edt-lucid-map-key 'edt-gnu-map-key))
364(set-buffer "Keys") 361(set-buffer "Keys")
365(insert " 362(insert "
366;; 363;;
@@ -494,7 +491,7 @@
494;;; 491;;;
495;;; Restore function-key-map. 492;;; Restore function-key-map.
496;;; 493;;;
497(if (and edt-window-system (not edt-x-emacs-p)) 494(if (and edt-window-system (not (featurep 'xemacs)))
498 (setq function-key-map edt-save-function-key-map)) 495 (setq function-key-map edt-save-function-key-map))
499(setq EDT-key-name "") 496(setq EDT-key-name "")
500(while (not 497(while (not
diff --git a/lisp/emulation/viper-init.el b/lisp/emulation/viper-init.el
index 2b0e886b9cb..1b05ef7189d 100644
--- a/lisp/emulation/viper-init.el
+++ b/lisp/emulation/viper-init.el
@@ -50,7 +50,7 @@
50 (message "Viper version is %s" viper-version)) 50 (message "Viper version is %s" viper-version))
51 51
52;; Is it XEmacs? 52;; Is it XEmacs?
53(defconst viper-xemacs-p (string-match "XEmacs" emacs-version)) 53(defconst viper-xemacs-p (featurep 'xemacs))
54;; Is it Emacs? 54;; Is it Emacs?
55(defconst viper-emacs-p (not viper-xemacs-p)) 55(defconst viper-emacs-p (not viper-xemacs-p))
56;; Tell whether we are running as a window application or on a TTY 56;; Tell whether we are running as a window application or on a TTY
@@ -61,7 +61,7 @@
61;; compiler at hand. 61;; compiler at hand.
62;; Suggested by rms. 62;; Suggested by rms.
63(defmacro viper-cond-compile-for-xemacs-or-emacs (xemacs-form emacs-form) 63(defmacro viper-cond-compile-for-xemacs-or-emacs (xemacs-form emacs-form)
64 (if (string-match "XEmacs" emacs-version) 64 (if (featurep 'xemacs)
65 xemacs-form emacs-form)) 65 xemacs-form emacs-form))
66 66
67 67
diff --git a/lisp/net/eudc-bob.el b/lisp/net/eudc-bob.el
index f3b9baa13bc..1ba6f4a0927 100644
--- a/lisp/net/eudc-bob.el
+++ b/lisp/net/eudc-bob.el
@@ -149,7 +149,7 @@ display a button."
149 "Toggle inline display of an image." 149 "Toggle inline display of an image."
150 (interactive) 150 (interactive)
151 (when (eudc-bob-can-display-inline-images) 151 (when (eudc-bob-can-display-inline-images)
152 (cond (eudc-xemacs-p 152 (cond ((featurep 'xemacs)
153 (let ((overlays (append (overlays-at (1- (point))) 153 (let ((overlays (append (overlays-at (1- (point)))
154 (overlays-at (point)))) 154 (overlays-at (point))))
155 overlay glyph) 155 overlay glyph)
@@ -266,7 +266,7 @@ display a button."
266 (interactive "@e") 266 (interactive "@e")
267 (run-hooks 'activate-menubar-hook) 267 (run-hooks 'activate-menubar-hook)
268 (eudc-jump-to-event event) 268 (eudc-jump-to-event event)
269 (if eudc-xemacs-p 269 (if (featurep 'xemacs)
270 (progn 270 (progn
271 (run-hooks 'activate-popup-menu-hook) 271 (run-hooks 'activate-popup-menu-hook)
272 (popup-menu (eudc-bob-menu))) 272 (popup-menu (eudc-bob-menu)))
@@ -282,7 +282,7 @@ display a button."
282 (let ((map (make-sparse-keymap))) 282 (let ((map (make-sparse-keymap)))
283 (define-key map "s" 'eudc-bob-save-object) 283 (define-key map "s" 'eudc-bob-save-object)
284 (define-key map "!" 'eudc-bob-pipe-object-to-external-program) 284 (define-key map "!" 'eudc-bob-pipe-object-to-external-program)
285 (define-key map (if eudc-xemacs-p 285 (define-key map (if (featurep 'xemacs)
286 [button3] 286 [button3]
287 [down-mouse-3]) 'eudc-bob-popup-menu) 287 [down-mouse-3]) 'eudc-bob-popup-menu)
288 map)) 288 map))
@@ -295,7 +295,7 @@ display a button."
295(setq eudc-bob-sound-keymap 295(setq eudc-bob-sound-keymap
296 (let ((map (make-sparse-keymap))) 296 (let ((map (make-sparse-keymap)))
297 (define-key map [return] 'eudc-bob-play-sound-at-point) 297 (define-key map [return] 'eudc-bob-play-sound-at-point)
298 (define-key map (if eudc-xemacs-p 298 (define-key map (if (featurep 'xemacs)
299 [button2] 299 [button2]
300 [down-mouse-2]) 'eudc-bob-play-sound-at-mouse) 300 [down-mouse-2]) 'eudc-bob-play-sound-at-mouse)
301 map)) 301 map))
@@ -303,7 +303,7 @@ display a button."
303(setq eudc-bob-url-keymap 303(setq eudc-bob-url-keymap
304 (let ((map (make-sparse-keymap))) 304 (let ((map (make-sparse-keymap)))
305 (define-key map [return] 'browse-url-at-point) 305 (define-key map [return] 'browse-url-at-point)
306 (define-key map (if eudc-xemacs-p 306 (define-key map (if (featurep 'xemacs)
307 [button2] 307 [button2]
308 [down-mouse-2]) 'browse-url-at-mouse) 308 [down-mouse-2]) 'browse-url-at-mouse)
309 map)) 309 map))
@@ -311,7 +311,7 @@ display a button."
311(setq eudc-bob-mail-keymap 311(setq eudc-bob-mail-keymap
312 (let ((map (make-sparse-keymap))) 312 (let ((map (make-sparse-keymap)))
313 (define-key map [return] 'goto-address-at-point) 313 (define-key map [return] 'goto-address-at-point)
314 (define-key map (if eudc-xemacs-p 314 (define-key map (if (featurep 'xemacs)
315 [button2] 315 [button2]
316 [down-mouse-2]) 'goto-address-at-mouse) 316 [down-mouse-2]) 'goto-address-at-mouse)
317 map)) 317 map))
@@ -319,20 +319,19 @@ display a button."
319(set-keymap-parent eudc-bob-image-keymap eudc-bob-generic-keymap) 319(set-keymap-parent eudc-bob-image-keymap eudc-bob-generic-keymap)
320(set-keymap-parent eudc-bob-sound-keymap eudc-bob-generic-keymap) 320(set-keymap-parent eudc-bob-sound-keymap eudc-bob-generic-keymap)
321 321
322(if eudc-emacs-p 322(when (not (featurep 'xemacs))
323 (progn 323 (easy-menu-define eudc-bob-generic-menu
324 (easy-menu-define eudc-bob-generic-menu 324 eudc-bob-generic-keymap
325 eudc-bob-generic-keymap 325 ""
326 "" 326 eudc-bob-generic-menu)
327 eudc-bob-generic-menu) 327 (easy-menu-define eudc-bob-image-menu
328 (easy-menu-define eudc-bob-image-menu 328 eudc-bob-image-keymap
329 eudc-bob-image-keymap 329 ""
330 "" 330 eudc-bob-image-menu)
331 eudc-bob-image-menu) 331 (easy-menu-define eudc-bob-sound-menu
332 (easy-menu-define eudc-bob-sound-menu 332 eudc-bob-sound-keymap
333 eudc-bob-sound-keymap 333 ""
334 "" 334 eudc-bob-sound-menu))
335 eudc-bob-sound-menu)))
336 335
337;;;###autoload 336;;;###autoload
338(defun eudc-display-generic-binary (data) 337(defun eudc-display-generic-binary (data)
diff --git a/lisp/net/eudc-hotlist.el b/lisp/net/eudc-hotlist.el
index 2914ebdc1b0..5308bb2db1f 100644
--- a/lisp/net/eudc-hotlist.el
+++ b/lisp/net/eudc-hotlist.el
@@ -190,11 +190,11 @@ These are the special commands of this mode:
190 ["Save and Quit" eudc-hotlist-quit-edit t] 190 ["Save and Quit" eudc-hotlist-quit-edit t]
191 ["Exit without Saving" kill-this-buffer t])) 191 ["Exit without Saving" kill-this-buffer t]))
192 192
193(if eudc-emacs-p 193(when (not (featurep 'xemacs))
194 (easy-menu-define eudc-hotlist-emacs-menu 194 (easy-menu-define eudc-hotlist-emacs-menu
195 eudc-hotlist-mode-map 195 eudc-hotlist-mode-map
196 "" 196 ""
197 eudc-hotlist-menu)) 197 eudc-hotlist-menu))
198 198
199;;; arch-tag: 9b633ab3-6a6e-4b46-b12e-d96739a7e0e8 199;;; arch-tag: 9b633ab3-6a6e-4b46-b12e-d96739a7e0e8
200;;; eudc-hotlist.el ends here 200;;; eudc-hotlist.el ends here
diff --git a/lisp/net/eudc.el b/lisp/net/eudc.el
index 0f300c20736..f43b37187f7 100644
--- a/lisp/net/eudc.el
+++ b/lisp/net/eudc.el
@@ -66,13 +66,6 @@
66 66
67;;{{{ Internal variables and compatibility tricks 67;;{{{ Internal variables and compatibility tricks
68 68
69(defconst eudc-xemacs-p (string-match "XEmacs" emacs-version))
70(defconst eudc-emacs-p (not eudc-xemacs-p))
71(defconst eudc-xemacs-mule-p (and eudc-xemacs-p
72 (featurep 'mule)))
73(defconst eudc-emacs-mule-p (and eudc-emacs-p
74 (featurep 'mule)))
75
76(defvar eudc-form-widget-list nil) 69(defvar eudc-form-widget-list nil)
77(defvar eudc-mode-map nil) 70(defvar eudc-mode-map nil)
78 71
@@ -670,7 +663,7 @@ These are the special commands of EUDC mode:
670 (setq major-mode 'eudc-mode) 663 (setq major-mode 'eudc-mode)
671 (setq mode-name "EUDC") 664 (setq mode-name "EUDC")
672 (use-local-map eudc-mode-map) 665 (use-local-map eudc-mode-map)
673 (if eudc-emacs-p 666 (if (not (featurep 'xemacs))
674 (easy-menu-define eudc-emacs-menu eudc-mode-map "" (eudc-menu)) 667 (easy-menu-define eudc-emacs-menu eudc-mode-map "" (eudc-menu))
675 (setq mode-popup-menu (eudc-menu))) 668 (setq mode-popup-menu (eudc-menu)))
676 (run-mode-hooks 'eudc-mode-hook)) 669 (run-mode-hooks 'eudc-mode-hook))
@@ -1186,9 +1179,9 @@ queries the server for the existing fields and displays a corresponding form."
1186 1179
1187(defun eudc-install-menu () 1180(defun eudc-install-menu ()
1188 (cond 1181 (cond
1189 ((and eudc-xemacs-p (featurep 'menubar)) 1182 ((and (featurep 'xemacs) (featurep 'menubar))
1190 (add-submenu '("Tools") (eudc-menu))) 1183 (add-submenu '("Tools") (eudc-menu)))
1191 (eudc-emacs-p 1184 ((not (featurep 'xemacs))
1192 (cond 1185 (cond
1193 ((fboundp 'easy-menu-create-menu) 1186 ((fboundp 'easy-menu-create-menu)
1194 (define-key 1187 (define-key
@@ -1236,7 +1229,7 @@ This does nothing except loading eudc by autoload side-effect."
1236 nil) 1229 nil)
1237 1230
1238;;;###autoload 1231;;;###autoload
1239(cond ((not (string-match "XEmacs" emacs-version)) 1232(cond ((not (featurep 'xemacs))
1240 (defvar eudc-tools-menu (make-sparse-keymap "Directory Search")) 1233 (defvar eudc-tools-menu (make-sparse-keymap "Directory Search"))
1241 (fset 'eudc-tools-menu (symbol-value 'eudc-tools-menu)) 1234 (fset 'eudc-tools-menu (symbol-value 'eudc-tools-menu))
1242 (define-key eudc-tools-menu [phone] 1235 (define-key eudc-tools-menu [phone]
@@ -1267,7 +1260,7 @@ This does nothing except loading eudc by autoload side-effect."
1267 ["Get Email" eudc-get-email t] 1260 ["Get Email" eudc-get-email t]
1268 ["Get Phone" eudc-get-phone t]))) 1261 ["Get Phone" eudc-get-phone t])))
1269 (if (not (featurep 'eudc-autoloads)) 1262 (if (not (featurep 'eudc-autoloads))
1270 (if eudc-xemacs-p 1263 (if (featurep 'xemacs)
1271 (if (and (featurep 'menubar) 1264 (if (and (featurep 'menubar)
1272 (not (featurep 'infodock))) 1265 (not (featurep 'infodock)))
1273 (add-submenu '("Tools") menu)) 1266 (add-submenu '("Tools") menu))
diff --git a/lisp/net/eudcb-ph.el b/lisp/net/eudcb-ph.el
index 373b015b07e..5fed37f90a1 100644
--- a/lisp/net/eudcb-ph.el
+++ b/lisp/net/eudcb-ph.el
@@ -179,7 +179,7 @@ SERVER is either a string naming the server or a list (NAME PORT)."
179 (set-buffer eudc-ph-process-buffer) 179 (set-buffer eudc-ph-process-buffer)
180 (erase-buffer) 180 (erase-buffer)
181 (setq eudc-ph-read-point (point)) 181 (setq eudc-ph-read-point (point))
182 (and eudc-xemacs-mule-p 182 (and (featurep 'xemacs) (featurep 'mule)
183 (set-buffer-file-coding-system 'binary t))) 183 (set-buffer-file-coding-system 'binary t)))
184 (setq process (open-network-stream "ph" eudc-ph-process-buffer host port)) 184 (setq process (open-network-stream "ph" eudc-ph-process-buffer host port))
185 (if (null process) 185 (if (null process)
diff --git a/lisp/obsolete/fast-lock.el b/lisp/obsolete/fast-lock.el
index dd33fe0b461..e2fb338242f 100644
--- a/lisp/obsolete/fast-lock.el
+++ b/lisp/obsolete/fast-lock.el
@@ -337,7 +337,7 @@ If a number, only buffers greater than this size have processing messages."
337 :group 'fast-lock) 337 :group 'fast-lock)
338 338
339(defvar fast-lock-save-faces 339(defvar fast-lock-save-faces
340 (when (save-match-data (string-match "XEmacs" (emacs-version))) 340 (when (featurep 'xemacs)
341 ;; XEmacs uses extents for everything, so we have to pick the right ones. 341 ;; XEmacs uses extents for everything, so we have to pick the right ones.
342 font-lock-face-list) 342 font-lock-face-list)
343 "Faces that will be saved in a Font Lock cache file. 343 "Faces that will be saved in a Font Lock cache file.
diff --git a/lisp/progmodes/antlr-mode.el b/lisp/progmodes/antlr-mode.el
index 594b628ad44..01f1c86618c 100644
--- a/lisp/progmodes/antlr-mode.el
+++ b/lisp/progmodes/antlr-mode.el
@@ -99,7 +99,7 @@
99 (and (eq (car args) :@) (null msg) ; (:@ ...spliced...) 99 (and (eq (car args) :@) (null msg) ; (:@ ...spliced...)
100 (setq args (cdr args) 100 (setq args (cdr args)
101 msg "(:@ ....) must return exactly one element")) 101 msg "(:@ ....) must return exactly one element"))
102 (let ((ignore (if (string-match "XEmacs" emacs-version) :EMACS :XEMACS)) 102 (let ((ignore (if (featurep 'xemacs) :EMACS :XEMACS))
103 (mode :BOTH) code) 103 (mode :BOTH) code)
104 (while (consp args) 104 (while (consp args)
105 (if (memq (car args) '(:EMACS :XEMACS :BOTH)) (setq mode (pop args))) 105 (if (memq (car args) '(:EMACS :XEMACS :BOTH)) (setq mode (pop args)))
@@ -115,7 +115,7 @@
115 ;; existing functions when they are `fboundp', provide shortcuts if they are 115 ;; existing functions when they are `fboundp', provide shortcuts if they are
116 ;; known to be defined in a specific Emacs branch (for short .elc) 116 ;; known to be defined in a specific Emacs branch (for short .elc)
117 (defmacro defunx (name arglist &rest definition) 117 (defmacro defunx (name arglist &rest definition)
118 (let ((xemacsp (string-match "XEmacs" emacs-version)) reuses) 118 (let ((xemacsp (featurep 'xemacs)) reuses)
119 (while (memq (car definition) 119 (while (memq (car definition)
120 '(:try :emacs-and-try :xemacs-and-try)) 120 '(:try :emacs-and-try :xemacs-and-try))
121 (if (eq (pop definition) (if xemacsp :xemacs-and-try :emacs-and-try)) 121 (if (eq (pop definition) (if xemacsp :xemacs-and-try :emacs-and-try))
@@ -152,7 +152,7 @@
152 (defmacro ignore-errors-x (&rest body) 152 (defmacro ignore-errors-x (&rest body)
153 (let ((specials '((scan-sexps . 4) (scan-lists . 5))) 153 (let ((specials '((scan-sexps . 4) (scan-lists . 5)))
154 spec nils) 154 spec nils)
155 (if (and (string-match "XEmacs" emacs-version) 155 (if (and (featurep 'xemacs)
156 (null (cdr body)) (consp (car body)) 156 (null (cdr body)) (consp (car body))
157 (setq spec (assq (caar body) specials)) 157 (setq spec (assq (caar body) specials))
158 (>= (setq nils (- (cdr spec) (length (car body)))) 0)) 158 (>= (setq nils (- (cdr spec) (length (car body)))) 0))
@@ -166,7 +166,7 @@
166 `(let ((,modified (buffer-modified-p))) 166 `(let ((,modified (buffer-modified-p)))
167 (unwind-protect 167 (unwind-protect
168 (let ((buffer-undo-list t) (inhibit-read-only t) 168 (let ((buffer-undo-list t) (inhibit-read-only t)
169 ,@(unless (string-match "XEmacs" emacs-version) 169 ,@(unless (featurep 'xemacs)
170 '((inhibit-point-motion-hooks t) deactivate-mark)) 170 '((inhibit-point-motion-hooks t) deactivate-mark))
171 before-change-functions after-change-functions 171 before-change-functions after-change-functions
172 buffer-file-name buffer-file-truename) 172 buffer-file-name buffer-file-truename)
diff --git a/lisp/progmodes/octave-mod.el b/lisp/progmodes/octave-mod.el
index b7084950a09..a0d33f56ee4 100644
--- a/lisp/progmodes/octave-mod.el
+++ b/lisp/progmodes/octave-mod.el
@@ -621,9 +621,6 @@ the end keyword."
621 (delete-horizontal-space) 621 (delete-horizontal-space)
622 (insert (concat " " octave-continuation-string)))) 622 (insert (concat " " octave-continuation-string))))
623 623
624(defvar octave-xemacs-p
625 (string-match "XEmacs\\|Lucid" emacs-version))
626
627;;; Comments 624;;; Comments
628(defun octave-comment-region (beg end &optional arg) 625(defun octave-comment-region (beg end &optional arg)
629 "Comment or uncomment each line in the region as Octave code. 626 "Comment or uncomment each line in the region as Octave code.
@@ -1341,7 +1338,7 @@ Note that all Octave mode abbrevs start with a grave accent."
1341 (self-insert-command 1) 1338 (self-insert-command 1)
1342 (let (c) 1339 (let (c)
1343 (insert last-command-char) 1340 (insert last-command-char)
1344 (if (if octave-xemacs-p 1341 (if (if (featurep 'xemacs)
1345 (or (eq (event-to-character (setq c (next-event))) ??) 1342 (or (eq (event-to-character (setq c (next-event))) ??)
1346 (eq (event-to-character c) help-char)) 1343 (eq (event-to-character c) help-char))
1347 (or (eq (setq c (read-event)) ??) 1344 (or (eq (setq c (read-event)) ??)
diff --git a/lisp/progmodes/vera-mode.el b/lisp/progmodes/vera-mode.el
index 9aaee22b9a9..11f47b40592 100644
--- a/lisp/progmodes/vera-mode.el
+++ b/lisp/progmodes/vera-mode.el
@@ -77,10 +77,6 @@
77 77
78;;; Code: 78;;; Code:
79 79
80;; XEmacs handling
81(defconst vera-xemacs (string-match "XEmacs" emacs-version)
82 "Non-nil if XEmacs is used.")
83
84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
85;;; Variables 81;;; Variables
86;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -231,7 +227,7 @@ If nil, TAB always indents current line."
231 (modify-syntax-entry ?\{ "(}" syntax-table) 227 (modify-syntax-entry ?\{ "(}" syntax-table)
232 (modify-syntax-entry ?\} "){" syntax-table) 228 (modify-syntax-entry ?\} "){" syntax-table)
233 ;; comment 229 ;; comment
234 (if vera-xemacs 230 (if (featurep 'xemacs)
235 (modify-syntax-entry ?\/ ". 1456" syntax-table) ; XEmacs 231 (modify-syntax-entry ?\/ ". 1456" syntax-table) ; XEmacs
236 (modify-syntax-entry ?\/ ". 124b" syntax-table)) ; Emacs 232 (modify-syntax-entry ?\/ ". 124b" syntax-table)) ; Emacs
237 (modify-syntax-entry ?\* ". 23" syntax-table) 233 (modify-syntax-entry ?\* ". 23" syntax-table)
@@ -600,7 +596,7 @@ Key bindings:
600;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 596;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
601 597
602;; XEmacs compatibility 598;; XEmacs compatibility
603(when vera-xemacs 599(when (featurep 'xemacs)
604 (require 'font-lock) 600 (require 'font-lock)
605 (copy-face 'font-lock-reference-face 'font-lock-constant-face) 601 (copy-face 'font-lock-reference-face 'font-lock-constant-face)
606 (copy-face 'font-lock-preprocessor-face 'font-lock-builtin-face)) 602 (copy-face 'font-lock-preprocessor-face 'font-lock-builtin-face))
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el
index 60d30eb8a6d..df315e4f46e 100644
--- a/lisp/progmodes/vhdl-mode.el
+++ b/lisp/progmodes/vhdl-mode.el
@@ -125,13 +125,10 @@
125 125
126;;; Code: 126;;; Code:
127 127
128;; XEmacs handling
129(defconst vhdl-xemacs (string-match "XEmacs" emacs-version)
130 "Non-nil if XEmacs is used.")
131;; Emacs 21+ handling 128;; Emacs 21+ handling
132(defconst vhdl-emacs-21 (and (<= 21 emacs-major-version) (not vhdl-xemacs)) 129(defconst vhdl-emacs-21 (and (<= 21 emacs-major-version) (not (featurep 'xemacs)))
133 "Non-nil if GNU Emacs 21, 22, ... is used.") 130 "Non-nil if GNU Emacs 21, 22, ... is used.")
134(defconst vhdl-emacs-22 (and (<= 22 emacs-major-version) (not vhdl-xemacs)) 131(defconst vhdl-emacs-22 (and (<= 22 emacs-major-version) (not (featurep 'xemacs)))
135 "Non-nil if GNU Emacs 22, ... is used.") 132 "Non-nil if GNU Emacs 22, ... is used.")
136 133
137(defvar compilation-file-regexp-alist) 134(defvar compilation-file-regexp-alist)
@@ -1844,13 +1841,13 @@ NOTE: Activate the new setting in a VHDL buffer by using the menu entry
1844 1841
1845;; add related general customizations 1842;; add related general customizations
1846(custom-add-to-group 'vhdl-related 'hideshow 'custom-group) 1843(custom-add-to-group 'vhdl-related 'hideshow 'custom-group)
1847(if vhdl-xemacs 1844(if (featurep 'xemacs)
1848 (custom-add-to-group 'vhdl-related 'paren-mode 'custom-variable) 1845 (custom-add-to-group 'vhdl-related 'paren-mode 'custom-variable)
1849 (custom-add-to-group 'vhdl-related 'paren-showing 'custom-group)) 1846 (custom-add-to-group 'vhdl-related 'paren-showing 'custom-group))
1850(custom-add-to-group 'vhdl-related 'ps-print 'custom-group) 1847(custom-add-to-group 'vhdl-related 'ps-print 'custom-group)
1851(custom-add-to-group 'vhdl-related 'speedbar 'custom-group) 1848(custom-add-to-group 'vhdl-related 'speedbar 'custom-group)
1852(custom-add-to-group 'vhdl-related 'line-number-mode 'custom-variable) 1849(custom-add-to-group 'vhdl-related 'line-number-mode 'custom-variable)
1853(unless vhdl-xemacs 1850(unless (featurep 'xemacs)
1854 (custom-add-to-group 'vhdl-related 'transient-mark-mode 'custom-variable)) 1851 (custom-add-to-group 'vhdl-related 'transient-mark-mode 'custom-variable))
1855(custom-add-to-group 'vhdl-related 'user-full-name 'custom-variable) 1852(custom-add-to-group 'vhdl-related 'user-full-name 'custom-variable)
1856(custom-add-to-group 'vhdl-related 'mail-host-address 'custom-variable) 1853(custom-add-to-group 'vhdl-related 'mail-host-address 'custom-variable)
@@ -2093,7 +2090,7 @@ Ignore byte-compiler warnings you might see."
2093 newstr))) 2090 newstr)))
2094 2091
2095;; `itimer.el': idle timer bug fix in version 1.09 (XEmacs 21.1.9) 2092;; `itimer.el': idle timer bug fix in version 1.09 (XEmacs 21.1.9)
2096(when (and vhdl-xemacs (string< itimer-version "1.09") 2093(when (and (featurep 'xemacs) (string< itimer-version "1.09")
2097 (not noninteractive)) 2094 (not noninteractive))
2098 (load "itimer") 2095 (load "itimer")
2099 (when (string< itimer-version "1.09") 2096 (when (string< itimer-version "1.09")
@@ -2486,7 +2483,7 @@ conversion."
2486(defun vhdl-show-messages () 2483(defun vhdl-show-messages ()
2487 "Get *Messages* buffer to show recent messages." 2484 "Get *Messages* buffer to show recent messages."
2488 (interactive) 2485 (interactive)
2489 (display-buffer (if vhdl-xemacs " *Message-Log*" "*Messages*"))) 2486 (display-buffer (if (featurep 'xemacs) " *Message-Log*" "*Messages*")))
2490 2487
2491(defun vhdl-use-direct-instantiation () 2488(defun vhdl-use-direct-instantiation ()
2492 "Return whether direct instantiation is used." 2489 "Return whether direct instantiation is used."
@@ -2686,7 +2683,7 @@ STRING are replaced by `-' and substrings are converted to lower case."
2686 (define-key vhdl-mode-map "\M-\C-u" 'vhdl-backward-up-list) 2683 (define-key vhdl-mode-map "\M-\C-u" 'vhdl-backward-up-list)
2687 (define-key vhdl-mode-map "\M-\C-a" 'vhdl-backward-same-indent) 2684 (define-key vhdl-mode-map "\M-\C-a" 'vhdl-backward-same-indent)
2688 (define-key vhdl-mode-map "\M-\C-e" 'vhdl-forward-same-indent) 2685 (define-key vhdl-mode-map "\M-\C-e" 'vhdl-forward-same-indent)
2689 (unless vhdl-xemacs ; would override `M-backspace' in XEmacs 2686 (unless (featurep 'xemacs) ; would override `M-backspace' in XEmacs
2690 (define-key vhdl-mode-map "\M-\C-h" 'vhdl-mark-defun)) 2687 (define-key vhdl-mode-map "\M-\C-h" 'vhdl-mark-defun))
2691 (define-key vhdl-mode-map "\M-\C-q" 'vhdl-indent-sexp) 2688 (define-key vhdl-mode-map "\M-\C-q" 'vhdl-indent-sexp)
2692 (define-key vhdl-mode-map "\M-^" 'vhdl-delete-indentation) 2689 (define-key vhdl-mode-map "\M-^" 'vhdl-delete-indentation)
@@ -2713,7 +2710,7 @@ STRING are replaced by `-' and substrings are converted to lower case."
2713 (define-key vhdl-mode-map "\C-c\C-p\C-i" 'vhdl-port-paste-instance) 2710 (define-key vhdl-mode-map "\C-c\C-p\C-i" 'vhdl-port-paste-instance)
2714 (define-key vhdl-mode-map "\C-c\C-p\C-s" 'vhdl-port-paste-signals) 2711 (define-key vhdl-mode-map "\C-c\C-p\C-s" 'vhdl-port-paste-signals)
2715 (define-key vhdl-mode-map "\C-c\C-p\M-c" 'vhdl-port-paste-constants) 2712 (define-key vhdl-mode-map "\C-c\C-p\M-c" 'vhdl-port-paste-constants)
2716 (if vhdl-xemacs ; `... C-g' not allowed in XEmacs 2713 (if (featurep 'xemacs) ; `... C-g' not allowed in XEmacs
2717 (define-key vhdl-mode-map "\C-c\C-p\M-g" 'vhdl-port-paste-generic-map) 2714 (define-key vhdl-mode-map "\C-c\C-p\M-g" 'vhdl-port-paste-generic-map)
2718 (define-key vhdl-mode-map "\C-c\C-p\C-g" 'vhdl-port-paste-generic-map)) 2715 (define-key vhdl-mode-map "\C-c\C-p\C-g" 'vhdl-port-paste-generic-map))
2719 (define-key vhdl-mode-map "\C-c\C-p\C-z" 'vhdl-port-paste-initializations) 2716 (define-key vhdl-mode-map "\C-c\C-p\C-z" 'vhdl-port-paste-initializations)
@@ -5395,7 +5392,7 @@ negative, skip forward otherwise."
5395 (skip-chars-forward " \t\n")))) 5392 (skip-chars-forward " \t\n"))))
5396 5393
5397;; XEmacs hack: work around buggy `forward-comment' in XEmacs 21.4+ 5394;; XEmacs hack: work around buggy `forward-comment' in XEmacs 21.4+
5398(unless (and vhdl-xemacs (string< "21.2" emacs-version)) 5395(unless (and (featurep 'xemacs) (string< "21.2" emacs-version))
5399 (defalias 'vhdl-forward-comment 'forward-comment)) 5396 (defalias 'vhdl-forward-comment 'forward-comment))
5400 5397
5401;; This is the best we can do in Win-Emacs. 5398;; This is the best we can do in Win-Emacs.
@@ -13013,7 +13010,7 @@ This does background highlighting of translate-off regions.")
13013 13010
13014(defun vhdl-ps-print-init () 13011(defun vhdl-ps-print-init ()
13015 "Initialize postscript printing." 13012 "Initialize postscript printing."
13016 (if vhdl-xemacs 13013 (if (featurep 'xemacs)
13017 (when (boundp 'ps-print-color-p) 13014 (when (boundp 'ps-print-color-p)
13018 (vhdl-ps-print-settings)) 13015 (vhdl-ps-print-settings))
13019 (make-local-variable 'ps-print-hook) 13016 (make-local-variable 'ps-print-hook)
@@ -14064,10 +14061,10 @@ if required."
14064 (save-excursion (beginning-of-line) (looking-at "[0-9]+:"))] 14061 (save-excursion (beginning-of-line) (looking-at "[0-9]+:"))]
14065 ["Rescan Directory" vhdl-speedbar-rescan-hierarchy 14062 ["Rescan Directory" vhdl-speedbar-rescan-hierarchy
14066 :active (save-excursion (beginning-of-line) (looking-at "[0-9]+:")) 14063 :active (save-excursion (beginning-of-line) (looking-at "[0-9]+:"))
14067 ,(if vhdl-xemacs :active :visible) (not vhdl-speedbar-show-projects)] 14064 ,(if (featurep 'xemacs) :active :visible) (not vhdl-speedbar-show-projects)]
14068 ["Rescan Project" vhdl-speedbar-rescan-hierarchy 14065 ["Rescan Project" vhdl-speedbar-rescan-hierarchy
14069 :active (save-excursion (beginning-of-line) (looking-at "[0-9]+:")) 14066 :active (save-excursion (beginning-of-line) (looking-at "[0-9]+:"))
14070 ,(if vhdl-xemacs :active :visible) vhdl-speedbar-show-projects] 14067 ,(if (featurep 'xemacs) :active :visible) vhdl-speedbar-show-projects]
14071 ["Save Caches" vhdl-save-caches vhdl-updated-project-list]))) 14068 ["Save Caches" vhdl-save-caches vhdl-updated-project-list])))
14072 ;; hook-ups 14069 ;; hook-ups
14073 (speedbar-add-expansion-list 14070 (speedbar-add-expansion-list
@@ -16189,7 +16186,7 @@ no project is defined."
16189 (assoc (car sublist) regexp-alist)) 16186 (assoc (car sublist) regexp-alist))
16190 (setq regexp-alist (cons (list (nth 0 sublist) 16187 (setq regexp-alist (cons (list (nth 0 sublist)
16191 (if (= 0 (nth 1 sublist)) 16188 (if (= 0 (nth 1 sublist))
16192 (if vhdl-xemacs 9 nil) 16189 (if (featurep 'xemacs) 9 nil)
16193 (nth 1 sublist)) 16190 (nth 1 sublist))
16194 (nth 2 sublist) (nth 3 sublist)) 16191 (nth 2 sublist) (nth 3 sublist))
16195 regexp-alist))) 16192 regexp-alist)))
@@ -16989,7 +16986,7 @@ to visually support naming conventions.")
16989(defun vhdl-doc-variable (variable) 16986(defun vhdl-doc-variable (variable)
16990 "Display VARIABLE's documentation in *Help* buffer." 16987 "Display VARIABLE's documentation in *Help* buffer."
16991 (interactive) 16988 (interactive)
16992 (unless vhdl-xemacs 16989 (unless (featurep 'xemacs)
16993 (help-setup-xref (list #'vhdl-doc-variable variable) (interactive-p))) 16990 (help-setup-xref (list #'vhdl-doc-variable variable) (interactive-p)))
16994 (with-output-to-temp-buffer 16991 (with-output-to-temp-buffer
16995 (if (fboundp 'help-buffer) (help-buffer) "*Help*") 16992 (if (fboundp 'help-buffer) (help-buffer) "*Help*")
@@ -17001,7 +16998,7 @@ to visually support naming conventions.")
17001(defun vhdl-doc-mode () 16998(defun vhdl-doc-mode ()
17002 "Display VHDL Mode documentation in *Help* buffer." 16999 "Display VHDL Mode documentation in *Help* buffer."
17003 (interactive) 17000 (interactive)
17004 (unless vhdl-xemacs 17001 (unless (featurep 'xemacs)
17005 (help-setup-xref (list #'vhdl-doc-mode) (interactive-p))) 17002 (help-setup-xref (list #'vhdl-doc-mode) (interactive-p)))
17006 (with-output-to-temp-buffer 17003 (with-output-to-temp-buffer
17007 (if (fboundp 'help-buffer) (help-buffer) "*Help*") 17004 (if (fboundp 'help-buffer) (help-buffer) "*Help*")
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index a8633b9a75f..49b0960f9bb 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -1449,7 +1449,7 @@ Please send all bug fixes and enhancements to
1449 (error "`ps-print' requires floating point support")) 1449 (error "`ps-print' requires floating point support"))
1450 1450
1451(let ((case-fold-search t)) 1451(let ((case-fold-search t))
1452 (cond ((string-match "XEmacs" emacs-version)) 1452 (cond ((featurep 'xemacs))
1453 ((string-match "Lucid" emacs-version) 1453 ((string-match "Lucid" emacs-version)
1454 (error "`ps-print' doesn't support Lucid")) 1454 (error "`ps-print' doesn't support Lucid"))
1455 ((string-match "Epoch" emacs-version) 1455 ((string-match "Epoch" emacs-version)