(command-line): Initialize blink-cursor based
authorGerd Moellmann <gerd@gnu.org>
Mon, 3 Jul 2000 19:14:39 +0000 (19:14 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 3 Jul 2000 19:14:39 +0000 (19:14 +0000)
on window-system.

lisp/ChangeLog
lisp/startup.el

index 8066815..2742992 100644 (file)
@@ -1,5 +1,10 @@
 2000-07-03  Gerd Moellmann  <gerd@gnu.org>
 
+       * frame.el (blink-cursor-mode): Don't hide cursor initially.
+
+       * startup.el (command-line): Initialize blink-cursor based
+       on window-system.
+
        * frame.el (blink-cursor): Default to nil if not running under
        a window-system.
 
index a51fd01..42a7dcf 100644 (file)
@@ -647,6 +647,13 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
               (> (cdr (assq 'menu-bar-lines (frame-parameters))) 0)))
       (menu-bar-mode t))
 
+  ;; Can't do this init in defcustom because window-system isn't set.
+  (when (and (not noninteractive)
+            (not (eq system-type 'ms-dos))
+            (memq window-system '(x w32)))
+    (setq-default blink-cursor t)
+    (blink-cursor-mode 1))
+
   (run-hooks 'before-init-hook)
 
   ;; Run the site-start library if it exists.  The point of this file is