diff options
| author | Gerd Moellmann | 1999-11-03 15:57:21 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-11-03 15:57:21 +0000 |
| commit | 0a5ebe4b761c443b9e165e75fe4f49eca1f107cc (patch) | |
| tree | a50a0ea9637c4d6f241175e12f7f5bb1891b9c62 | |
| parent | 3179af52e45cb0df6fb789a6c6ca89be6c0a611c (diff) | |
| download | emacs-0a5ebe4b761c443b9e165e75fe4f49eca1f107cc.tar.gz emacs-0a5ebe4b761c443b9e165e75fe4f49eca1f107cc.zip | |
* frame.el (blink-cursor-mode, blink-cursor-end): Use
internal-show-cursor with new interface.
(blink-cursor-timer-function): New.
(blink-cursor-start): Use blink-cursor-timer-function.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/frame.el | 10 |
2 files changed, 14 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 48727b52341..1ac9809bda5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 1999-11-03 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * frame.el (blink-cursor-mode, blink-cursor-end): Use | ||
| 4 | internal-show-cursor with new interface. | ||
| 5 | (blink-cursor-timer-function): New. | ||
| 6 | (blink-cursor-start): Use blink-cursor-timer-function. | ||
| 7 | |||
| 1 | 1999-11-03 Edward M. Reingold <reingold@emr.cs.uiuc.edu> | 8 | 1999-11-03 Edward M. Reingold <reingold@emr.cs.uiuc.edu> |
| 2 | 9 | ||
| 3 | * calendar.el (redraw-calendar): Move to nearest date before | 10 | * calendar.el (redraw-calendar): Move to nearest date before |
diff --git a/lisp/frame.el b/lisp/frame.el index 5d06e5473f3..8970fe25ece 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -838,7 +838,7 @@ window blinks." | |||
| 838 | (if on-p | 838 | (if on-p |
| 839 | (progn | 839 | (progn |
| 840 | ;; Hide the cursor. | 840 | ;; Hide the cursor. |
| 841 | (internal-show-cursor 0) | 841 | (internal-show-cursor nil nil) |
| 842 | (setq blink-cursor-idle-timer | 842 | (setq blink-cursor-idle-timer |
| 843 | (run-with-idle-timer blink-cursor-delay | 843 | (run-with-idle-timer blink-cursor-delay |
| 844 | blink-cursor-delay | 844 | blink-cursor-delay |
| @@ -863,7 +863,11 @@ command starts, by installing a pre-command hook." | |||
| 863 | (add-hook 'pre-command-hook 'blink-cursor-end) | 863 | (add-hook 'pre-command-hook 'blink-cursor-end) |
| 864 | (setq blink-cursor-timer | 864 | (setq blink-cursor-timer |
| 865 | (run-with-timer blink-cursor-interval blink-cursor-interval | 865 | (run-with-timer blink-cursor-interval blink-cursor-interval |
| 866 | 'internal-show-cursor)))) | 866 | 'blink-cursor-timer-function)))) |
| 867 | |||
| 868 | (defun blink-cursor-timer-function () | ||
| 869 | "Timer function of timer `blink-cursor-timer'." | ||
| 870 | (internal-show-cursor nil (not (internal-show-cursor-p)))) | ||
| 867 | 871 | ||
| 868 | (defun blink-cursor-end () | 872 | (defun blink-cursor-end () |
| 869 | "Stop cursor blinking. | 873 | "Stop cursor blinking. |
| @@ -871,7 +875,7 @@ This is installed as a pre-command hook by `blink-cursor-start'. | |||
| 871 | When run, it cancels the timer `blink-cursor-timer' and removes | 875 | When run, it cancels the timer `blink-cursor-timer' and removes |
| 872 | itself as a pre-command hook." | 876 | itself as a pre-command hook." |
| 873 | (remove-hook 'pre-command-hook 'blink-cursor-end) | 877 | (remove-hook 'pre-command-hook 'blink-cursor-end) |
| 874 | (internal-show-cursor 0) | 878 | (internal-show-cursor nil t) |
| 875 | (cancel-timer blink-cursor-timer) | 879 | (cancel-timer blink-cursor-timer) |
| 876 | (setq blink-cursor-timer nil)) | 880 | (setq blink-cursor-timer nil)) |
| 877 | 881 | ||