aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorGlenn Morris2017-05-09 19:44:09 -0400
committerGlenn Morris2017-05-09 19:44:09 -0400
commitdb30296baed2d9c3c80eb89f6fae256e81ee2fbc (patch)
tree6f680bfa4af603e2a5d7a4ec92d267d07e56ac7f /test/data
parentd6d5020c2593a1e8ac2fe7ef4f217cfbcacfd32d (diff)
downloademacs-db30296baed2d9c3c80eb89f6fae256e81ee2fbc.tar.gz
emacs-db30296baed2d9c3c80eb89f6fae256e81ee2fbc.zip
Put re-loaded file back at start of load-history (bug#26837)
* src/lread.c (readevalloop): Fix the "whole buffer" check to operate in the correct buffer. (Feval_buffer): Move point back to the start after checking for lexical binding. * test/src/lread-tests.el (lread-test-bug26837): New test. * test/data/somelib.el, test/data/somelib2.el: New test data files.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/somelib.el7
-rw-r--r--test/data/somelib2.el7
2 files changed, 14 insertions, 0 deletions
diff --git a/test/data/somelib.el b/test/data/somelib.el
new file mode 100644
index 00000000000..7b8d4037396
--- /dev/null
+++ b/test/data/somelib.el
@@ -0,0 +1,7 @@
1;;; -*- lexical-binding: t; -*-
2
3;; blah
4
5(defun somefunc () t)
6
7(provide 'somelib)
diff --git a/test/data/somelib2.el b/test/data/somelib2.el
new file mode 100644
index 00000000000..05156145a22
--- /dev/null
+++ b/test/data/somelib2.el
@@ -0,0 +1,7 @@
1;;; -*- lexical-binding: t; -*-
2
3;; blah
4
5(defun somefunc2 () t)
6
7(provide 'somelib2)