aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/crisp.el2
-rw-r--r--lisp/emulation/tpu-edt.el4
2 files changed, 2 insertions, 4 deletions
diff --git a/lisp/emulation/crisp.el b/lisp/emulation/crisp.el
index b5fd7ee602..7c254da869 100644
--- a/lisp/emulation/crisp.el
+++ b/lisp/emulation/crisp.el
@@ -148,7 +148,7 @@ does not load the scroll-all package."
(defun crisp-region-active ()
"Compatibility function to test for an active region."
- (if (boundp 'zmacs-region-active-p)
+ (if (featurep 'xemacs)
zmacs-region-active-p
mark-active))
diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el
index ff0e6ad25e..e9de0409aa 100644
--- a/lisp/emulation/tpu-edt.el
+++ b/lisp/emulation/tpu-edt.el
@@ -751,9 +751,7 @@ version of Emacs."
Sets the mark at POS and activates the region according to the
current version of Emacs."
(set-mark pos)
- ;; We use a separate `if' for the fboundp so the byte-compiler notices it
- ;; and doesn't complain about the subsequent call.
- (if (fboundp 'zmacs-activate-region) (if pos (zmacs-activate-region))))
+ (when (featurep 'xemacs) (when pos (zmacs-activate-region))))
(defun tpu-string-prompt (prompt history-symbol)
"Read a string with PROMPT."