diff options
| author | Xue Fuqiao | 2013-09-04 08:39:34 +0800 |
|---|---|---|
| committer | Xue Fuqiao | 2013-09-04 08:39:34 +0800 |
| commit | adf2fc4a01efe77d73cd52bc9173914ed56ff531 (patch) | |
| tree | a5a280a5554a7bffeaf94fccae29fa3ac1a5d066 /src/data.c | |
| parent | 63191d9f2043d2e67657e85a7b3842805dd1dad6 (diff) | |
| parent | 38726039b77db432989fed106c88e9f1aa463281 (diff) | |
| download | emacs-adf2fc4a01efe77d73cd52bc9173914ed56ff531.tar.gz emacs-adf2fc4a01efe77d73cd52bc9173914ed56ff531.zip | |
Merge from mainline.
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 | } |