Commit ffaa90dd authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(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'.
parent 0ef50993
2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
* term/xterm.el (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'.
2008-09-30 Michael Albinus <michael.albinus@gmx.de> 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
   
* vc-hooks.el (vc-file-clearprops): Revert change from 2008-09-29. * vc-hooks.el (vc-file-clearprops): Revert change from 2008-09-29.
...@@ -19,8 +25,8 @@ ...@@ -19,8 +25,8 @@
* term/internal.el: Remove coding: cookie and no-byte-compile flag. * term/internal.el: Remove coding: cookie and no-byte-compile flag.
(IT-character-translations, cjk-codepages-alist): Remove variables. (IT-character-translations, cjk-codepages-alist): Remove variables.
(IT-display-table-setup, dos-cpNNN-setup): Remove functions. (IT-display-table-setup, dos-cpNNN-setup): Remove functions.
(IT-unicode-translations): Remove charset and base elements. Add (IT-unicode-translations): Remove charset and base elements.
translations for Latin-1 characters. Add translations for Latin-1 characters.
(IT-setup-unicode-display): Accept a CODING argument. Don't use (IT-setup-unicode-display): Accept a CODING argument. Don't use
base and chset elements of IT-unicode-translations. Don't wrap base and chset elements of IT-unicode-translations. Don't wrap
translation in "{...}". Set up translations only for characters translation in "{...}". Set up translations only for characters
...@@ -32,8 +38,8 @@ ...@@ -32,8 +38,8 @@
condition-case, instead of calling file-directory-p, which stats condition-case, instead of calling file-directory-p, which stats
the directory one more time. the directory one more time.
   
* mail/mail-utils.el (mail-unquote-printable-region): Use * mail/mail-utils.el (mail-unquote-printable-region):
insert-byte instead of insert-char, when the UNIBYTE arg is Use insert-byte instead of insert-char, when the UNIBYTE arg is
non-nil. non-nil.
   
2008-09-30 Daiki Ueno <ueno@unixuser.org> 2008-09-30 Daiki Ueno <ueno@unixuser.org>
...@@ -106,8 +112,7 @@ ...@@ -106,8 +112,7 @@
   
2008-09-27 Daiki Ueno <ueno@unixuser.org> 2008-09-27 Daiki Ueno <ueno@unixuser.org>
   
* epg.el (epg-wait-for-status): Check if there is no pending * epg.el (epg-wait-for-status): Check if there is no pending status.
status.
Reported by Ted Romer <ted@romerfamily.com>. Reported by Ted Romer <ted@romerfamily.com>.
   
2008-09-26 Dan Nicolaescu <dann@ics.uci.edu> 2008-09-26 Dan Nicolaescu <dann@ics.uci.edu>
......
...@@ -624,27 +624,27 @@ versions of xterm." ...@@ -624,27 +624,27 @@ versions of xterm."
(clear-face-cache))) (clear-face-cache)))
(defun xterm-turn-on-modify-other-keys () (defun xterm-turn-on-modify-other-keys ()
"Turn on the modifyOtherKeys feature of xterm." "Turn the modifyOtherKeys feature of xterm back on."
(let ((terminal (frame-terminal (selected-frame)))) (let ((terminal (frame-terminal (selected-frame))))
(when (and (terminal-live-p terminal) (when (and (terminal-live-p terminal)
(memq terminal xterm-modify-other-keys-terminal-list)) (memq terminal xterm-modify-other-keys-terminal-list))
(send-string-to-terminal "\e[>4;1m")))) (send-string-to-terminal "\e[>4;1m" terminal))))
(defun xterm-turn-off-modify-other-keys (&optional frame) (defun xterm-turn-off-modify-other-keys (&optional frame)
"Turn off the modifyOtherKeys feature of xterm." "Temporarily turn off the modifyOtherKeys feature of xterm."
(let ((terminal (when frame (frame-terminal frame)))) (let ((terminal (when frame (frame-terminal frame))))
(when (and (frame-live-p terminal) (when (and (terminal-live-p terminal)
(memq terminal xterm-modify-other-keys-terminal-list)) (memq terminal xterm-modify-other-keys-terminal-list))
(send-string-to-terminal "\e[>4m")))) (send-string-to-terminal "\e[>4m" terminal))))
(defun xterm-remove-modify-other-keys (&optional terminal) (defun xterm-remove-modify-other-keys (&optional terminal)
"Turn off the modifyOtherKeys feature of xterm and remove frame from consideration." "Turn off the modifyOtherKeys feature of xterm for good."
(setq terminal (and terminal (frame-terminal (selected-frame)))) (setq terminal (and terminal (frame-terminal (selected-frame))))
(when (and (terminal-live-p terminal) (when (and (terminal-live-p terminal)
(memq terminal xterm-modify-other-keys-terminal-list)) (memq terminal xterm-modify-other-keys-terminal-list))
(setq xterm-modify-other-keys-terminal-list (setq xterm-modify-other-keys-terminal-list
(delq terminal xterm-modify-other-keys-terminal-list)) (delq terminal xterm-modify-other-keys-terminal-list))
(send-string-to-terminal "\e[>4m"))) (send-string-to-terminal "\e[>4m" terminal)))
;; arch-tag: 12e7ebdd-1e6c-4b25-b0f9-35ace25e855a ;; arch-tag: 12e7ebdd-1e6c-4b25-b0f9-35ace25e855a
;;; xterm.el ends here ;;; xterm.el ends here
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