]> git.eshelyaron.com Git - emacs.git/commitdiff
(command-line): If the terminal Emacs is running on
authorGerd Moellmann <gerd@gnu.org>
Thu, 1 Nov 2001 13:09:32 +0000 (13:09 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 1 Nov 2001 13:09:32 +0000 (13:09 +0000)
has erase char set to ^H, use the Backspace key for deleting
backward and, and the Delete key for deleting forward.

lisp/ChangeLog
lisp/startup.el

index 733e31bf774156f0e50fd6eadc9a79b4c2763b8a..b9aea14ba1d4cfc0e8bc2998a5fb730fc04d6710 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-01  Gerd Moellmann  <gerd@gnu.org>
+
+       * startup.el (command-line): If the terminal Emacs is running on
+       has erase char set to ^H, use the Backspace key for deleting
+       backward, and the Delete key for deleting forward.
+
 2001-11-01  Miles Bader  <miles@gnu.org>
 
        * button.el (define-button-type): Make sure every user-defined
index 857732fea481d5e9db54687278110ac2f9e109ca..c40170d6a5cc517dc1184c29f68b0a69b9f08b46 100644 (file)
@@ -800,7 +800,12 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
     (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)))
+                  (x-backspace-delete-keys-p))
+             ;; If the terminal Emacs is running on has erase char
+             ;; set to ^H, use the Backspace key for deleting
+             ;; backward and, and the Delete key for deleting forward.
+             (and (null window-system)
+                  (eq tty-erase-char 8)))
       (setq-default normal-erase-is-backspace t)
       (normal-erase-is-backspace-mode 1)))