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
345d45b2
Commit
345d45b2
authored
Dec 10, 1996
by
Richard M. Stallman
Browse files
(window_scroll): Don't set w->start or w->force_start if signaling an error.
parent
38b294ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/window.c
src/window.c
+8
-7
No files found.
src/window.c
View file @
345d45b2
...
...
@@ -2652,10 +2652,7 @@ window_scroll (window, n, noerror)
register
Lisp_Object
tem
;
int
lose
;
Lisp_Object
bolp
,
nmoved
;
/* Always set force_start so that redisplay_window will run
the window-scroll-functions. */
w
->
force_start
=
Qt
;
int
startpos
;
XSETFASTINT
(
tem
,
PT
);
tem
=
Fpos_visible_in_window_p
(
tem
,
window
);
...
...
@@ -2663,11 +2660,12 @@ window_scroll (window, n, noerror)
if
(
NILP
(
tem
))
{
Fvertical_motion
(
make_number
(
-
(
ht
/
2
)),
window
);
XSETFASTINT
(
tem
,
PT
);
Fset_marker
(
w
->
start
,
tem
,
w
->
buffer
);
startpos
=
PT
;
}
else
startpos
=
marker_position
(
w
->
start
);
SET_PT
(
marker_position
(
w
->
start
)
);
SET_PT
(
start
pos
);
lose
=
n
<
0
&&
PT
==
BEGV
;
Fvertical_motion
(
make_number
(
n
),
window
);
pos
=
PT
;
...
...
@@ -2700,6 +2698,9 @@ window_scroll (window, n, noerror)
w
->
update_mode_line
=
Qt
;
XSETFASTINT
(
w
->
last_modified
,
0
);
XSETFASTINT
(
w
->
last_overlay_modified
,
0
);
/* Set force_start so that redisplay_window will run
the window-scroll-functions. */
w
->
force_start
=
Qt
;
/* If we scrolled forward, put point enough lines down
that it is outside the scroll margin. */
...
...
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