mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-26 07:33:47 +00:00
(Fbuffer_local_value): Make argument name match its use in docstring.
This commit is contained in:
parent
48985adc8a
commit
5e2ad10b99
@ -1,3 +1,8 @@
|
||||
2005-05-27 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* buffer.c (Fbuffer_local_value): Make argument name match its use
|
||||
in docstring.
|
||||
|
||||
2005-05-26 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* keyboard.c (Frecursive_edit): Fix typo in docstring.
|
||||
|
36
src/buffer.c
36
src/buffer.c
@ -877,20 +877,20 @@ DEFUN ("buffer-local-value", Fbuffer_local_value,
|
||||
Sbuffer_local_value, 2, 2, 0,
|
||||
doc: /* Return the value of VARIABLE in BUFFER.
|
||||
If VARIABLE does not have a buffer-local binding in BUFFER, the value
|
||||
is the default binding of variable. */)
|
||||
(symbol, buffer)
|
||||
register Lisp_Object symbol;
|
||||
is the default binding of the variable. */)
|
||||
(variable, buffer)
|
||||
register Lisp_Object variable;
|
||||
register Lisp_Object buffer;
|
||||
{
|
||||
register struct buffer *buf;
|
||||
register Lisp_Object result;
|
||||
|
||||
CHECK_SYMBOL (symbol);
|
||||
CHECK_SYMBOL (variable);
|
||||
CHECK_BUFFER (buffer);
|
||||
buf = XBUFFER (buffer);
|
||||
|
||||
/* Look in local_var_list */
|
||||
result = Fassoc (symbol, buf->local_var_alist);
|
||||
result = Fassoc (variable, buf->local_var_alist);
|
||||
if (NILP (result))
|
||||
{
|
||||
int offset, idx;
|
||||
@ -905,7 +905,7 @@ is the default binding of variable. */)
|
||||
idx = PER_BUFFER_IDX (offset);
|
||||
if ((idx == -1 || PER_BUFFER_VALUE_P (buf, idx))
|
||||
&& SYMBOLP (PER_BUFFER_SYMBOL (offset))
|
||||
&& EQ (PER_BUFFER_SYMBOL (offset), symbol))
|
||||
&& EQ (PER_BUFFER_SYMBOL (offset), variable))
|
||||
{
|
||||
result = PER_BUFFER_VALUE (buf, offset);
|
||||
found = 1;
|
||||
@ -914,7 +914,7 @@ is the default binding of variable. */)
|
||||
}
|
||||
|
||||
if (!found)
|
||||
result = Fdefault_value (symbol);
|
||||
result = Fdefault_value (variable);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -922,7 +922,7 @@ is the default binding of variable. */)
|
||||
Lisp_Object current_alist_element;
|
||||
|
||||
/* What binding is loaded right now? */
|
||||
valcontents = SYMBOL_VALUE (symbol);
|
||||
valcontents = SYMBOL_VALUE (variable);
|
||||
current_alist_element
|
||||
= XCAR (XBUFFER_LOCAL_VALUE (valcontents)->cdr);
|
||||
|
||||
@ -939,7 +939,7 @@ is the default binding of variable. */)
|
||||
}
|
||||
|
||||
if (EQ (result, Qunbound))
|
||||
return Fsignal (Qvoid_variable, Fcons (symbol, Qnil));
|
||||
return Fsignal (Qvoid_variable, Fcons (variable, Qnil));
|
||||
|
||||
return result;
|
||||
}
|
||||
@ -5276,19 +5276,19 @@ This is the same as (default-value 'abbrev-mode). */);
|
||||
doc: /* Default value of `ctl-arrow' for buffers that do not override it.
|
||||
This is the same as (default-value 'ctl-arrow). */);
|
||||
|
||||
DEFVAR_LISP_NOPRO ("default-direction-reversed",
|
||||
&buffer_defaults.direction_reversed,
|
||||
doc: /* Default value of `direction-reversed' for buffers that do not override it.
|
||||
DEFVAR_LISP_NOPRO ("default-direction-reversed",
|
||||
&buffer_defaults.direction_reversed,
|
||||
doc: /* Default value of `direction-reversed' for buffers that do not override it.
|
||||
This is the same as (default-value 'direction-reversed). */);
|
||||
|
||||
DEFVAR_LISP_NOPRO ("default-enable-multibyte-characters",
|
||||
&buffer_defaults.enable_multibyte_characters,
|
||||
doc: /* *Default value of `enable-multibyte-characters' for buffers not overriding it.
|
||||
DEFVAR_LISP_NOPRO ("default-enable-multibyte-characters",
|
||||
&buffer_defaults.enable_multibyte_characters,
|
||||
doc: /* *Default value of `enable-multibyte-characters' for buffers not overriding it.
|
||||
This is the same as (default-value 'enable-multibyte-characters). */);
|
||||
|
||||
DEFVAR_LISP_NOPRO ("default-buffer-file-coding-system",
|
||||
&buffer_defaults.buffer_file_coding_system,
|
||||
doc: /* Default value of `buffer-file-coding-system' for buffers not overriding it.
|
||||
DEFVAR_LISP_NOPRO ("default-buffer-file-coding-system",
|
||||
&buffer_defaults.buffer_file_coding_system,
|
||||
doc: /* Default value of `buffer-file-coding-system' for buffers not overriding it.
|
||||
This is the same as (default-value 'buffer-file-coding-system). */);
|
||||
|
||||
DEFVAR_LISP_NOPRO ("default-truncate-lines",
|
||||
|
Loading…
Reference in New Issue
Block a user