Mercurial > emacs
comparison lisp/subr.el @ 105364:338d102432df
* eval.c (Fcalled_interactively_p): Add `kind' argument.
* subr.el (interactive-p): Mark obsolete.
(called-interactively-p): Make the optional-ness of `kind' obsolete.
* emacs-lisp/bytecomp.el (byte-compile-fdefinition): Make it obey
advertised-signature-table for subroutines as well.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 01 Oct 2009 17:47:38 +0000 |
parents | 78728d295b59 |
children | bdfcf9d2baaa |
comparison
equal
deleted
inserted
replaced
105363:a3acd4b1e5cc | 105364:338d102432df |
---|---|
1006 (nth 9 position)) | 1006 (nth 9 position)) |
1007 | 1007 |
1008 | 1008 |
1009 ;;;; Obsolescent names for functions. | 1009 ;;;; Obsolescent names for functions. |
1010 | 1010 |
1011 (define-obsolete-function-alias 'window-dot 'window-point "22.1") | |
1012 (define-obsolete-function-alias 'set-window-dot 'set-window-point "22.1") | |
1013 (define-obsolete-function-alias 'read-input 'read-string "22.1") | |
1014 (define-obsolete-function-alias 'show-buffer 'set-window-buffer "22.1") | |
1015 (define-obsolete-function-alias 'eval-current-buffer 'eval-buffer "22.1") | |
1016 (define-obsolete-function-alias 'string-to-int 'string-to-number "22.1") | |
1017 | |
1018 (make-obsolete 'char-bytes "now always returns 1." "20.4") | |
1019 (make-obsolete 'forward-point "use (+ (point) N) instead." "23.1") | |
1020 | |
1021 (defun insert-string (&rest args) | |
1022 "Mocklisp-compatibility insert function. | |
1023 Like the function `insert' except that any argument that is a number | |
1024 is converted into a string by expressing it in decimal." | |
1025 (dolist (el args) | |
1026 (insert (if (integerp el) (number-to-string el) el)))) | |
1027 (make-obsolete 'insert-string 'insert "22.1") | |
1028 | |
1029 (defun makehash (&optional test) (make-hash-table :test (or test 'eql))) | |
1030 (make-obsolete 'makehash 'make-hash-table "22.1") | |
1031 | |
1032 ;; These are used by VM and some old programs | |
1033 (defalias 'focus-frame 'ignore "") | |
1034 (make-obsolete 'focus-frame "it does nothing." "22.1") | |
1035 (defalias 'unfocus-frame 'ignore "") | |
1036 (make-obsolete 'unfocus-frame "it does nothing." "22.1") | |
1037 (make-obsolete 'make-variable-frame-local | |
1038 "explicitly check for a frame-parameter instead." "22.2") | |
1039 (make-obsolete 'interactive-p 'called-interactively-p "23.2") | |
1040 (set-advertised-calling-convention 'called-interactively-p '(kind)) | |
1041 | |
1042 ;;;; Obsolescence declarations for variables, and aliases. | |
1043 | |
1011 ;; Special "default-FOO" variables which contain the default value of | 1044 ;; Special "default-FOO" variables which contain the default value of |
1012 ;; the "FOO" variable are nasty. Their implementation is brittle, and | 1045 ;; the "FOO" variable are nasty. Their implementation is brittle, and |
1013 ;; slows down several unrelated variable operations; furthermore, they | 1046 ;; slows down several unrelated variable operations; furthermore, they |
1014 ;; can lead to really odd behavior if you decide to make them | 1047 ;; can lead to really odd behavior if you decide to make them |
1015 ;; buffer-local. | 1048 ;; buffer-local. |
1044 (make-obsolete-variable 'default-cursor-in-non-selected-windows 'cursor-in-non-selected-windows "23.2") | 1077 (make-obsolete-variable 'default-cursor-in-non-selected-windows 'cursor-in-non-selected-windows "23.2") |
1045 (make-obsolete-variable 'default-buffer-file-coding-system 'buffer-file-coding-system "23.2") | 1078 (make-obsolete-variable 'default-buffer-file-coding-system 'buffer-file-coding-system "23.2") |
1046 (make-obsolete-variable 'default-major-mode 'major-mode "23.2") | 1079 (make-obsolete-variable 'default-major-mode 'major-mode "23.2") |
1047 (make-obsolete-variable 'default-enable-multibyte-characters | 1080 (make-obsolete-variable 'default-enable-multibyte-characters |
1048 "use enable-multibyte-characters or set-buffer-multibyte instead" "23.2") | 1081 "use enable-multibyte-characters or set-buffer-multibyte instead" "23.2") |
1049 | |
1050 (define-obsolete-function-alias 'window-dot 'window-point "22.1") | |
1051 (define-obsolete-function-alias 'set-window-dot 'set-window-point "22.1") | |
1052 (define-obsolete-function-alias 'read-input 'read-string "22.1") | |
1053 (define-obsolete-function-alias 'show-buffer 'set-window-buffer "22.1") | |
1054 (define-obsolete-function-alias 'eval-current-buffer 'eval-buffer "22.1") | |
1055 (define-obsolete-function-alias 'string-to-int 'string-to-number "22.1") | |
1056 | |
1057 (make-obsolete 'char-bytes "now always returns 1." "20.4") | |
1058 (make-obsolete 'forward-point "use (+ (point) N) instead." "23.1") | |
1059 | |
1060 (defun insert-string (&rest args) | |
1061 "Mocklisp-compatibility insert function. | |
1062 Like the function `insert' except that any argument that is a number | |
1063 is converted into a string by expressing it in decimal." | |
1064 (dolist (el args) | |
1065 (insert (if (integerp el) (number-to-string el) el)))) | |
1066 (make-obsolete 'insert-string 'insert "22.1") | |
1067 | |
1068 (defun makehash (&optional test) (make-hash-table :test (or test 'eql))) | |
1069 (make-obsolete 'makehash 'make-hash-table "22.1") | |
1070 | |
1071 ;; These are used by VM and some old programs | |
1072 (defalias 'focus-frame 'ignore "") | |
1073 (make-obsolete 'focus-frame "it does nothing." "22.1") | |
1074 (defalias 'unfocus-frame 'ignore "") | |
1075 (make-obsolete 'unfocus-frame "it does nothing." "22.1") | |
1076 (make-obsolete 'make-variable-frame-local | |
1077 "explicitly check for a frame-parameter instead." "22.2") | |
1078 | |
1079 ;;;; Obsolescence declarations for variables, and aliases. | |
1080 | 1082 |
1081 (make-obsolete-variable 'define-key-rebound-commands nil "23.2") | 1083 (make-obsolete-variable 'define-key-rebound-commands nil "23.2") |
1082 (make-obsolete-variable 'redisplay-end-trigger-functions 'jit-lock-register "23.1") | 1084 (make-obsolete-variable 'redisplay-end-trigger-functions 'jit-lock-register "23.1") |
1083 (make-obsolete 'window-redisplay-end-trigger nil "23.1") | 1085 (make-obsolete 'window-redisplay-end-trigger nil "23.1") |
1084 (make-obsolete 'set-window-redisplay-end-trigger nil "23.1") | 1086 (make-obsolete 'set-window-redisplay-end-trigger nil "23.1") |