aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-03-05 08:48:29 +0000
committerGlenn Morris2008-03-05 08:48:29 +0000
commitdc3fbc6a364ccb6a828a6b884f96342701ae23dd (patch)
tree48269b55d759e477a1ccb65dcaf51ff17a0dd06c
parent03365d0eb5c09d346c56437912a4ddd9b0884ac9 (diff)
downloademacs-dc3fbc6a364ccb6a828a6b884f96342701ae23dd.tar.gz
emacs-dc3fbc6a364ccb6a828a6b884f96342701ae23dd.zip
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
-rw-r--r--lisp/ediff-diff.el2
-rw-r--r--lisp/ediff-help.el15
2 files changed, 7 insertions, 10 deletions
diff --git a/lisp/ediff-diff.el b/lisp/ediff-diff.el
index b690bfbe4e1..00060a9e974 100644
--- a/lisp/ediff-diff.el
+++ b/lisp/ediff-diff.el
@@ -1311,7 +1311,7 @@ These characters are ignored when differing regions are split into words.")
1311(make-variable-buffer-local 'ediff-whitespace) 1311(make-variable-buffer-local 'ediff-whitespace)
1312 1312
1313(defvar ediff-word-1 1313(defvar ediff-word-1
1314 (ediff-cond-compile-for-xemacs-or-emacs "a-zA-Z---_" "-[:word:]_") 1314 (if (featurep 'xemacs) "a-zA-Z---_" "-[:word:]_")
1315 "*Characters that constitute words of type 1. 1315 "*Characters that constitute words of type 1.
1316More precisely, [ediff-word-1] is a regexp that matches type 1 words. 1316More precisely, [ediff-word-1] is a regexp that matches type 1 words.
1317See `ediff-forward-word' for more details.") 1317See `ediff-forward-word' for more details.")
diff --git a/lisp/ediff-help.el b/lisp/ediff-help.el
index 97da0d89b7b..988fc9171ac 100644
--- a/lisp/ediff-help.el
+++ b/lisp/ediff-help.el
@@ -190,15 +190,12 @@ the value of this variable and the variables `ediff-help-message-*' in
190 (let ((pos (ediff-event-point last-command-event)) 190 (let ((pos (ediff-event-point last-command-event))
191 overl cmd) 191 overl cmd)
192 192
193 (ediff-cond-compile-for-xemacs-or-emacs 193 (if (featurep 'xemacs)
194 ;; xemacs 194 (setq overl (extent-at pos (current-buffer) 'ediff-help-info)
195 (setq overl (extent-at pos (current-buffer) 'ediff-help-info) 195 cmd (ediff-overlay-get overl 'ediff-help-info))
196 cmd (ediff-overlay-get overl 'ediff-help-info)) 196 (setq cmd (car (mapcar (lambda (elt)
197 ;; emacs 197 (overlay-get elt 'ediff-help-info))
198 (setq cmd (car (mapcar (lambda (elt) 198 (overlays-at pos)))))
199 (overlay-get elt 'ediff-help-info))
200 (overlays-at pos))))
201 )
202 199
203 (if (not (stringp cmd)) 200 (if (not (stringp cmd))
204 (error "Hmm... I don't see an Ediff command around here...")) 201 (error "Hmm... I don't see an Ediff command around here..."))