(blink-cursor-mode 1))
(when (and (not noninteractive)
- (not (eq system-type 'ms-dos))
- (memq window-system '(x)))
- (setq-default delete-key-deletes-forward (x-backspace-delete-keys-p))
+ ;; DOS/Windows systems have a PC-type keyboard which has both
+ ;; <delete> and <backspace> keys.
+ (or (memq system-type '(ms-dos windows-nt))
+ (memq window-system '(x))))
+ (setq-default delete-key-deletes-forward
+ (or (not (fboundp 'x-backspace-delete-keys-p))
+ (x-backspace-delete-keys-p)))
(delete-key-deletes-forward-mode 1))
(when (and (not noninteractive)