Function: landmark-click
landmark-click is an interactive and byte-compiled function defined in
landmark.el.gz.
Signature
(landmark-click CLICK)
Documentation
Position at the square where you click.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/landmark.el.gz
;; For small square dimensions this is approximate, since though measured in
;; pixels, event's (X . Y) is a character's top-left corner.
(defun landmark-click (click)
"Position at the square where you click."
(interactive "e")
(and (windowp (posn-window (setq click (event-end click))))
(numberp (posn-point click))
(select-window (posn-window click))
(setq click (posn-col-row click))
(landmark-goto-xy
(min (max (/ (+ (- (car click)
landmark-x-offset
1)
(window-hscroll)
landmark-square-width
(% landmark-square-width 2)
(/ landmark-square-width 2))
landmark-square-width)
1)
landmark-board-width)
(min (max (/ (+ (- (cdr click)
landmark-y-offset
1)
(count-lines (point-min) (window-start))
landmark-square-height
(% landmark-square-height 2)
(/ landmark-square-height 2))
landmark-square-height)
1)
landmark-board-height))))