1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-04 22:50:59 -08:00
emacs/test/src
Stefan Monnier 3ddff08034 Fix bug#30846, along with misc cleanups found along the way
* test/src/data-tests.el (data-tests-kill-all-local-variables): New test.

* src/buffer.c (swap_out_buffer_local_variables): Remove.
Fuse the body of its loop into that of reset_buffer_local_variables.
(Fkill_buffer, Fkill_all_local_variables): Don't call it any more.
(reset_buffer_local_variables): Make sure the buffer's local binding
is swapped out before removing it from the alist (bug#30846).
Call watchers before actually killing the var.

* src/data.c (Fmake_local_variable): Simplify.
Use swap_in_global_binding to swap out any local binding, instead of
a mix of find_symbol_value followed by messing with where&found.
Don't call swap_in_symval_forwarding since the currently swapped
binding is never one we've modified.
(Fkill_local_variable): Use swap_in_global_binding rather than messing
with where&found to try and trick find_symbol_value into doing the same.

* src/alloc.c (mark_localized_symbol): 'where' can't be a frame any more.
2018-03-23 11:29:06 -04:00
..
regex-resources
alloc-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
buffer-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
callint-tests.el Add unit test for Bug#30005. 2018-01-23 23:41:15 +01:00
callproc-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
casefiddle-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
charset-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
chartab-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
cmds-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
coding-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
data-tests.el Fix bug#30846, along with misc cleanups found along the way 2018-03-23 11:29:06 -04:00
decompress-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
doc-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
editfns-tests.el Add tests for Bug#30408 2018-03-21 12:11:52 -07:00
emacs-module-tests.el Port emacs-module-tests to 32-bit Emacs 2018-03-22 09:33:33 -07:00
eval-tests.el Avoid memory corruption with specpdl overflow + edebug (Bug#30481) 2018-02-16 22:13:34 -05:00
fileio-tests.el Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
floatfns-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
fns-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
font-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
inotify-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
json-tests.el Quieten --without-json compilation of json-tests.el 2018-03-09 16:38:02 -05:00
keyboard-tests.el Update copyright year to 2018 2018-01-01 01:25:56 -08:00
keymap-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
lcms-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
lread-tests.el Revert "Signal error for symbol names with strange quotes (Bug#2967)" 2018-01-28 10:49:51 -05:00
marker-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
minibuf-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
print-tests.el Fix round tripping of read->print for symbols with strange quotes 2018-01-28 10:43:01 -05:00
process-tests.el Inherit query-on-exit flag to stderr process (Bug#30031) 2018-01-10 15:43:52 +01:00
regex-tests.el Raise limit of regexp repetition (Bug#24914) 2018-01-26 20:49:44 -05:00
syntax-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
textprop-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
thread-tests.el Add some test skip conditions 2018-01-17 13:41:07 -05:00
undo-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xml-tests.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00