diff options
| author | Richard M. Stallman | 1994-05-28 12:54:52 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-28 12:54:52 +0000 |
| commit | f87de92aa2bd02096608d38d295136666533e83d (patch) | |
| tree | 3f0b477e0d9a1605908484eaa2b8461988687cab | |
| parent | c870ab8eb30759ccc135b8c47840bd998049bdcd (diff) | |
| download | emacs-f87de92aa2bd02096608d38d295136666533e83d.tar.gz emacs-f87de92aa2bd02096608d38d295136666533e83d.zip | |
(enable-flow-control): Fix bugs turning off flow ctrl.
| -rw-r--r-- | lisp/flow-ctrl.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/flow-ctrl.el b/lisp/flow-ctrl.el index f871493c0a2..e2cef00684b 100644 --- a/lisp/flow-ctrl.el +++ b/lisp/flow-ctrl.el | |||
| @@ -62,10 +62,14 @@ With arg, enable flow control mode if arg is positive, otherwise disable." | |||
| 62 | (progn | 62 | (progn |
| 63 | ;; Turn flow control off, and stop exchanging chars. | 63 | ;; Turn flow control off, and stop exchanging chars. |
| 64 | (set-input-mode t nil (nth 2 (current-input-mode))) | 64 | (set-input-mode t nil (nth 2 (current-input-mode))) |
| 65 | (aset keyboard-translate-table flow-control-c-s-replacement nil) | 65 | (if keyboard-translate-table |
| 66 | (aset keyboard-translate-table ?\^s nil) | 66 | (progn |
| 67 | (aset keyboard-translate-table flow-control-c-q-replacement nil) | 67 | (aset keyboard-translate-table flow-control-c-s-replacement |
| 68 | (aset keyboard-translate-table ?\^q nil)) | 68 | flow-control-c-s-replacement) |
| 69 | (aset keyboard-translate-table ?\^s ?\^s) | ||
| 70 | (aset keyboard-translate-table flow-control-c-q-replacement | ||
| 71 | flow-control-c-q-replacement) | ||
| 72 | (aset keyboard-translate-table ?\^q ?\^q)))) | ||
| 69 | ;; Turn flow control on. | 73 | ;; Turn flow control on. |
| 70 | ;; Tell emacs to pass C-s and C-q to OS. | 74 | ;; Tell emacs to pass C-s and C-q to OS. |
| 71 | (set-input-mode nil t (nth 2 (current-input-mode))) | 75 | (set-input-mode nil t (nth 2 (current-input-mode))) |