diff options
| author | Glenn Morris | 2018-01-10 13:47:42 -0500 |
|---|---|---|
| committer | Glenn Morris | 2018-01-10 13:47:42 -0500 |
| commit | a44fee314f151d0ee872f9ce584c7df52ee9f0f6 (patch) | |
| tree | 1cfcf78cebd16879f612b55c40f16f790ab70397 | |
| parent | b877e9aa0225ad186b544f127702e16c61b08444 (diff) | |
| download | emacs-a44fee314f151d0ee872f9ce584c7df52ee9f0f6.tar.gz emacs-a44fee314f151d0ee872f9ce584c7df52ee9f0f6.zip | |
Remove obsolete variable sun-raw-prefix-hooks
* lisp/term/sun.el (sun-raw-prefix-hooks): Remove, obsolete since 21.1.
(terminal-init-sun): No longer consult sun-raw-prefix-hooks.
| -rw-r--r-- | lisp/term/sun.el | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/lisp/term/sun.el b/lisp/term/sun.el index b3e70f3107b..34ed492c872 100644 --- a/lisp/term/sun.el +++ b/lisp/term/sun.el | |||
| @@ -118,14 +118,6 @@ | |||
| 118 | (define-key map "D" [left]) ; R10 | 118 | (define-key map "D" [left]) ; R10 |
| 119 | map)) | 119 | map)) |
| 120 | 120 | ||
| 121 | ;; Since .emacs gets loaded before this file, a hook is supplied | ||
| 122 | ;; for you to put your own bindings in. | ||
| 123 | |||
| 124 | (defvar sun-raw-prefix-hooks nil | ||
| 125 | "List of forms to evaluate after setting `sun-raw-prefix'.") | ||
| 126 | ;; Obsolete since 21.1, but tty-setup-hook only exists since 24.4. | ||
| 127 | (make-obsolete-variable 'sun-raw-prefix-hooks 'tty-setup-hook "21.1") | ||
| 128 | |||
| 129 | 121 | ||
| 130 | 122 | ||
| 131 | (defun terminal-init-sun () | 123 | (defun terminal-init-sun () |
| @@ -147,16 +139,7 @@ | |||
| 147 | (global-set-key [f3] 'scroll-down-in-place) | 139 | (global-set-key [f3] 'scroll-down-in-place) |
| 148 | (global-set-key [f4] 'scroll-up-in-place) | 140 | (global-set-key [f4] 'scroll-up-in-place) |
| 149 | (global-set-key [f6] 'shrink-window) | 141 | (global-set-key [f6] 'shrink-window) |
| 150 | (global-set-key [f7] 'enlarge-window) | 142 | (global-set-key [f7] 'enlarge-window)) |
| 151 | |||
| 152 | (when sun-raw-prefix-hooks | ||
| 153 | (message "sun-raw-prefix-hooks is obsolete! Use %s instead!" | ||
| 154 | (or (car-safe (get 'sun-raw-prefix-hooks 'byte-obsolete-variable)) | ||
| 155 | "emacs-startup-hook")) | ||
| 156 | (let ((hooks sun-raw-prefix-hooks)) | ||
| 157 | (while hooks | ||
| 158 | (eval (car hooks)) | ||
| 159 | (setq hooks (cdr hooks)))))) | ||
| 160 | 143 | ||
| 161 | (provide 'term/sun) | 144 | (provide 'term/sun) |
| 162 | 145 | ||