/[emacs]/emacs/src/data.c
ViewVC logotype

Diff of /emacs/src/data.c

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

revision 1.245 by kfstorm, Tue Nov 9 13:19:11 2004 UTC revision 1.246 by rms, Thu Dec 2 23:35:42 2004 UTC
# Line 1509  Note that binding the variable with `let Line 1509  Note that binding the variable with `let
1509  a `let'-style binding made in this buffer is in effect,  a `let'-style binding made in this buffer is in effect,
1510  does not make the variable buffer-local.  Return VARIABLE.  does not make the variable buffer-local.  Return VARIABLE.
1511    
1512    In most cases it is better to use `make-local-variable',
1513    which makes a variable local in just one buffer.
1514    
1515  The function `default-value' gets the default value and `set-default' sets it.  */)  The function `default-value' gets the default value and `set-default' sets it.  */)
1516       (variable)       (variable)
1517       register Lisp_Object variable;       register Lisp_Object variable;
# Line 1552  DEFUN ("make-local-variable", Fmake_loca Line 1555  DEFUN ("make-local-variable", Fmake_loca
1555  Other buffers will continue to share a common default value.  Other buffers will continue to share a common default value.
1556  \(The buffer-local value of VARIABLE starts out as the same value  \(The buffer-local value of VARIABLE starts out as the same value
1557  VARIABLE previously had.  If VARIABLE was void, it remains void.\)  VARIABLE previously had.  If VARIABLE was void, it remains void.\)
1558  See also `make-variable-buffer-local'.  Return VARIABLE.  Return VARIABLE.
1559    
1560  If the variable is already arranged to become local when set,  If the variable is already arranged to become local when set,
1561  this function causes a local value to exist for this buffer,  this function causes a local value to exist for this buffer,
# Line 1562  This function returns VARIABLE, and ther Line 1565  This function returns VARIABLE, and ther
1565    (set (make-local-variable 'VARIABLE) VALUE-EXP)    (set (make-local-variable 'VARIABLE) VALUE-EXP)
1566  works.  works.
1567    
1568    See also `make-variable-buffer-local'.
1569    
1570  Do not use `make-local-variable' to make a hook variable buffer-local.  Do not use `make-local-variable' to make a hook variable buffer-local.
1571  Instead, use `add-hook' and specify t for the LOCAL argument.  */)  Instead, use `add-hook' and specify t for the LOCAL argument.  */)
1572       (variable)       (variable)

Legend:
Removed from v.1.245  
changed lines
  Added in v.1.246

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