summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorLuc Teirlinck <teirllm@auburn.edu>2005-07-10 16:36:04 +0000
committerLuc Teirlinck <teirllm@auburn.edu>2005-07-10 16:36:04 +0000
commit93ad71f8230961a48b21640bd883e2656185c041 (patch)
treea596b21a7cfbef79b28b9e4b4a2064194302b032 /lisp
parentff48d7e6f0f31c47c56c55359536e6bc275363aa (diff)
downloademacs-93ad71f8230961a48b21640bd883e2656185c041.tar.gz
(blink-cursor-mode): Use `custom-initialize-safe-default' and simplify
:init-value.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/frame.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index 088a7a9b622..5496c857af0 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -1256,10 +1256,6 @@ The function `blink-cursor-start' is called when the timer fires.")
This timer calls `blink-cursor-timer-function' every
`blink-cursor-interval' seconds.")
-;; We do not know the standard _evaluated_ value yet, because the standard
-;; expression uses values that are not yet set. The correct evaluated
-;; standard value will be installed in startup.el using exactly the same
-;; expression as in the defcustom.
(define-minor-mode blink-cursor-mode
"Toggle blinking cursor mode.
With a numeric argument, turn blinking cursor mode on iff ARG is positive.
@@ -1270,9 +1266,10 @@ Note that this command is effective only when Emacs
displays through a window system, because then Emacs does its own
cursor display. On a text-only terminal, this is not implemented."
:init-value (not (or noninteractive
- (if (boundp 'no-blinking-cursor) no-blinking-cursor)
+ no-blinking-cursor
(eq system-type 'ms-dos)
(not (memq window-system '(x w32)))))
+ :initialize 'custom-initialize-safe-default
:group 'cursor
:global t
(if blink-cursor-idle-timer (cancel-timer blink-cursor-idle-timer))