mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
* subr.el (unintern): Declare the obarray arg mandatory.
* emacs-lisp/byte-run.el (set-advertised-calling-convention): Add `when' argument. Update callers.
This commit is contained in:
parent
67ae97667d
commit
f3a30a50fa
2
etc/NEWS
2
etc/NEWS
@ -40,6 +40,8 @@ This can be used in place of the default appt-message-warning-time.
|
||||
|
||||
* Lisp changes in Emacs 23.3
|
||||
|
||||
** The use of unintern without an obarray arg is declared obsolete.
|
||||
|
||||
** New function byte-to-string, like char-to-string but for bytes.
|
||||
|
||||
|
||||
|
@ -1,3 +1,10 @@
|
||||
2010-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* emacs-lisp/byte-run.el (set-advertised-calling-convention):
|
||||
Add `when' argument. Update callers.
|
||||
|
||||
* subr.el (unintern): Declare the obarray arg mandatory.
|
||||
|
||||
2010-09-14 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* calendar/diary-lib.el (diary-list-entries-hook, diary-sort-entries):
|
||||
|
@ -108,10 +108,11 @@ The return value of this function is not used."
|
||||
|
||||
(defvar advertised-signature-table (make-hash-table :test 'eq :weakness 'key))
|
||||
|
||||
(defun set-advertised-calling-convention (function signature)
|
||||
(defun set-advertised-calling-convention (function signature when)
|
||||
"Set the advertised SIGNATURE of FUNCTION.
|
||||
This will allow the byte-compiler to warn the programmer when she uses
|
||||
an obsolete calling convention."
|
||||
an obsolete calling convention. WHEN specifies since when the calling
|
||||
convention was modified."
|
||||
(puthash (indirect-function function) signature
|
||||
advertised-signature-table))
|
||||
|
||||
@ -132,7 +133,7 @@ was first made obsolete, for example a date or a release number."
|
||||
obsolete-name)
|
||||
(set-advertised-calling-convention
|
||||
;; New code should always provide the `when' argument.
|
||||
'make-obsolete '(obsolete-name current-name when))
|
||||
'make-obsolete '(obsolete-name current-name when) "23.1")
|
||||
|
||||
(defmacro define-obsolete-function-alias (obsolete-name current-name
|
||||
&optional when docstring)
|
||||
@ -153,7 +154,7 @@ See the docstrings of `defalias' and `make-obsolete' for more details."
|
||||
(set-advertised-calling-convention
|
||||
;; New code should always provide the `when' argument.
|
||||
'define-obsolete-function-alias
|
||||
'(obsolete-name current-name when &optional docstring))
|
||||
'(obsolete-name current-name when &optional docstring) "23.1")
|
||||
|
||||
(defun make-obsolete-variable (obsolete-name current-name &optional when)
|
||||
"Make the byte-compiler warn that OBSOLETE-NAME is obsolete.
|
||||
@ -175,7 +176,7 @@ was first made obsolete, for example a date or a release number."
|
||||
obsolete-name)
|
||||
(set-advertised-calling-convention
|
||||
;; New code should always provide the `when' argument.
|
||||
'make-obsolete-variable '(obsolete-name current-name when))
|
||||
'make-obsolete-variable '(obsolete-name current-name when) "23.1")
|
||||
|
||||
(defmacro define-obsolete-variable-alias (obsolete-name current-name
|
||||
&optional when docstring)
|
||||
@ -210,7 +211,7 @@ CURRENT-NAME, if it does not already have them:
|
||||
(set-advertised-calling-convention
|
||||
;; New code should always provide the `when' argument.
|
||||
'define-obsolete-variable-alias
|
||||
'(obsolete-name current-name when &optional docstring))
|
||||
'(obsolete-name current-name when &optional docstring) "23.1")
|
||||
|
||||
;; FIXME This is only defined in this file because the variable- and
|
||||
;; function- versions are too. Unlike those two, this one is not used
|
||||
|
13
lisp/subr.el
13
lisp/subr.el
@ -238,7 +238,7 @@ letter but *do not* end with a period. Please follow this convention
|
||||
for the sake of consistency."
|
||||
(while t
|
||||
(signal 'error (list (apply 'format args)))))
|
||||
(set-advertised-calling-convention 'error '(string &rest args))
|
||||
(set-advertised-calling-convention 'error '(string &rest args) "23.1")
|
||||
|
||||
;; We put this here instead of in frame.el so that it's defined even on
|
||||
;; systems where frame.el isn't loaded.
|
||||
@ -1038,9 +1038,10 @@ is converted into a string by expressing it in decimal."
|
||||
(make-obsolete 'make-variable-frame-local
|
||||
"explicitly check for a frame-parameter instead." "22.2")
|
||||
(make-obsolete 'interactive-p 'called-interactively-p "23.2")
|
||||
(set-advertised-calling-convention 'called-interactively-p '(kind))
|
||||
(set-advertised-calling-convention 'called-interactively-p '(kind) "23.1")
|
||||
(set-advertised-calling-convention
|
||||
'all-completions '(string collection &optional predicate))
|
||||
'all-completions '(string collection &optional predicate) "23.1")
|
||||
(set-advertised-calling-convention 'unintern '(name obarray) "23.3")
|
||||
|
||||
;;;; Obsolescence declarations for variables, and aliases.
|
||||
|
||||
@ -2061,7 +2062,7 @@ floating point support."
|
||||
(setq read (cons t read)))
|
||||
(push read unread-command-events)
|
||||
nil))))))
|
||||
(set-advertised-calling-convention 'sit-for '(seconds &optional nodisp))
|
||||
(set-advertised-calling-convention 'sit-for '(seconds &optional nodisp) "22.1")
|
||||
|
||||
;;; Atomic change groups.
|
||||
|
||||
@ -2589,7 +2590,7 @@ discouraged."
|
||||
(start-process name buffer shell-file-name shell-command-switch
|
||||
(mapconcat 'identity args " ")))
|
||||
(set-advertised-calling-convention 'start-process-shell-command
|
||||
'(name buffer command))
|
||||
'(name buffer command) "23.1")
|
||||
|
||||
(defun start-file-process-shell-command (name buffer &rest args)
|
||||
"Start a program in a subprocess. Return the process object for it.
|
||||
@ -2600,7 +2601,7 @@ Similar to `start-process-shell-command', but calls `start-file-process'."
|
||||
(if (file-remote-p default-directory) "-c" shell-command-switch)
|
||||
(mapconcat 'identity args " ")))
|
||||
(set-advertised-calling-convention 'start-file-process-shell-command
|
||||
'(name buffer command))
|
||||
'(name buffer command) "23.1")
|
||||
|
||||
(defun call-process-shell-command (command &optional infile buffer display
|
||||
&rest args)
|
||||
|
Loading…
Reference in New Issue
Block a user