Mercurial > emacs
comparison src/data.c @ 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 | 228a5fa4eda0 |
children | c4c8e4a16194 |
comparison
equal
deleted
inserted
replaced
109620:71264d39075a | 109621:6ed9d360e4c7 |
---|---|
1864 case SYMBOL_LOCALIZED: | 1864 case SYMBOL_LOCALIZED: |
1865 { | 1865 { |
1866 Lisp_Object tail, elt, tmp; | 1866 Lisp_Object tail, elt, tmp; |
1867 struct Lisp_Buffer_Local_Value *blv = SYMBOL_BLV (sym); | 1867 struct Lisp_Buffer_Local_Value *blv = SYMBOL_BLV (sym); |
1868 XSETBUFFER (tmp, buf); | 1868 XSETBUFFER (tmp, buf); |
1869 XSETSYMBOL (variable, sym); /* Update in case of aliasing. */ | |
1869 | 1870 |
1870 for (tail = buf->local_var_alist; CONSP (tail); tail = XCDR (tail)) | 1871 for (tail = buf->local_var_alist; CONSP (tail); tail = XCDR (tail)) |
1871 { | 1872 { |
1872 elt = XCAR (tail); | 1873 elt = XCAR (tail); |
1873 if (EQ (variable, XCAR (elt))) | 1874 if (EQ (variable, XCAR (elt))) |