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 | |
| 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'.
| -rw-r--r-- | lisp/ChangeLog | 17 | ||||
| -rw-r--r-- | lisp/term/xterm.el | 14 |
2 files changed, 18 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ea744ff0ab2..3ec18dcb279 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * term/xterm.el (xterm-turn-on-modify-other-keys) | ||
| 4 | (xterm-turn-off-modify-other-keys, xterm-remove-modify-other-keys): | ||
| 5 | Don't forget to pass `terminal' to `send-string-to-terminal'. | ||
| 6 | |||
| 1 | 2008-09-30 Michael Albinus <michael.albinus@gmx.de> | 7 | 2008-09-30 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 8 | ||
| 3 | * vc-hooks.el (vc-file-clearprops): Revert change from 2008-09-29. | 9 | * vc-hooks.el (vc-file-clearprops): Revert change from 2008-09-29. |
| @@ -19,8 +25,8 @@ | |||
| 19 | * term/internal.el: Remove coding: cookie and no-byte-compile flag. | 25 | * term/internal.el: Remove coding: cookie and no-byte-compile flag. |
| 20 | (IT-character-translations, cjk-codepages-alist): Remove variables. | 26 | (IT-character-translations, cjk-codepages-alist): Remove variables. |
| 21 | (IT-display-table-setup, dos-cpNNN-setup): Remove functions. | 27 | (IT-display-table-setup, dos-cpNNN-setup): Remove functions. |
| 22 | (IT-unicode-translations): Remove charset and base elements. Add | 28 | (IT-unicode-translations): Remove charset and base elements. |
| 23 | translations for Latin-1 characters. | 29 | Add translations for Latin-1 characters. |
| 24 | (IT-setup-unicode-display): Accept a CODING argument. Don't use | 30 | (IT-setup-unicode-display): Accept a CODING argument. Don't use |
| 25 | base and chset elements of IT-unicode-translations. Don't wrap | 31 | base and chset elements of IT-unicode-translations. Don't wrap |
| 26 | translation in "{...}". Set up translations only for characters | 32 | translation in "{...}". Set up translations only for characters |
| @@ -32,8 +38,8 @@ | |||
| 32 | condition-case, instead of calling file-directory-p, which stats | 38 | condition-case, instead of calling file-directory-p, which stats |
| 33 | the directory one more time. | 39 | the directory one more time. |
| 34 | 40 | ||
| 35 | * mail/mail-utils.el (mail-unquote-printable-region): Use | 41 | * mail/mail-utils.el (mail-unquote-printable-region): |
| 36 | insert-byte instead of insert-char, when the UNIBYTE arg is | 42 | Use insert-byte instead of insert-char, when the UNIBYTE arg is |
| 37 | non-nil. | 43 | non-nil. |
| 38 | 44 | ||
| 39 | 2008-09-30 Daiki Ueno <ueno@unixuser.org> | 45 | 2008-09-30 Daiki Ueno <ueno@unixuser.org> |
| @@ -106,8 +112,7 @@ | |||
| 106 | 112 | ||
| 107 | 2008-09-27 Daiki Ueno <ueno@unixuser.org> | 113 | 2008-09-27 Daiki Ueno <ueno@unixuser.org> |
| 108 | 114 | ||
| 109 | * epg.el (epg-wait-for-status): Check if there is no pending | 115 | * epg.el (epg-wait-for-status): Check if there is no pending status. |
| 110 | status. | ||
| 111 | Reported by Ted Romer <ted@romerfamily.com>. | 116 | Reported by Ted Romer <ted@romerfamily.com>. |
| 112 | 117 | ||
| 113 | 2008-09-26 Dan Nicolaescu <dann@ics.uci.edu> | 118 | 2008-09-26 Dan Nicolaescu <dann@ics.uci.edu> |
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 |