diff options
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/data.c b/src/data.c index d1e43ac1b5f..9f4bd1f1c02 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -981,19 +981,14 @@ store_symval_forwarding (union Lisp_Fwd *valcontents, register Lisp_Object newva | |||
| 981 | - (char *) &buffer_defaults); | 981 | - (char *) &buffer_defaults); |
| 982 | int idx = PER_BUFFER_IDX (offset); | 982 | int idx = PER_BUFFER_IDX (offset); |
| 983 | 983 | ||
| 984 | Lisp_Object tail; | 984 | Lisp_Object tail, buf; |
| 985 | 985 | ||
| 986 | if (idx <= 0) | 986 | if (idx <= 0) |
| 987 | break; | 987 | break; |
| 988 | 988 | ||
| 989 | for (tail = Vbuffer_alist; CONSP (tail); tail = XCDR (tail)) | 989 | FOR_EACH_LIVE_BUFFER (tail, buf) |
| 990 | { | 990 | { |
| 991 | Lisp_Object lbuf; | 991 | struct buffer *b = XBUFFER (buf); |
| 992 | struct buffer *b; | ||
| 993 | |||
| 994 | lbuf = Fcdr (XCAR (tail)); | ||
| 995 | if (!BUFFERP (lbuf)) continue; | ||
| 996 | b = XBUFFER (lbuf); | ||
| 997 | 992 | ||
| 998 | if (! PER_BUFFER_VALUE_P (b, idx)) | 993 | if (! PER_BUFFER_VALUE_P (b, idx)) |
| 999 | set_per_buffer_value (b, offset, newval); | 994 | set_per_buffer_value (b, offset, newval); |
| @@ -1980,7 +1975,7 @@ If the current binding is global (the default), the value is nil. */) | |||
| 1980 | { | 1975 | { |
| 1981 | union Lisp_Fwd *valcontents = SYMBOL_FWD (sym); | 1976 | union Lisp_Fwd *valcontents = SYMBOL_FWD (sym); |
| 1982 | if (KBOARD_OBJFWDP (valcontents)) | 1977 | if (KBOARD_OBJFWDP (valcontents)) |
| 1983 | return Fframe_terminal (Fselected_frame ()); | 1978 | return Fframe_terminal (selected_frame); |
| 1984 | else if (!BUFFER_OBJFWDP (valcontents)) | 1979 | else if (!BUFFER_OBJFWDP (valcontents)) |
| 1985 | return Qnil; | 1980 | return Qnil; |
| 1986 | } | 1981 | } |