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
721b7d9e
Commit
721b7d9e
authored
Dec 28, 2005
by
Richard M. Stallman
Browse files
(readevalloop): Set PT and ZV in the proper buffer, not the current one.
parent
18e980c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/lread.c
src/lread.c
+10
-0
No files found.
src/lread.c
View file @
721b7d9e
...
@@ -1344,10 +1344,20 @@ readevalloop (readcharfun, stream, sourcename, evalfun,
...
@@ -1344,10 +1344,20 @@ readevalloop (readcharfun, stream, sourcename, evalfun,
if
(
b
!=
0
&&
NILP
(
b
->
name
))
if
(
b
!=
0
&&
NILP
(
b
->
name
))
error
(
"Reading from killed buffer"
);
error
(
"Reading from killed buffer"
);
if
(
!
NILP
(
start
))
if
(
!
NILP
(
start
))
{
{
/* Switch to the buffer we are reading from. */
record_unwind_protect
(
save_excursion_restore
,
save_excursion_save
());
set_buffer_internal
(
b
);
/* Save point in it. */
record_unwind_protect
(
save_excursion_restore
,
save_excursion_save
());
record_unwind_protect
(
save_excursion_restore
,
save_excursion_save
());
/* Save ZV in it. */
record_unwind_protect
(
save_restriction_restore
,
save_restriction_save
());
record_unwind_protect
(
save_restriction_restore
,
save_restriction_save
());
/* Those get unbound after we read one expression. */
/* Set point and ZV around stuff to be read. */
Fgoto_char
(
start
);
Fgoto_char
(
start
);
Fnarrow_to_region
(
make_number
(
BEGV
),
end
);
Fnarrow_to_region
(
make_number
(
BEGV
),
end
);
}
}
...
...
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