diff options
| author | Luc Teirlinck | 2005-07-14 00:59:34 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2005-07-14 00:59:34 +0000 |
| commit | 947d4ae822fd0925fc029317860825f54b50fb2b (patch) | |
| tree | 56ab9047cec5deb23dea79e33709c754a3da69f7 | |
| parent | dc86f0a908c5ac28453ad829c3f33cf785179321 (diff) | |
| download | emacs-947d4ae822fd0925fc029317860825f54b50fb2b.tar.gz emacs-947d4ae822fd0925fc029317860825f54b50fb2b.zip | |
(blink-cursor-mode): Use `custom-initialize-safe-default' and simplify
:init-value again.
| -rw-r--r-- | lisp/frame.el | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/frame.el b/lisp/frame.el index 89e0803b48f..5496c857af0 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -1256,11 +1256,6 @@ The function `blink-cursor-start' is called when the timer fires.") | |||
| 1256 | This timer calls `blink-cursor-timer-function' every | 1256 | This timer calls `blink-cursor-timer-function' every |
| 1257 | `blink-cursor-interval' seconds.") | 1257 | `blink-cursor-interval' seconds.") |
| 1258 | 1258 | ||
| 1259 | ;; At startup, some variables used to compute the standard value may | ||
| 1260 | ;; not yet be defined or may not yet have their correct value. Hence | ||
| 1261 | ;; the value computed by the defcustom at startup may be incorrect. | ||
| 1262 | ;; The correct value will be recomputed in startup.el using | ||
| 1263 | ;; `custom-reevaluate-setting' | ||
| 1264 | (define-minor-mode blink-cursor-mode | 1259 | (define-minor-mode blink-cursor-mode |
| 1265 | "Toggle blinking cursor mode. | 1260 | "Toggle blinking cursor mode. |
| 1266 | With a numeric argument, turn blinking cursor mode on iff ARG is positive. | 1261 | With a numeric argument, turn blinking cursor mode on iff ARG is positive. |
| @@ -1271,9 +1266,10 @@ Note that this command is effective only when Emacs | |||
| 1271 | displays through a window system, because then Emacs does its own | 1266 | displays through a window system, because then Emacs does its own |
| 1272 | cursor display. On a text-only terminal, this is not implemented." | 1267 | cursor display. On a text-only terminal, this is not implemented." |
| 1273 | :init-value (not (or noninteractive | 1268 | :init-value (not (or noninteractive |
| 1274 | (if (boundp 'no-blinking-cursor) no-blinking-cursor) | 1269 | no-blinking-cursor |
| 1275 | (eq system-type 'ms-dos) | 1270 | (eq system-type 'ms-dos) |
| 1276 | (not (memq window-system '(x w32))))) | 1271 | (not (memq window-system '(x w32))))) |
| 1272 | :initialize 'custom-initialize-safe-default | ||
| 1277 | :group 'cursor | 1273 | :group 'cursor |
| 1278 | :global t | 1274 | :global t |
| 1279 | (if blink-cursor-idle-timer (cancel-timer blink-cursor-idle-timer)) | 1275 | (if blink-cursor-idle-timer (cancel-timer blink-cursor-idle-timer)) |