aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2006-05-12 02:08:23 +0000
committerRichard M. Stallman2006-05-12 02:08:23 +0000
commit1ed7b9ae26ca33b554a50c5225324334389408e4 (patch)
tree8c69c66ec9eff82434f57ad85b736b6a17b517dc /src
parent942efafab25cbdb3f0209068db242fb63a3b855a (diff)
downloademacs-1ed7b9ae26ca33b554a50c5225324334389408e4.tar.gz
emacs-1ed7b9ae26ca33b554a50c5225324334389408e4.zip
(readevalloop): Abort if START non-nil for non-buffer input.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/lread.c8
2 files changed, 11 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2b9587eeeaa..14a172d0b37 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12006-05-11 Richard Stallman <rms@gnu.org>
2
3 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
4
12006-05-11 Kim F. Storm <storm@cua.dk> 52006-05-11 Kim F. Storm <storm@cua.dk>
2 6
3 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values. 7 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
diff --git a/src/lread.c b/src/lread.c
index 892c102c58f..e80b228e768 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1340,7 +1340,9 @@ end_of_file_error ()
1340/* UNIBYTE specifies how to set load_convert_to_unibyte 1340/* UNIBYTE specifies how to set load_convert_to_unibyte
1341 for this invocation. 1341 for this invocation.
1342 READFUN, if non-nil, is used instead of `read'. 1342 READFUN, if non-nil, is used instead of `read'.
1343 START, END is region in current buffer (from eval-region). */ 1343
1344 START, END specify region to read in current buffer (from eval-region).
1345 If the input is not from a buffer, they must be nil. */
1344 1346
1345static void 1347static void
1346readevalloop (readcharfun, stream, sourcename, evalfun, 1348readevalloop (readcharfun, stream, sourcename, evalfun,
@@ -1376,6 +1378,10 @@ readevalloop (readcharfun, stream, sourcename, evalfun,
1376 else if (MARKERP (readcharfun)) 1378 else if (MARKERP (readcharfun))
1377 b = XMARKER (readcharfun)->buffer; 1379 b = XMARKER (readcharfun)->buffer;
1378 1380
1381 /* We assume START is nil when input is not from a buffer. */
1382 if (! NILP (start) && !b)
1383 abort ();
1384
1379 specbind (Qstandard_input, readcharfun); /* GCPROs readcharfun. */ 1385 specbind (Qstandard_input, readcharfun); /* GCPROs readcharfun. */
1380 specbind (Qcurrent_load_list, Qnil); 1386 specbind (Qcurrent_load_list, Qnil);
1381 record_unwind_protect (readevalloop_1, load_convert_to_unibyte ? Qt : Qnil); 1387 record_unwind_protect (readevalloop_1, load_convert_to_unibyte ? Qt : Qnil);