/[emacs]/emacs/lispref/functions.texi
ViewVC logotype

Diff of /emacs/lispref/functions.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.32 by lektu, Wed Jun 15 23:09:44 2005 UTC revision 1.33 by rms, Sat Jun 18 13:50:04 2005 UTC
# Line 525  defines the symbol @var{name} as a funct Line 525  defines the symbol @var{name} as a funct
525  @var{name}.  It returns the value @var{name}, but usually we ignore this  @var{name}.  It returns the value @var{name}, but usually we ignore this
526  value.  value.
527    
528  As described previously (@pxref{Lambda Expressions}),  As described previously, @var{argument-list} is a list of argument
529  @var{argument-list} is a list of argument names and may include the  names and may include the keywords @code{&optional} and @code{&rest}
530  keywords @code{&optional} and @code{&rest}.  Also, the first two of the  (@pxref{Lambda Expressions}).  Also, the first two of the
531  @var{body-forms} may be a documentation string and an interactive  @var{body-forms} may be a documentation string and an interactive
532  declaration.  declaration.
533    
# Line 1174  You can define a function as an alias an Line 1174  You can define a function as an alias an
1174  same time using the macro @code{define-obsolete-function-alias}.  same time using the macro @code{define-obsolete-function-alias}.
1175    
1176  @defmac define-obsolete-function-alias obsolete-name current-name &optional when docstring  @defmac define-obsolete-function-alias obsolete-name current-name &optional when docstring
1177  This macro marks the function @var{obsolete-name} obsolete and also defines  This macro marks the function @var{obsolete-name} obsolete and also
1178  it as an alias for the function @var{current-name}.  A typical call has the  defines it as an alias for the function @var{current-name}.  It is
1179  form:  equivalent to the following:
1180    
1181  @example  @example
1182  (define-obsolete-function-alias 'old-fun 'new-fun "22.1" "Doc.")  (defalias @var{obsolete-name} @var{current-name} @var{docstring})
1183  @end example  (make-obsolete @var{obsolete-name} @var{current-name} @var{when})
   
 @noindent  
 which is equivalent to the following two lines of code:  
   
 @example  
 (defalias 'old-fun 'new-fun "Doc.")  
 (make-obsolete 'old-fun 'new-fun "22.1")  
1184  @end example  @end example
1185  @end defmac  @end defmac
1186    

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26