comparison lisp/subr.el @ 46052:4d27fe417297

(char-bytes): Fix obsolescence declaration. (make-local-hook): Likewise. (baud-rate): Remove redundant info from docstring.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 27 Jun 2002 16:08:56 +0000
parents a8fbafaa31ad
children a123dda5650e
comparison
equal deleted inserted replaced
46051:990c78360ef5 46052:4d27fe417297
697 (defalias 'compiled-function-p 'byte-code-function-p) 697 (defalias 'compiled-function-p 'byte-code-function-p)
698 (defalias 'define-function 'defalias) 698 (defalias 'define-function 'defalias)
699 699
700 (defalias 'sref 'aref) 700 (defalias 'sref 'aref)
701 (make-obsolete 'sref 'aref "20.4") 701 (make-obsolete 'sref 'aref "20.4")
702 (make-obsolete 'char-bytes "Now this function always returns 1" "20.4") 702 (make-obsolete 'char-bytes "now always returns 1 (maintained for backward compatibility)." "20.4")
703 703
704 (defun insert-string (&rest args) 704 (defun insert-string (&rest args)
705 "Mocklisp-compatibility insert function. 705 "Mocklisp-compatibility insert function.
706 Like the function `insert' except that any argument that is a number 706 Like the function `insert' except that any argument that is a number
707 is converted into a string by expressing it in decimal." 707 is converted into a string by expressing it in decimal."
710 710
711 (make-obsolete 'insert-string 'insert "21.3") 711 (make-obsolete 'insert-string 'insert "21.3")
712 712
713 ;; Some programs still use this as a function. 713 ;; Some programs still use this as a function.
714 (defun baud-rate () 714 (defun baud-rate ()
715 "Obsolete function returning the value of the `baud-rate' variable. 715 "Return the value of the `baud-rate' variable."
716 Please convert your programs to use the variable `baud-rate' directly."
717 baud-rate) 716 baud-rate)
718 717
719 (defalias 'focus-frame 'ignore) 718 (defalias 'focus-frame 'ignore)
720 (defalias 'unfocus-frame 'ignore) 719 (defalias 'unfocus-frame 'ignore)
721 720
770 nil 769 nil
771 (or (boundp hook) (set hook nil)) 770 (or (boundp hook) (set hook nil))
772 (make-local-variable hook) 771 (make-local-variable hook)
773 (set hook (list t))) 772 (set hook (list t)))
774 hook) 773 hook)
775 (make-obsolete 'make-local-hook "Not necessary any more." "21.1") 774 (make-obsolete 'make-local-hook "not necessary any more." "21.1")
776 775
777 (defun add-hook (hook function &optional append local) 776 (defun add-hook (hook function &optional append local)
778 "Add to the value of HOOK the function FUNCTION. 777 "Add to the value of HOOK the function FUNCTION.
779 FUNCTION is not added if already present. 778 FUNCTION is not added if already present.
780 FUNCTION is added (if necessary) at the beginning of the hook list 779 FUNCTION is added (if necessary) at the beginning of the hook list