diff options
| author | Glenn Morris | 2019-02-15 13:25:30 -0800 |
|---|---|---|
| committer | Glenn Morris | 2019-02-15 13:25:30 -0800 |
| commit | a29c70d29b349712928ef8f12cfb87834df359a4 (patch) | |
| tree | 9df0fac95982d162f647d117ea28c0f90b787c53 /src/data.c | |
| parent | 877eba7249d0d352ff489f1fceb8362c08814494 (diff) | |
| parent | 3f4b8e9a299f88a8ea11c0ea6a281a34852e541a (diff) | |
| download | emacs-a29c70d29b349712928ef8f12cfb87834df359a4.tar.gz emacs-a29c70d29b349712928ef8f12cfb87834df359a4.zip | |
Merge from origin/emacs-26
3f4b8e9 * src/data.c (Fmake_local_variable): Fix bug#34318
b384996 Minor fixes in ELisp manual wrt syntax-table properties
71fc6d2 * admin/notes/emba: New file.
3aaa2d2 Fix Hunspell invocation for discovering its dictionaries
# Conflicts:
# test/src/data-tests.el
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c index 92a1062280e..65f2b0f2f1b 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -1958,6 +1958,16 @@ Instead, use `add-hook' and specify t for the LOCAL argument. */) | |||
| 1958 | (current_buffer, | 1958 | (current_buffer, |
| 1959 | Fcons (Fcons (variable, XCDR (blv->defcell)), | 1959 | Fcons (Fcons (variable, XCDR (blv->defcell)), |
| 1960 | BVAR (current_buffer, local_var_alist))); | 1960 | BVAR (current_buffer, local_var_alist))); |
| 1961 | |||
| 1962 | /* If the symbol forwards into a C variable, then load the binding | ||
| 1963 | for this buffer now, to preserve the invariant that forwarded | ||
| 1964 | variables must always hold the value corresponding to the | ||
| 1965 | current buffer (they are swapped eagerly). | ||
| 1966 | Otherwise, if C code modifies the variable before we load the | ||
| 1967 | binding in, then that new value would clobber the default binding | ||
| 1968 | the next time we unload it. See bug#34318. */ | ||
| 1969 | if (blv->fwd) | ||
| 1970 | swap_in_symval_forwarding (sym, blv); | ||
| 1961 | } | 1971 | } |
| 1962 | 1972 | ||
| 1963 | return variable; | 1973 | return variable; |