mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
* lisp/term.el (term-send-raw-meta): Revert 2009-12-04 change (Bug#5330).
This commit is contained in:
parent
8ae41cbce2
commit
5189d95ba6
@ -1,3 +1,7 @@
|
||||
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.
|
||||
|
13
lisp/term.el
13
lisp/term.el
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user