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
5a41ab94
Commit
5a41ab94
authored
Jul 26, 1993
by
Richard M. Stallman
Browse files
(Fset_window_buffer): Clear window_end_{pos,valid}.
parent
4c7f5b00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/window.c
src/window.c
+8
-2
No files found.
src/window.c
View file @
5a41ab94
...
...
@@ -480,9 +480,13 @@ DEFUN ("window-end", Fwindow_end, Swindow_end, 0, 1, 0,
{
Lisp_Object
value
;
struct
window
*
w
=
decode_window
(
window
);
Lisp_Object
buf
;
buf
=
w
->
buffer
;
CHECK_BUFFER
(
buf
,
0
);
XSET
(
value
,
Lisp_Int
,
BUF_Z
(
current_buffer
)
-
XFASTINT
(
w
->
window_end_pos
));
BUF_Z
(
XBUFFER
(
buf
)
)
-
XFASTINT
(
w
->
window_end_pos
));
return
value
;
}
...
...
@@ -1575,6 +1579,8 @@ BUFFER can be a buffer or buffer name.")
}
w
->
buffer
=
buffer
;
w
->
window_end_pos
=
0
;
w
->
window_end_valid
=
Qnil
;
w
->
hscroll
=
0
;
Fset_marker
(
w
->
pointm
,
make_number
(
BUF_PT
(
XBUFFER
(
buffer
))),
...
...
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