diff options
| author | Stefan Monnier | 2008-09-30 21:59:26 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-09-30 21:59:26 +0000 |
| commit | ffaa90dd9847e4bd6abc10f30efa1197a05001d9 (patch) | |
| tree | d30c57414923bc5113cffc30df34e0039ef035b8 /lisp/term | |
| parent | 0ef5099349fdb9075cfde8fbc7bf36f9648e327c (diff) | |
| download | emacs-ffaa90dd9847e4bd6abc10f30efa1197a05001d9.tar.gz emacs-ffaa90dd9847e4bd6abc10f30efa1197a05001d9.zip | |
(xterm-turn-on-modify-other-keys)
(xterm-turn-off-modify-other-keys, xterm-remove-modify-other-keys):
Don't forget to pass `terminal' to `send-string-to-terminal'.
Diffstat (limited to 'lisp/term')
| -rw-r--r-- | lisp/term/xterm.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el index 559bd037ffd..b01adf4995b 100644 --- a/lisp/term/xterm.el +++ b/lisp/term/xterm.el | |||
| @@ -624,27 +624,27 @@ versions of xterm." | |||
| 624 | (clear-face-cache))) | 624 | (clear-face-cache))) |
| 625 | 625 | ||
| 626 | (defun xterm-turn-on-modify-other-keys () | 626 | (defun xterm-turn-on-modify-other-keys () |
| 627 | "Turn on the modifyOtherKeys feature of xterm." | 627 | "Turn the modifyOtherKeys feature of xterm back on." |
| 628 | (let ((terminal (frame-terminal (selected-frame)))) | 628 | (let ((terminal (frame-terminal (selected-frame)))) |
| 629 | (when (and (terminal-live-p terminal) | 629 | (when (and (terminal-live-p terminal) |
| 630 | (memq terminal xterm-modify-other-keys-terminal-list)) | 630 | (memq terminal xterm-modify-other-keys-terminal-list)) |
| 631 | (send-string-to-terminal "\e[>4;1m")))) | 631 | (send-string-to-terminal "\e[>4;1m" terminal)))) |
| 632 | 632 | ||
| 633 | (defun xterm-turn-off-modify-other-keys (&optional frame) | 633 | (defun xterm-turn-off-modify-other-keys (&optional frame) |
| 634 | "Turn off the modifyOtherKeys feature of xterm." | 634 | "Temporarily turn off the modifyOtherKeys feature of xterm." |
| 635 | (let ((terminal (when frame (frame-terminal frame)))) | 635 | (let ((terminal (when frame (frame-terminal frame)))) |
| 636 | (when (and (frame-live-p terminal) | 636 | (when (and (terminal-live-p terminal) |
| 637 | (memq terminal xterm-modify-other-keys-terminal-list)) | 637 | (memq terminal xterm-modify-other-keys-terminal-list)) |
| 638 | (send-string-to-terminal "\e[>4m")))) | 638 | (send-string-to-terminal "\e[>4m" terminal)))) |
| 639 | 639 | ||
| 640 | (defun xterm-remove-modify-other-keys (&optional terminal) | 640 | (defun xterm-remove-modify-other-keys (&optional terminal) |
| 641 | "Turn off the modifyOtherKeys feature of xterm and remove frame from consideration." | 641 | "Turn off the modifyOtherKeys feature of xterm for good." |
| 642 | (setq terminal (and terminal (frame-terminal (selected-frame)))) | 642 | (setq terminal (and terminal (frame-terminal (selected-frame)))) |
| 643 | (when (and (terminal-live-p terminal) | 643 | (when (and (terminal-live-p terminal) |
| 644 | (memq terminal xterm-modify-other-keys-terminal-list)) | 644 | (memq terminal xterm-modify-other-keys-terminal-list)) |
| 645 | (setq xterm-modify-other-keys-terminal-list | 645 | (setq xterm-modify-other-keys-terminal-list |
| 646 | (delq terminal xterm-modify-other-keys-terminal-list)) | 646 | (delq terminal xterm-modify-other-keys-terminal-list)) |
| 647 | (send-string-to-terminal "\e[>4m"))) | 647 | (send-string-to-terminal "\e[>4m" terminal))) |
| 648 | 648 | ||
| 649 | ;; arch-tag: 12e7ebdd-1e6c-4b25-b0f9-35ace25e855a | 649 | ;; arch-tag: 12e7ebdd-1e6c-4b25-b0f9-35ace25e855a |
| 650 | ;;; xterm.el ends here | 650 | ;;; xterm.el ends here |