+2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * 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.
+
+ * term/sun-mouse.el:
+ * obsolete/sun-fns.el:
+ * obsolete/sun-curs.el: Remove files.
+
+ * term/sun.el (select-previous-complex-command): Remove
+ obsolete code.
+
2007-10-31 Tassilo Horn <tassilo@member.fsf.org>
* doc-view.el (doc-view-cache-directory): Fix bug where an integer
)
))
-(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.
(defun gamegrid-start-timer (period func)
(setq gamegrid-timer
- (if (featurep 'itimer)
+ (if (featurep 'xemacs)
(start-itimer "Gamegrid"
func
period
(defun gamegrid-kill-timer ()
(if gamegrid-timer
- (if (featurep 'itimer)
+ (if (featurep 'xemacs)
(delete-itimer gamegrid-timer)
(cancel-timer gamegrid-timer)))
(setq gamegrid-timer nil))