Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
0448b476
Commit
0448b476
authored
Apr 26, 2005
by
Nick Roberts
Browse files
(define-obsolete-function-alias): New macro.
parent
35b1b8ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
lisp/emacs-lisp/byte-run.el
lisp/emacs-lisp/byte-run.el
+12
-0
No files found.
lisp/emacs-lisp/byte-run.el
View file @
0448b476
...
...
@@ -114,6 +114,18 @@ was first made obsolete, for example a date or a release number."
(
put
function
'byte-obsolete-info
(
list
new
handler
when
)))
function
)
(
defmacro
define-obsolete-function-alias
(
function
new
&optional
when
docstring
)
"Set FUNCTION's function definition to NEW and warn that FUNCTION is obsolete.
If provided, WHEN should be a string indicating when FUNCTION was
first made obsolete, for example a date or a release number. The
optional argument DOCSTRING specifies the documentation string
for FUNCTION; if DOCSTRING is omitted or nil, FUNCTION uses the
documentation string of NEW unluess it already has one."
`
(
progn
(
defalias
,
function
,
new
,
docstring
)
(
make-obsolete
,
function
,
new
,
when
)))
(
defun
make-obsolete-variable
(
variable
new
&optional
when
)
"Make the byte-compiler warn that VARIABLE is obsolete.
The warning will say that NEW should be used instead.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment