diff options
| author | Stefan Monnier | 2007-09-07 19:49:17 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-09-07 19:49:17 +0000 |
| commit | 08ea6d2fac90ecd9a136647322f5ba155b7cf73d (patch) | |
| tree | 68bc1a44455d8781b20b832a3ce6c710728e1506 | |
| parent | 8b5f251b263416b9f7f4eccc373cc54b0f16ef1b (diff) | |
| download | emacs-08ea6d2fac90ecd9a136647322f5ba155b7cf73d.tar.gz emacs-08ea6d2fac90ecd9a136647322f5ba155b7cf73d.zip | |
(normal-erase-is-backspace-setup-frame): Massage.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/simple.el | 31 |
2 files changed, 19 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8b757a8db92..3e45f5f9513 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * simple.el (normal-erase-is-backspace-setup-frame): Massage. | ||
| 4 | |||
| 5 | * term/xterm.el (xterm-function-map): Initialize in the declaration. | ||
| 6 | |||
| 3 | * vc-arch.el (vc-arch-checkin): Fix typo. | 7 | * vc-arch.el (vc-arch-checkin): Fix typo. |
| 4 | 8 | ||
| 5 | 2007-09-07 Johan Bockg,Ae(Brd <bojohan@gnu.org> | 9 | 2007-09-07 Johan Bockg,Ae(Brd <bojohan@gnu.org> |
diff --git a/lisp/simple.el b/lisp/simple.el index 264bb7aa6e1..02193af41d4 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -5659,22 +5659,21 @@ call `normal-erase-is-backspace-mode' (which see) instead." | |||
| 5659 | (unless frame (setq frame (selected-frame))) | 5659 | (unless frame (setq frame (selected-frame))) |
| 5660 | (with-selected-frame frame | 5660 | (with-selected-frame frame |
| 5661 | (unless (terminal-parameter nil 'normal-erase-is-backspace) | 5661 | (unless (terminal-parameter nil 'normal-erase-is-backspace) |
| 5662 | (if (cond ((eq normal-erase-is-backspace 'maybe) | 5662 | (normal-erase-is-backspace-mode |
| 5663 | (and (not noninteractive) | 5663 | (if (if (eq normal-erase-is-backspace 'maybe) |
| 5664 | (or (memq system-type '(ms-dos windows-nt)) | 5664 | (and (not noninteractive) |
| 5665 | (eq window-system 'mac) | 5665 | (or (memq system-type '(ms-dos windows-nt)) |
| 5666 | (and (memq window-system '(x)) | 5666 | (eq window-system 'mac) |
| 5667 | (fboundp 'x-backspace-delete-keys-p) | 5667 | (and (memq window-system '(x)) |
| 5668 | (x-backspace-delete-keys-p)) | 5668 | (fboundp 'x-backspace-delete-keys-p) |
| 5669 | ;; If the terminal Emacs is running on has erase char | 5669 | (x-backspace-delete-keys-p)) |
| 5670 | ;; set to ^H, use the Backspace key for deleting | 5670 | ;; If the terminal Emacs is running on has erase char |
| 5671 | ;; backward and, and the Delete key for deleting forward. | 5671 | ;; set to ^H, use the Backspace key for deleting |
| 5672 | (and (null window-system) | 5672 | ;; backward, and the Delete key for deleting forward. |
| 5673 | (eq tty-erase-char ?\^H))))) | 5673 | (and (null window-system) |
| 5674 | (t | 5674 | (eq tty-erase-char ?\^H)))) |
| 5675 | normal-erase-is-backspace)) | 5675 | normal-erase-is-backspace) |
| 5676 | (normal-erase-is-backspace-mode 1) | 5676 | 1 0))))) |
| 5677 | (normal-erase-is-backspace-mode 0))))) | ||
| 5678 | 5677 | ||
| 5679 | (defun normal-erase-is-backspace-mode (&optional arg) | 5678 | (defun normal-erase-is-backspace-mode (&optional arg) |
| 5680 | "Toggle the Erase and Delete mode of the Backspace and Delete keys. | 5679 | "Toggle the Erase and Delete mode of the Backspace and Delete keys. |