Commit 5189d95b authored by Chong Yidong's avatar Chong Yidong
Browse files

* lisp/term.el (term-send-raw-meta): Revert 2009-12-04 change (Bug#5330).

parent 8ae41cbc
2010-01-20 Chong Yidong <cyd@stupidchicken.com>
* term.el (term-send-raw-meta): Revert 2009-12-04 change (Bug#5330).
2010-01-20 Glenn Morris <rgm@gnu.org>
* indent.el (tab-always-indent): Fix custom-type.
......
......@@ -1208,8 +1208,17 @@ without any interpretation."
(defun term-send-raw-meta ()
(interactive)
(let* ((keys (this-command-keys))
(char (aref keys (1- (length keys)))))
(let ((char last-input-event))
(when (symbolp last-input-event)
;; Convert `return' to C-m, etc.
(let ((tmp (get char 'event-symbol-elements)))
(when tmp
(setq char (car tmp)))
(when (symbolp char)
(setq tmp (get char 'ascii-character))
(when tmp
(setq char tmp)))))
(setq char (event-basic-type char))
(term-send-raw-string (if (and (numberp char)
(> char 127)
(< char 256))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment