diff options
| author | Eli Zaretskii | 2001-06-25 10:39:06 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-06-25 10:39:06 +0000 |
| commit | 9501b9867cd1e6815ca857ca053a605ddb000fa4 (patch) | |
| tree | 141f17d22d953be2f0fa77912e70ad888d79a34c | |
| parent | 7aee34d3d744f8dc4a2cc22be7c111083c858df9 (diff) | |
| download | emacs-9501b9867cd1e6815ca857ca053a605ddb000fa4.tar.gz emacs-9501b9867cd1e6815ca857ca053a605ddb000fa4.zip | |
(xterm-mouse-event): If the buffer displayed in the
window where they clicked the mouse has a header line, adjust
vertical movement by one.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/xt-mouse.el | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f2eead76bdc..4591bcb463f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2001-06-25 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * xt-mouse.el (xterm-mouse-event): If the buffer displayed in the | ||
| 4 | window where they clicked the mouse has a header line, adjust | ||
| 5 | vertical movement by one. | ||
| 6 | |||
| 1 | 2001-06-25 Milan Zamazal <pdm@zamazal.org> | 7 | 2001-06-25 Milan Zamazal <pdm@zamazal.org> |
| 2 | 8 | ||
| 3 | * progmodes/glasses.el (glasses-make-readable): Consider | 9 | * progmodes/glasses.el (glasses-make-readable): Consider |
diff --git a/lisp/xt-mouse.el b/lisp/xt-mouse.el index b87061e5316..ef32a802ad4 100644 --- a/lisp/xt-mouse.el +++ b/lisp/xt-mouse.el | |||
| @@ -123,7 +123,12 @@ | |||
| 123 | (progn | 123 | (progn |
| 124 | (select-window window) | 124 | (select-window window) |
| 125 | (goto-char (window-start window)) | 125 | (goto-char (window-start window)) |
| 126 | (move-to-window-line (cdr where)) | 126 | (move-to-window-line (- |
| 127 | (cdr where) | ||
| 128 | (if (or header-line-format | ||
| 129 | default-header-line-format) | ||
| 130 | 1 | ||
| 131 | 0))) | ||
| 127 | (move-to-column (+ (car where) (current-column) | 132 | (move-to-column (+ (car where) (current-column) |
| 128 | (if (string-match "\\` \\*Minibuf" | 133 | (if (string-match "\\` \\*Minibuf" |
| 129 | (buffer-name)) | 134 | (buffer-name)) |