diff options
| author | Stefan Monnier | 2014-07-19 12:56:40 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-07-19 12:56:40 -0400 |
| commit | a54493b02fc90ab163aa88dfe68c2b5e44a2536e (patch) | |
| tree | 575094ed03b4a02cc3cb94595725222c6dfadae7 | |
| parent | bf0d3f76dcfe7881cb3058169b51cf6602fdcdcb (diff) | |
| download | emacs-a54493b02fc90ab163aa88dfe68c2b5e44a2536e.tar.gz emacs-a54493b02fc90ab163aa88dfe68c2b5e44a2536e.zip | |
* lisp/xt-mouse.el (xterm-mouse-event): Don't assume last-click is non-nil.
Fixes: debbugs:18015
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/xt-mouse.el | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a468cbfc801..bf2024ac9b6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2014-07-19 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2014-07-19 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * xt-mouse.el (xterm-mouse-event): Don't assume last-click is non-nil | ||
| 4 | (bug#18015). | ||
| 5 | |||
| 3 | * rect.el (rectangle--string-preview): Don't assume there | 6 | * rect.el (rectangle--string-preview): Don't assume there |
| 4 | a non-nil default (bug#17984). | 7 | a non-nil default (bug#17984). |
| 5 | 8 | ||
diff --git a/lisp/xt-mouse.el b/lisp/xt-mouse.el index 59f1eb8c887..cad3151b244 100644 --- a/lisp/xt-mouse.el +++ b/lisp/xt-mouse.el | |||
| @@ -250,7 +250,7 @@ which is the \"1006\" extension implemented in Xterm >= 277." | |||
| 250 | ((not (string-match "down-" name)) | 250 | ((not (string-match "down-" name)) |
| 251 | ;; For up events, make the up side match the down side. | 251 | ;; For up events, make the up side match the down side. |
| 252 | (setq this-time last-time) | 252 | (setq this-time last-time) |
| 253 | (when (and (> click-count 1) | 253 | (when (and click-count (> click-count 1) |
| 254 | (string-match "down-" last-name) | 254 | (string-match "down-" last-name) |
| 255 | (equal name (replace-match "" t t last-name))) | 255 | (equal name (replace-match "" t t last-name))) |
| 256 | (xterm-mouse--set-click-count event click-count))) | 256 | (xterm-mouse--set-click-count event click-count))) |