emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master a44fee3 1/2: Remove obsolete variable sun-raw-prefi


From: Glenn Morris
Subject: [Emacs-diffs] master a44fee3 1/2: Remove obsolete variable sun-raw-prefix-hooks
Date: Wed, 10 Jan 2018 13:48:54 -0500 (EST)

branch: master
commit a44fee314f151d0ee872f9ce584c7df52ee9f0f6
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    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.
---
 lisp/term/sun.el | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)

diff --git a/lisp/term/sun.el b/lisp/term/sun.el
index b3e70f3..34ed492 100644
--- a/lisp/term/sun.el
+++ b/lisp/term/sun.el
@@ -118,14 +118,6 @@
     (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")
-
 
 
 (defun terminal-init-sun ()
@@ -147,16 +139,7 @@
   (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)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]