diff options
| author | Tom Tromey | 2013-08-19 21:53:07 -0600 |
|---|---|---|
| committer | Tom Tromey | 2013-08-19 21:53:07 -0600 |
| commit | 6d75555c5cc3d2a629646cee7629e67530fa7a36 (patch) | |
| tree | 3852804dd234ad613ea8691332e10b92c027e87d /src/data.c | |
| parent | cc231cbe45d27a1906d268fb72d3b4105a2e9c65 (diff) | |
| parent | 8c2f38aaab7a7a2f0605416fc2ee38701e41ab61 (diff) | |
| download | emacs-6d75555c5cc3d2a629646cee7629e67530fa7a36.tar.gz emacs-6d75555c5cc3d2a629646cee7629e67530fa7a36.zip | |
merge from trunk
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/data.c b/src/data.c index 25a9e698481..95cbd471d33 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -1018,19 +1018,14 @@ store_symval_forwarding (union Lisp_Fwd *valcontents, register Lisp_Object newva | |||
| 1018 | - (char *) &buffer_defaults); | 1018 | - (char *) &buffer_defaults); |
| 1019 | int idx = PER_BUFFER_IDX (offset); | 1019 | int idx = PER_BUFFER_IDX (offset); |
| 1020 | 1020 | ||
| 1021 | Lisp_Object tail; | 1021 | Lisp_Object tail, buf; |
| 1022 | 1022 | ||
| 1023 | if (idx <= 0) | 1023 | if (idx <= 0) |
| 1024 | break; | 1024 | break; |
| 1025 | 1025 | ||
| 1026 | for (tail = Vbuffer_alist; CONSP (tail); tail = XCDR (tail)) | 1026 | FOR_EACH_LIVE_BUFFER (tail, buf) |
| 1027 | { | 1027 | { |
| 1028 | Lisp_Object lbuf; | 1028 | struct buffer *b = XBUFFER (buf); |
| 1029 | struct buffer *b; | ||
| 1030 | |||
| 1031 | lbuf = Fcdr (XCAR (tail)); | ||
| 1032 | if (!BUFFERP (lbuf)) continue; | ||
| 1033 | b = XBUFFER (lbuf); | ||
| 1034 | 1029 | ||
| 1035 | if (! PER_BUFFER_VALUE_P (b, idx)) | 1030 | if (! PER_BUFFER_VALUE_P (b, idx)) |
| 1036 | set_per_buffer_value (b, offset, newval); | 1031 | set_per_buffer_value (b, offset, newval); |
| @@ -1421,9 +1416,7 @@ for this variable. The default value is meaningful for variables with | |||
| 1421 | local bindings in certain buffers. */) | 1416 | local bindings in certain buffers. */) |
| 1422 | (Lisp_Object symbol) | 1417 | (Lisp_Object symbol) |
| 1423 | { | 1418 | { |
| 1424 | register Lisp_Object value; | 1419 | Lisp_Object value = default_value (symbol); |
| 1425 | |||
| 1426 | value = default_value (symbol); | ||
| 1427 | if (!EQ (value, Qunbound)) | 1420 | if (!EQ (value, Qunbound)) |
| 1428 | return value; | 1421 | return value; |
| 1429 | 1422 | ||
| @@ -2019,7 +2012,7 @@ If the current binding is global (the default), the value is nil. */) | |||
| 2019 | { | 2012 | { |
| 2020 | union Lisp_Fwd *valcontents = SYMBOL_FWD (sym); | 2013 | union Lisp_Fwd *valcontents = SYMBOL_FWD (sym); |
| 2021 | if (KBOARD_OBJFWDP (valcontents)) | 2014 | if (KBOARD_OBJFWDP (valcontents)) |
| 2022 | return Fframe_terminal (Fselected_frame ()); | 2015 | return Fframe_terminal (selected_frame); |
| 2023 | else if (!BUFFER_OBJFWDP (valcontents)) | 2016 | else if (!BUFFER_OBJFWDP (valcontents)) |
| 2024 | return Qnil; | 2017 | return Qnil; |
| 2025 | } | 2018 | } |