# HG changeset patch # User Luc Teirlinck # Date 1121013364 0 # Node ID 43f2b7f50a25c7f2e1048f623420024a894daa13 # Parent 25277c60733f56104c1012921affd98efde59207 (blink-cursor-mode): Use `custom-initialize-safe-default' and simplify :init-value. diff -r 25277c60733f -r 43f2b7f50a25 lisp/frame.el --- a/lisp/frame.el Sun Jul 10 16:32:59 2005 +0000 +++ b/lisp/frame.el Sun Jul 10 16:36:04 2005 +0000 @@ -1256,10 +1256,6 @@ 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 @@ 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))