Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1ed7b9ae
Commit
1ed7b9ae
authored
May 12, 2006
by
Richard M. Stallman
Browse files
(readevalloop): Abort if START non-nil for non-buffer input.
parent
942efafa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
src/ChangeLog
src/ChangeLog
+4
-0
src/lread.c
src/lread.c
+7
-1
No files found.
src/ChangeLog
View file @
1ed7b9ae
2006-05-11 Richard Stallman <rms@gnu.org>
* lread.c (readevalloop): Abort if START non-nil for non-buffer input.
2006-05-11 Kim F. Storm <storm@cua.dk>
* xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
...
...
src/lread.c
View file @
1ed7b9ae
...
...
@@ -1340,7 +1340,9 @@ end_of_file_error ()
/* UNIBYTE specifies how to set load_convert_to_unibyte
for this invocation.
READFUN, if non-nil, is used instead of `read'.
START, END is region in current buffer (from eval-region). */
START, END specify region to read in current buffer (from eval-region).
If the input is not from a buffer, they must be nil. */
static
void
readevalloop
(
readcharfun
,
stream
,
sourcename
,
evalfun
,
...
...
@@ -1376,6 +1378,10 @@ readevalloop (readcharfun, stream, sourcename, evalfun,
else
if
(
MARKERP
(
readcharfun
))
b
=
XMARKER
(
readcharfun
)
->
buffer
;
/* We assume START is nil when input is not from a buffer. */
if
(
!
NILP
(
start
)
&&
!
b
)
abort
();
specbind
(
Qstandard_input
,
readcharfun
);
/* GCPROs readcharfun. */
specbind
(
Qcurrent_load_list
,
Qnil
);
record_unwind_protect
(
readevalloop_1
,
load_convert_to_unibyte
?
Qt
:
Qnil
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment