aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-11-03 15:57:21 +0000
committerGerd Moellmann1999-11-03 15:57:21 +0000
commit0a5ebe4b761c443b9e165e75fe4f49eca1f107cc (patch)
treea50a0ea9637c4d6f241175e12f7f5bb1891b9c62
parent3179af52e45cb0df6fb789a6c6ca89be6c0a611c (diff)
downloademacs-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/ChangeLog7
-rw-r--r--lisp/frame.el10
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 @@
11999-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
11999-11-03 Edward M. Reingold <reingold@emr.cs.uiuc.edu> 81999-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'.
871When run, it cancels the timer `blink-cursor-timer' and removes 875When run, it cancels the timer `blink-cursor-timer' and removes
872itself as a pre-command hook." 876itself 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