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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
daf516d3
Commit
daf516d3
authored
Jan 18, 2002
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(enlarge_window): When exceeding size of parent,
directly delete all the siblings instead of trying to resize it.
parent
33c18c83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
16 deletions
+35
-16
src/ChangeLog
src/ChangeLog
+5
-0
src/window.c
src/window.c
+30
-16
No files found.
src/ChangeLog
View file @
daf516d3
2002-01-17 Richard M. Stallman <rms@gnu.org>
* window.c (enlarge_window): When exceeding size of parent,
directly delete all the siblings instead of trying to resize it.
2002-01-17 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
* term.c (set_tty_color_mode): Remove unused variable `tem'.
...
...
src/window.c
View file @
daf516d3
...
...
@@ -3543,11 +3543,24 @@ enlarge_window (window, delta, widthflag, preserve_before)
register int delta1;
register int opht = (*sizefun) (parent);
/* If trying to grow this window to or beyond size of the parent,
make delta1 so big that, on shrinking back down,
all the siblings end up with less than one line and are deleted. */
if (opht <= XINT (*sizep) + delta)
delta1 = opht * opht * 2;
{
/* If trying to grow this window to or beyond size of the parent,
just delete all the sibling windows. */
Lisp_Object tem, next;
tem = XWINDOW (parent)->vchild;
if (NILP (tem))
tem = XWINDOW (parent)->hchild;
while (! NILP (tem))
{
next = XWINDOW (tem)->next;
if (!EQ (tem, window))
delete_window (tem);
tem = next;
}
}
else
{
/* Otherwise, make delta1 just right so that if we add
...
...
@@ -3590,19 +3603,20 @@ enlarge_window (window, delta, widthflag, preserve_before)
++n;
delta1 = n * delta;
}
/* Add delta1 lines or columns to this window, and to the parent,
keeping things consistent while not affecting siblings. */
XSETINT (CURSIZE (parent), opht + delta1);
(*setsizefun) (window, XINT (*sizep) + delta1, 0);
/* Squeeze out delta1 lines or columns from our parent,
shriking this window and siblings proportionately.
This brings parent back to correct size.
Delta1 was calculated so this makes this window the desired size,
taking it all out of the siblings. */
(*setsizefun) (parent, opht, 0);
/* Add delta1 lines or columns to this window, and to the parent,
keeping things consistent while not affecting siblings. */
XSETINT (CURSIZE (parent), opht + delta1);
(*setsizefun) (window, XINT (*sizep) + delta1, 0);
/* Squeeze out delta1 lines or columns from our parent,
shriking this window and siblings proportionately.
This brings parent back to correct size.
Delta1 was calculated so this makes this window the desired size,
taking it all out of the siblings. */
(*setsizefun) (parent, opht, 0);
}
}
XSETFASTINT (p->last_modified, 0);
...
...
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