diff options
| author | Stefan Monnier | 2005-03-06 00:32:12 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-03-06 00:32:12 +0000 |
| commit | e52125457734ea56ffa1e7f0a14fde1d3fc75d53 (patch) | |
| tree | b3c32f98b4a61f7da6d025ce7d3e1d642db20e41 | |
| parent | 059290d61967aeab64178d735920546af68a4510 (diff) | |
| download | emacs-e52125457734ea56ffa1e7f0a14fde1d3fc75d53.tar.gz emacs-e52125457734ea56ffa1e7f0a14fde1d3fc75d53.zip | |
(normal-erase-is-backspace): Define default value.
| -rw-r--r-- | lisp/simple.el | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 68ef955431a..00005ae355b 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -5025,7 +5025,17 @@ the front of the list of recently selected ones." | |||
| 5025 | 5025 | ||
| 5026 | ;;; Handling of Backspace and Delete keys. | 5026 | ;;; Handling of Backspace and Delete keys. |
| 5027 | 5027 | ||
| 5028 | (defcustom normal-erase-is-backspace nil | 5028 | (defcustom normal-erase-is-backspace |
| 5029 | (and (not noninteractive) | ||
| 5030 | (or (memq system-type '(ms-dos windows-nt)) | ||
| 5031 | (and (memq window-system '(x)) | ||
| 5032 | (fboundp 'x-backspace-delete-keys-p) | ||
| 5033 | (x-backspace-delete-keys-p)) | ||
| 5034 | ;; If the terminal Emacs is running on has erase char | ||
| 5035 | ;; set to ^H, use the Backspace key for deleting | ||
| 5036 | ;; backward and, and the Delete key for deleting forward. | ||
| 5037 | (and (null window-system) | ||
| 5038 | (eq tty-erase-char ?\^H)))) | ||
| 5029 | "If non-nil, Delete key deletes forward and Backspace key deletes backward. | 5039 | "If non-nil, Delete key deletes forward and Backspace key deletes backward. |
| 5030 | 5040 | ||
| 5031 | On window systems, the default value of this option is chosen | 5041 | On window systems, the default value of this option is chosen |