X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/ce3cefcca3227944d27d75e7de0f1e4f4b6d11a6..0e963201d03d9229bb8ac4323291d2b0119526ed:/lisp/term/sun.el diff --git a/lisp/term/sun.el b/lisp/term/sun.el index ab7ca8bf5a..7fb8e7ed98 100644 --- a/lisp/term/sun.el +++ b/lisp/term/sun.el @@ -1,6 +1,6 @@ ;;; sun.el --- keybinding for standard default sunterm keys -;; Copyright (C) 1987, 2001-2011 Free Software Foundation, Inc. +;; Copyright (C) 1987, 2001-2016 Free Software Foundation, Inc. ;; Author: Jeff Peck ;; Keywords: terminals @@ -38,7 +38,7 @@ (scroll-up n)) (defun kill-region-and-unmark (beg end) - "Like kill-region, but pops the mark [which equals point, anyway.]" + "Like `kill-region', but pops the mark [which equals point, anyway.]" (interactive "r") (kill-region beg end) (setq this-command 'kill-region-and-unmark) @@ -122,7 +122,9 @@ ;; for you to put your own bindings in. (defvar sun-raw-prefix-hooks nil - "List of forms to evaluate after setting sun-raw-prefix.") + "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") @@ -148,7 +150,9 @@ (global-set-key [f7] 'enlarge-window) (when sun-raw-prefix-hooks - (message "sun-raw-prefix-hooks is obsolete! Use term-setup-hook instead!") + (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))