diff options
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/frame.el | 29 |
2 files changed, 17 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 51b2b7f339a..de7c95c30f8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | * userlock.el (ask-user-about-lock): Doc fix. | 3 | * userlock.el (ask-user-about-lock): Doc fix. |
| 4 | 4 | ||
| 5 | * frame.el: Doc fixes. | ||
| 6 | |||
| 5 | 1999-11-01 Gerd Moellmann <gerd@gnu.org> | 7 | 1999-11-01 Gerd Moellmann <gerd@gnu.org> |
| 6 | 8 | ||
| 7 | * frame.el (blink-cursor-mode): Call internal-show-cursor instead | 9 | * frame.el (blink-cursor-mode): Call internal-show-cursor instead |
diff --git a/lisp/frame.el b/lisp/frame.el index 3f35adc5f5b..5d06e5473f3 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -792,12 +792,12 @@ should use `set-frame-height' instead." | |||
| 792 | ;;; Blinking cursor | 792 | ;;; Blinking cursor |
| 793 | 793 | ||
| 794 | (defgroup cursor nil | 794 | (defgroup cursor nil |
| 795 | "Cursor on frames." | 795 | "Displaying text cursors." |
| 796 | :version "21.1" | 796 | :version "21.1" |
| 797 | :group 'frames) | 797 | :group 'frames) |
| 798 | 798 | ||
| 799 | (defcustom blink-cursor-delay 0.5 | 799 | (defcustom blink-cursor-delay 0.5 |
| 800 | "*Seconds of Emacs idle time after which cursor starts to blink." | 800 | "*Seconds of idle time after which cursor starts to blink." |
| 801 | :tag "Delay in seconds." | 801 | :tag "Delay in seconds." |
| 802 | :type 'number | 802 | :type 'number |
| 803 | :group 'cursor) | 803 | :group 'cursor) |
| @@ -809,12 +809,12 @@ should use `set-frame-height' instead." | |||
| 809 | :group 'cursor) | 809 | :group 'cursor) |
| 810 | 810 | ||
| 811 | (defvar blink-cursor-idle-timer nil | 811 | (defvar blink-cursor-idle-timer nil |
| 812 | "Timer started after blink-cursor-delay seconds of Emacs idle time. | 812 | "Timer started after `blink-cursor-delay' seconds of Emacs idle time. |
| 813 | The function blink-cursor-start is called when the timer fires.") | 813 | The function `blink-cursor-start' is called when the timer fires.") |
| 814 | 814 | ||
| 815 | (defvar blink-cursor-timer nil | 815 | (defvar blink-cursor-timer nil |
| 816 | "Time started from blink-cursor-start. This timer calls blink-cursor | 816 | "Timer started from `blink-cursor-start'. |
| 817 | every blink-cursor-interval seconds.") | 817 | This timer calls `blink-cursor' every `blink-cursor-interval' seconds.") |
| 818 | 818 | ||
| 819 | (defvar blink-cursor-mode nil | 819 | (defvar blink-cursor-mode nil |
| 820 | "Non-nil means blinking cursor is active.") | 820 | "Non-nil means blinking cursor is active.") |
| @@ -846,7 +846,7 @@ window blinks." | |||
| 846 | (setq blink-cursor-mode t))))) | 846 | (setq blink-cursor-mode t))))) |
| 847 | 847 | ||
| 848 | (defcustom blink-cursor (not (eq system-type 'ms-dos)) | 848 | (defcustom blink-cursor (not (eq system-type 'ms-dos)) |
| 849 | "*Non-nil means blink-cursor-mode is active." | 849 | "*Non-nil means blinking cursor mode is active." |
| 850 | :tag "Blinking cursor" | 850 | :tag "Blinking cursor" |
| 851 | :type 'boolean | 851 | :type 'boolean |
| 852 | :group 'cursor | 852 | :group 'cursor |
| @@ -855,10 +855,10 @@ window blinks." | |||
| 855 | (blink-cursor-mode (or value 0)))) | 855 | (blink-cursor-mode (or value 0)))) |
| 856 | 856 | ||
| 857 | (defun blink-cursor-start () | 857 | (defun blink-cursor-start () |
| 858 | "Timer function called from timer blink-cursor-idle-timer. | 858 | "Timer function called from the timer `blink-cursor-idle-timer'. |
| 859 | Starts the timer blink-cursor-timer which lets the cursor blink | 859 | This starts the timer `blink-cursor-timer', which makes the cursor blink |
| 860 | if the selected frame has a non-nil `cursor-blinking' frame parameter. | 860 | if appropriate. It also arranges to cancel that timer when the next |
| 861 | Arranges to cancel that timer by installing a pre command hook." | 861 | command starts, by installing a pre-command hook." |
| 862 | (when (null blink-cursor-timer) | 862 | (when (null blink-cursor-timer) |
| 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 |
| @@ -867,8 +867,9 @@ Arranges to cancel that timer by installing a pre command hook." | |||
| 867 | 867 | ||
| 868 | (defun blink-cursor-end () | 868 | (defun blink-cursor-end () |
| 869 | "Stop cursor blinking. | 869 | "Stop cursor blinking. |
| 870 | Installed as a pre-command hook by blink-cursor-start. Cancels | 870 | This is installed as a pre-command hook by `blink-cursor-start'. |
| 871 | the timer blink-cursor-timer and removes itself from the hook." | 871 | When run, it cancels the timer `blink-cursor-timer' and removes |
| 872 | itself as a pre-command hook." | ||
| 872 | (remove-hook 'pre-command-hook 'blink-cursor-end) | 873 | (remove-hook 'pre-command-hook 'blink-cursor-end) |
| 873 | (internal-show-cursor 0) | 874 | (internal-show-cursor 0) |
| 874 | (cancel-timer blink-cursor-timer) | 875 | (cancel-timer blink-cursor-timer) |
| @@ -879,7 +880,7 @@ the timer blink-cursor-timer and removes itself from the hook." | |||
| 879 | ;;; Busy-cursor. | 880 | ;;; Busy-cursor. |
| 880 | 881 | ||
| 881 | (defcustom busy-cursor t | 882 | (defcustom busy-cursor t |
| 882 | "*Non-nil means show a busy-cursor when running under a window-system." | 883 | "*Non-nil means show a busy-cursor when running under a window system." |
| 883 | :tag "Busy-cursor" | 884 | :tag "Busy-cursor" |
| 884 | :type 'boolean | 885 | :type 'boolean |
| 885 | :group 'cursor | 886 | :group 'cursor |