changeset 109621:6ed9d360e4c7

* src/data.c (Flocal_variable_p): Handle variable aliases correctly.
author Johan Bockgård <bojohan@gnu.org>
date Tue, 03 Aug 2010 18:37:00 +0200
parents 71264d39075a
children 2c821d4f47fe
files src/ChangeLog src/data.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Aug 03 14:22:23 2010 +0200
+++ b/src/ChangeLog	Tue Aug 03 18:37:00 2010 +0200
@@ -1,3 +1,7 @@
+2010-08-03  Johan Bockgård  <bojohan@gnu.org>
+
+	* data.c (Flocal_variable_p): Handle variable aliases correctly.
+
 2010-08-02  Jan Djärv  <jan.h.d@swipnet.se>
 
 	* xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
--- a/src/data.c	Tue Aug 03 14:22:23 2010 +0200
+++ b/src/data.c	Tue Aug 03 18:37:00 2010 +0200
@@ -1866,6 +1866,7 @@
 	Lisp_Object tail, elt, tmp;
 	struct Lisp_Buffer_Local_Value *blv = SYMBOL_BLV (sym);
 	XSETBUFFER (tmp, buf);
+	XSETSYMBOL (variable, sym); /* Update in case of aliasing.  */
 
 	for (tail = buf->local_var_alist; CONSP (tail); tail = XCDR (tail))
 	  {