diff options
author | Adrian Robert <[email protected]> | 2008-08-18 15:04:37 +0000 |
---|---|---|
committer | Adrian Robert <[email protected]> | 2008-08-18 15:04:37 +0000 |
commit | 6742a9d2affa08efcbf644c373c8879efa42c9d3 (patch) | |
tree | fe36e828212f2e8c71926e0a1d78657d78eb09ee | |
parent | 039d3b16fd31e5a5dab27fb09845f3cb785bec89 (diff) |
Uncomment 'put backspace ascii-character...' and friends, they are needed for tramp.
-rw-r--r-- | lisp/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/term/ns-win.el | 24 |
2 files changed, 18 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e828564054..953ea87a98 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-08-18 Adrian Robert <[email protected]> + + * term/ns-win.el (global): Uncomment "put backspace + ascii-character..." and friends, they are needed for tramp. + 2008-08-18 Kenichi Handa <[email protected]> * international/mule-diag.el (font-show-log): Add optional arg N diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index 1b798de1f4..e5cacf8df3 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el @@ -179,18 +179,20 @@ The properties returned may include `top', `left', `height', and `width'." ;;;; Keyboard mapping. -;;TODO: all terms have these, but they don't seem necessary. +;; These tell read-char how to convert these special chars to ASCII. +;;TODO: all terms have these, and at least the return mapping is necessary +;; for tramp to recognize the enter key. +;; Perhaps they should be moved into common code somewhere +;; (when a window system is active). ;; Remove if no problems for some time after 2008-08-06. -;; These tell read-char how to convert -;; these special chars to ASCII. -;;(put 'backspace 'ascii-character 127) -;;(put 'delete 'ascii-character 127) -;;(put 'tab 'ascii-character ?\t) -;;(put 'S-tab 'ascii-character (logior 16 ?\t)) -;;(put 'linefeed 'ascii-character ?\n) -;;(put 'clear 'ascii-character 12) -;;(put 'return 'ascii-character 13) -;;(put 'escape 'ascii-character ?\e) +(put 'backspace 'ascii-character 127) +(put 'delete 'ascii-character 127) +(put 'tab 'ascii-character ?\t) +(put 'S-tab 'ascii-character (logior 16 ?\t)) +(put 'linefeed 'ascii-character ?\n) +(put 'clear 'ascii-character 12) +(put 'return 'ascii-character 13) +(put 'escape 'ascii-character ?\e) (defvar ns-alternatives-map |