diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2007-11-01 03:18:42 +0000 |
---|---|---|
committer | Dan Nicolaescu <dann@ics.uci.edu> | 2007-11-01 03:18:42 +0000 |
commit | 399f21c18888bab8c0712928d4812d0b420ad27e (patch) | |
tree | 9bb28cc94829da7e9dea3090391af92c18cc3694 /lisp/ediff-util.el | |
parent | 07e5c0b0b70e308b4dc4ac5b3ee832894f746a81 (diff) | |
download | emacs-399f21c18888bab8c0712928d4812d0b420ad27e.tar.gz |
* ediff-util.el (ediff-nuke-selective-display): Move definition to
top level, make it dependent on the emacs flavor.
* play/gamegrid.el (gamegrid-kill-timer, gamegrid-start-timer):
Test for XEmacs not for itimer.
Diffstat (limited to 'lisp/ediff-util.el')
-rw-r--r-- | lisp/ediff-util.el | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/lisp/ediff-util.el b/lisp/ediff-util.el index 4583e754793..3bc82dd4daf 100644 --- a/lisp/ediff-util.el +++ b/lisp/ediff-util.el @@ -4071,28 +4071,25 @@ Mail anyway? (y or n) ") ) )) -(cond ((fboundp 'nuke-selective-display) - ;; XEmacs has nuke-selective-display - (defalias 'ediff-nuke-selective-display 'nuke-selective-display)) - (t - (defun ediff-nuke-selective-display () - (save-excursion - (save-restriction - (widen) - (goto-char (point-min)) - (let ((mod-p (buffer-modified-p)) - buffer-read-only end) - (and (eq t selective-display) - (while (search-forward "\^M" nil t) - (end-of-line) - (setq end (point)) - (beginning-of-line) - (while (search-forward "\^M" end t) - (delete-char -1) - (insert "\^J")))) - (set-buffer-modified-p mod-p) - (setq selective-display nil))))) - )) +(defun ediff-nuke-selective-display () + (if (featurep 'xemacs) + (nuke-selective-display) + (save-excursion + (save-restriction + (widen) + (goto-char (point-min)) + (let ((mod-p (buffer-modified-p)) + buffer-read-only end) + (and (eq t selective-display) + (while (search-forward "\^M" nil t) + (end-of-line) + (setq end (point)) + (beginning-of-line) + (while (search-forward "\^M" end t) + (delete-char -1) + (insert "\^J")))) + (set-buffer-modified-p mod-p) + (setq selective-display nil)))))) ;; The next two are modified versions from emerge.el. |