comparison lisp/term/sun-mouse.el @ 779:c2dbf1fe0506

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Wed, 15 Jul 1992 03:24:58 +0000
parents 7cbd4fcd8b0f
children 4f28bd14272c
comparison
equal deleted inserted replaced
778:cd00bdacc17b 779:c2dbf1fe0506
216 (- nc cc))) 216 (- nc cc)))
217 217
218 218
219 (defun minibuffer-window-p (window) 219 (defun minibuffer-window-p (window)
220 "True iff this WINDOW is minibuffer." 220 "True iff this WINDOW is minibuffer."
221 (= (screen-height) 221 (= (frame-height)
222 (nth 3 (window-edges window)) ; The bottom edge. 222 (nth 3 (window-edges window)) ; The bottom edge.
223 )) 223 ))
224 224
225 225
226 (defun sun-mouse-handler (&optional hit) 226 (defun sun-mouse-handler (&optional hit)
334 (let ((we (window-edges (selected-window)))) 334 (let ((we (window-edges (selected-window))))
335 (let ((le (nth 0 we)) 335 (let ((le (nth 0 we))
336 (te (nth 1 we)) 336 (te (nth 1 we))
337 (re (nth 2 we)) 337 (re (nth 2 we))
338 (be (nth 3 we))) 338 (be (nth 3 we)))
339 (if (= re (screen-width)) 339 (if (= re (frame-width))
340 ;; include the continuation column with this window 340 ;; include the continuation column with this window
341 (setq re (1+ re))) 341 (setq re (1+ re)))
342 (if (= be (screen-height)) 342 (if (= be (frame-height))
343 ;; include partial line at bottom of screen with this window 343 ;; include partial line at bottom of frame with this window
344 ;; id est, if window is not multple of char size. 344 ;; id est, if window is not multple of char size.
345 (setq be (1+ be))) 345 (setq be (1+ be)))
346 346
347 (if (and (>= x le) (< x re) 347 (if (and (>= x le) (< x re)
348 (>= y te) (< y be)) 348 (>= y te) (< y be))
373 'scrollbar) 373 'scrollbar)
374 (t 'text))))) 374 (t 'text)))))
375 375
376 (defun window-line-end (w x y) 376 (defun window-line-end (w x y)
377 "Return WINDOW column (ignore X) containing end of line Y" 377 "Return WINDOW column (ignore X) containing end of line Y"
378 (eval-in-window w (save-excursion (move-to-loc (screen-width) y)))) 378 (eval-in-window w (save-excursion (move-to-loc (frame-width) y))))
379 379
380 ;;; 380 ;;;
381 ;;; The encoding of mouse events into a mousemap. 381 ;;; The encoding of mouse events into a mousemap.
382 ;;; These values must agree with coding in emacstool: 382 ;;; These values must agree with coding in emacstool:
383 ;;; 383 ;;;