diff options
| author | Richard M. Stallman | 2000-01-22 02:57:37 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2000-01-22 02:57:37 +0000 |
| commit | 1aa7a2c7dc3c6fe9c6acf5f324c304af9ea9b425 (patch) | |
| tree | 81e98576818bd72c3f09b19565692a22b6e1c2be /src/data.c | |
| parent | 6c7fd5aa64aed3d684592608d48b647213894d5c (diff) | |
| download | emacs-1aa7a2c7dc3c6fe9c6acf5f324c304af9ea9b425.tar.gz emacs-1aa7a2c7dc3c6fe9c6acf5f324c304af9ea9b425.zip | |
(set_internal): Further fix in same criterion.
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/data.c b/src/data.c index 3f5fec2349b..eb29de20dbd 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -1043,14 +1043,12 @@ set_internal (symbol, newval, buf, bindflag) | |||
| 1043 | currently cached, or if it's a Lisp_Buffer_Local_Value and | 1043 | currently cached, or if it's a Lisp_Buffer_Local_Value and |
| 1044 | we're looking at the default value, the cache is invalid; we | 1044 | we're looking at the default value, the cache is invalid; we |
| 1045 | need to write it out, and find the new CURRENT-ALIST-ELEMENT. */ | 1045 | need to write it out, and find the new CURRENT-ALIST-ELEMENT. */ |
| 1046 | if ((XBUFFER_LOCAL_VALUE (valcontents)->found_for_buffer | 1046 | if (XBUFFER_LOCAL_VALUE (valcontents)->found_for_frame |
| 1047 | && (buf != XBUFFER (XBUFFER_LOCAL_VALUE (valcontents)->buffer) | 1047 | ? !EQ (selected_frame, XBUFFER_LOCAL_VALUE (valcontents)->frame) |
| 1048 | || (BUFFER_LOCAL_VALUEP (valcontents) | 1048 | : (buf != XBUFFER (XBUFFER_LOCAL_VALUE (valcontents)->buffer) |
| 1049 | && EQ (XCAR (current_alist_element), | 1049 | || (BUFFER_LOCAL_VALUEP (valcontents) |
| 1050 | current_alist_element)))) | 1050 | && EQ (XCAR (current_alist_element), |
| 1051 | || | 1051 | current_alist_element)))) |
| 1052 | (XBUFFER_LOCAL_VALUE (valcontents)->found_for_frame | ||
| 1053 | && !EQ (selected_frame, XBUFFER_LOCAL_VALUE (valcontents)->frame))) | ||
| 1054 | { | 1052 | { |
| 1055 | /* Write out the cached value for the old buffer; copy it | 1053 | /* Write out the cached value for the old buffer; copy it |
| 1056 | back to its alist element. This works if the current | 1054 | back to its alist element. This works if the current |