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
be7cd44f
Commit
be7cd44f
authored
Dec 26, 1994
by
Richard M. Stallman
Browse files
(scroll_region_cost): New variable.
(calculate_costs): Put scroll region overhead in scroll_region_cost.
parent
6d7b2718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/term.c
src/term.c
+4
-0
No files found.
src/term.c
View file @
be7cd44f
...
...
@@ -54,6 +54,8 @@ int line_ins_del_ok; /* Terminal can insert and delete lines */
int
char_ins_del_ok
;
/* Terminal can insert and delete chars */
int
scroll_region_ok
;
/* Terminal supports setting the
scroll window */
int
scroll_region_cost
;
/* Cost of setting a scroll window,
measured in characters */
int
memory_below_frame
;
/* Terminal remembers lines
scrolled off bottom */
int
fast_clear_end_of_line
;
/* Terminal has a `ce' string */
...
...
@@ -1090,12 +1092,14 @@ calculate_costs (frame)
FRAME_COST_BAUD_RATE
(
frame
)
=
baud_rate
;
scroll_region_cost
=
string_cost
(
f
);
#ifdef HAVE_X_WINDOWS
if
(
FRAME_X_P
(
frame
))
{
do_line_insertion_deletion_costs
(
frame
,
0
,
".5*"
,
0
,
".5*"
,
0
,
0
,
x_screen_planes
(
frame
));
scroll_region_cost
=
0
;
return
;
}
#endif
...
...
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