]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove obsolete variable sun-raw-prefix-hooks
authorGlenn Morris <rgm@gnu.org>
Wed, 10 Jan 2018 18:47:42 +0000 (13:47 -0500)
committerGlenn Morris <rgm@gnu.org>
Wed, 10 Jan 2018 18:47:42 +0000 (13:47 -0500)
* lisp/term/sun.el (sun-raw-prefix-hooks): Remove, obsolete since 21.1.
(terminal-init-sun): No longer consult sun-raw-prefix-hooks.

lisp/term/sun.el

index b3e70f3107b63ee1ec962944e3443ab821a2b238..34ed492c8728ab82d63fa20c2e62c005d0d4f922 100644 (file)
     (define-key map "D" [left])  ; R10
     map))
 
-;; Since .emacs gets loaded before this file, a hook is supplied
-;; for you to put your own bindings in.
-
-(defvar sun-raw-prefix-hooks nil
-  "List of forms to evaluate after setting `sun-raw-prefix'.")
-;; Obsolete since 21.1, but tty-setup-hook only exists since 24.4.
-(make-obsolete-variable 'sun-raw-prefix-hooks 'tty-setup-hook "21.1")
-
 \f
 
 (defun terminal-init-sun ()
   (global-set-key [f3] 'scroll-down-in-place)
   (global-set-key [f4] 'scroll-up-in-place)
   (global-set-key [f6] 'shrink-window)
-  (global-set-key [f7] 'enlarge-window)
-
-  (when sun-raw-prefix-hooks
-    (message "sun-raw-prefix-hooks is obsolete!  Use %s instead!"
-            (or (car-safe (get 'sun-raw-prefix-hooks 'byte-obsolete-variable))
-                "emacs-startup-hook"))
-    (let ((hooks sun-raw-prefix-hooks))
-      (while hooks
-       (eval (car hooks))
-       (setq hooks (cdr hooks))))))
+  (global-set-key [f7] 'enlarge-window))
 
 (provide 'term/sun)