comparison lisp/term/sun-mouse.el @ 13962:dd14d8d6e7db

(describe-mouse-briefly): Fix message spelling.
author Karl Heuer <kwzh@gnu.org>
date Thu, 04 Jan 1996 23:21:26 +0000
parents 507f64624555
children 23cc3f54e536
comparison
equal deleted inserted replaced
13961:ff6ac63de609 13962:dd14d8d6e7db
26 26
27 ;;; Jeff Peck, Sun Microsystems, Jan 1987. 27 ;;; Jeff Peck, Sun Microsystems, Jan 1987.
28 ;;; Original idea by Stan Jefferson 28 ;;; Original idea by Stan Jefferson
29 29
30 ;;; 30 ;;;
31 ;;; Modelled after the GNUEMACS keymap interface. 31 ;;; Modeled after the GNUEMACS keymap interface.
32 ;;; 32 ;;;
33 ;;; User Functions: 33 ;;; User Functions:
34 ;;; make-mousemap, copy-mousemap, 34 ;;; make-mousemap, copy-mousemap,
35 ;;; define-mouse, global-set-mouse, local-set-mouse, 35 ;;; define-mouse, global-set-mouse, local-set-mouse,
36 ;;; use-global-mousemap, use-local-mousemap, 36 ;;; use-global-mousemap, use-local-mousemap,
271 nil) 271 nil)
272 272
273 (defun sm::combined-hits () 273 (defun sm::combined-hits ()
274 "Read and return next mouse-hit, include possible double click" 274 "Read and return next mouse-hit, include possible double click"
275 (let ((hit1 (mouse-hit-read))) 275 (let ((hit1 (mouse-hit-read)))
276 (if (not (sm::hit-up-p hit1)) ; Up hits dont start doubles or chords. 276 (if (not (sm::hit-up-p hit1)) ; Up hits don't start doubles or chords.
277 (let ((hit2 (mouse-second-hit extra-click-wait))) 277 (let ((hit2 (mouse-second-hit extra-click-wait)))
278 (if hit2 ; we cons'd it, we can smash it. 278 (if hit2 ; we cons'd it, we can smash it.
279 ; (setf (sm::hit-code hit1) (logior (sm::hit-code hit1) ...)) 279 ; (setf (sm::hit-code hit1) (logior (sm::hit-code hit1) ...))
280 (setcar hit1 (logior (sm::hit-code hit1) 280 (setcar hit1 (logior (sm::hit-code hit1)
281 (sm::hit-code hit2) 281 (sm::hit-code hit2)
349 (if (= re (frame-width)) 349 (if (= re (frame-width))
350 ;; include the continuation column with this window 350 ;; include the continuation column with this window
351 (setq re (1+ re))) 351 (setq re (1+ re)))
352 (if (= be (frame-height)) 352 (if (= be (frame-height))
353 ;; include partial line at bottom of frame with this window 353 ;; include partial line at bottom of frame with this window
354 ;; id est, if window is not multple of char size. 354 ;; id est, if window is not multiple of char size.
355 (setq be (1+ be))) 355 (setq be (1+ be)))
356 356
357 (if (and (>= x le) (< x re) 357 (if (and (>= x le) (< x re)
358 (>= y te) (< y be)) 358 (>= y te) (< y be))
359 (throw 'found 359 (throw 'found
545 (princ "--------- ------") (terpri) 545 (princ "--------- ------") (terpri)
546 (print-mouse-bindings 'scrollbar))) 546 (print-mouse-bindings 'scrollbar)))
547 547
548 (defun describe-mouse-briefly (mouse-list) 548 (defun describe-mouse-briefly (mouse-list)
549 "Print a short description of the function bound to MOUSE-LIST." 549 "Print a short description of the function bound to MOUSE-LIST."
550 (interactive "xDescibe mouse list briefly: ") 550 (interactive "xDescribe mouse list briefly: ")
551 (let ((function (mouse-lookup (mouse-list-to-mouse-code mouse-list)))) 551 (let ((function (mouse-lookup (mouse-list-to-mouse-code mouse-list))))
552 (if function 552 (if function
553 (message "%s runs the command %s" mouse-list function) 553 (message "%s runs the command %s" mouse-list function)
554 (message "%s is undefined" mouse-list)))) 554 (message "%s is undefined" mouse-list))))
555 555