diff options
| author | Stefan Monnier | 2004-10-28 23:33:23 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-10-28 23:33:23 +0000 |
| commit | b10c429fe38f17ecc3fb7b28012369cab8e08e5b (patch) | |
| tree | 39ac879976a194f46d280fae2b2a25b8654427cd | |
| parent | d6b8bb8ef4af4b5ae5350626a3358b652779b3b0 (diff) | |
| download | emacs-b10c429fe38f17ecc3fb7b28012369cab8e08e5b.tar.gz emacs-b10c429fe38f17ecc3fb7b28012369cab8e08e5b.zip | |
(mouse-show-mark): Adjust to new name and don't assume
x-lost-selection-functions is bound.
| -rw-r--r-- | lisp/mouse.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 8632cceb19e..109613e8f58 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -1028,8 +1028,10 @@ If MODE is 2 then do the same for lines." | |||
| 1028 | (let ((inhibit-quit t) | 1028 | (let ((inhibit-quit t) |
| 1029 | (echo-keystrokes 0) | 1029 | (echo-keystrokes 0) |
| 1030 | event events key ignore | 1030 | event events key ignore |
| 1031 | (x-lost-selection-hooks (copy-sequence x-lost-selection-hooks))) | 1031 | (x-lost-selection-functions |
| 1032 | (add-hook 'x-lost-selection-hooks | 1032 | (if (boundp 'x-lost-selection-functions) |
| 1033 | (copy-sequence x-lost-selection-functions)))) | ||
| 1034 | (add-hook 'x-lost-selection-hook | ||
| 1033 | (lambda (seltype) | 1035 | (lambda (seltype) |
| 1034 | (if (eq seltype 'PRIMARY) | 1036 | (if (eq seltype 'PRIMARY) |
| 1035 | (progn (setq ignore t) | 1037 | (progn (setq ignore t) |