aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-08-29 10:12:36 +0000
committerJuanma Barranquero2005-08-29 10:12:36 +0000
commitffbc255f067da05eebefa89349c56e2ccb701fd0 (patch)
treefd3065afdf9d0d492632401394a5ee4789aa381f
parent6292971356c91a500a5d7eea36466838418e0bc5 (diff)
downloademacs-ffbc255f067da05eebefa89349c56e2ccb701fd0.tar.gz
emacs-ffbc255f067da05eebefa89349c56e2ccb701fd0.zip
(mouse-select-or-drag-move-point): Don't pass X and Y (they are ignored anyway).
(mouse-set-mark, mouse-select-window, mouse-delete-other-windows, mouse-delete-window): Make arguments optional.
-rw-r--r--lisp/obsolete/sun-fns.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/obsolete/sun-fns.el b/lisp/obsolete/sun-fns.el
index bca76730e48..614b352ad3a 100644
--- a/lisp/obsolete/sun-fns.el
+++ b/lisp/obsolete/sun-fns.el
@@ -85,7 +85,7 @@
85 (setq this-command 'mouse-yank-move)) 85 (setq this-command 'mouse-yank-move))
86 ) 86 )
87 87
88(defun mouse-set-mark (window x y) 88(defun mouse-set-mark (&optional window x y)
89 "Set mark at mouse cursor." 89 "Set mark at mouse cursor."
90 (eval-in-window window ;; use this to get the unwind protect 90 (eval-in-window window ;; use this to get the unwind protect
91 (let ((point (point))) 91 (let ((point (point)))
@@ -137,7 +137,7 @@ and put the region in the stuff buffer."
137 "Select window if not selected, otherwise do mouse-drag-move-point." 137 "Select window if not selected, otherwise do mouse-drag-move-point."
138 (if (eq (selected-window) window) 138 (if (eq (selected-window) window)
139 (mouse-drag-move-point window x y) 139 (mouse-drag-move-point window x y)
140 (mouse-select-window window x y))) 140 (mouse-select-window window)))
141 141
142;;; 142;;;
143;;; esoterica: 143;;; esoterica:
@@ -283,15 +283,15 @@ this command is insensitive to mouse location."
283 "Split the window vertically at the mouse cursor." 283 "Split the window vertically at the mouse cursor."
284 (eval-in-window window (split-window-vertically (1+ y)))) 284 (eval-in-window window (split-window-vertically (1+ y))))
285 285
286(defun mouse-select-window (window x y) 286(defun mouse-select-window (&optional window x y)
287 "Selects the window, restoring point." 287 "Selects the window, restoring point."
288 (select-window window)) 288 (select-window window))
289 289
290(defun mouse-delete-other-windows (window x y) 290(defun mouse-delete-other-windows (&optional window x y)
291 "Deletes all windows except the one mouse is in." 291 "Deletes all windows except the one mouse is in."
292 (delete-other-windows window)) 292 (delete-other-windows window))
293 293
294(defun mouse-delete-window (window x y) 294(defun mouse-delete-window (window &optional x y)
295 "Deletes the window mouse is in." 295 "Deletes the window mouse is in."
296 (delete-window window)) 296 (delete-window window))
297 297