Skip to content

Commit

Permalink
(command-line): Fix code determining whether or not
Browse files Browse the repository at this point in the history
to use delete-key-deletes-forward-mode.
  • Loading branch information
Gerd Moellmann committed Feb 1, 2001
1 parent a8675b0 commit d7a409b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lisp/startup.el
Expand Up @@ -771,15 +771,15 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
(setq-default blink-cursor t)
(blink-cursor-mode 1))

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

(when (and (not noninteractive)
(display-graphic-p)
Expand Down

0 comments on commit d7a409b

Please sign in to comment.