🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189430

Guarding windows/buffers sizes

#189430
From: Martin Boyer
Date: Tue, 19 Feb 1991 00:46
47 lines
2440 bytes
Is it possible to:

1. prevent a window/buffer association from being broken

2. prevent a window size from being changed

3. prevent a window/buffer from being deleted (undisplayed)

when a new buffer is displayed?

What I may be looking for is to take out a window from the cyclic
ordering (or force it *not* to be the least recently used).  I believe
that the buffer list is not relevant to this problem; the way I
understand it, the buffer list is orthogonal with the window ordering
and only the window ordering decides which window is going to be
associated with a new buffer.

So far, the only hack I thought of is to add a find-file-hook that
would select, in turn, all the windows I want to keep visible just
before reading a file.  This wouldn't work when a buffer is simply
popped (made visible).

To put things in perspective, I'm thinking of writing a mouse
interface to the existing gdb mode.  I know that an xgdb exists, but
apparently it is not very compatible with the latest X11 and a newer
version is not promised for *at least* 6 months.  My idea is to build
something similar to dbxtool (that's what the people here want) on top
of the emacs-gdb interface.  To do this, I need to keep three windows
from disappearing: the command window, the display window, and the
"buttons" window.

UniPress emacs (starting with version 2.15, I believe) had something
called "freeze-window" that would make it immune to changes in other
windows.  This is the sort of thing I'm looking for.

I haven't found anything in the elisp manual.  Any guru out there to
give me a hint, a place to start?  I'm willing to write elisp and C if
necessary.

Thanks,

-- 
Martin Boyer                            mboyer@ireq-robot.hydro.qc.ca
Institut de recherche d'Hydro-Quebec    mboyer@ireq-robot.uucp
Varennes, QC, Canada   J3X 1S1
+1 514 652-8412
Technical Details
Message-ID: <5572@s3.ireq.hydro.qc.ca>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bonnie.concordia.ca!s3!gamin

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,b25a8498f94abeff,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-02-18 22:52:55 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bonnie.concordia.ca!s3!gamin
From: gamin@ireq-robot.hydro.qc.ca (Martin Boyer)
Newsgroups: gnu.emacs.help
Subject: Guarding windows/buffers sizes
Message-ID: <5572@s3.ireq.hydro.qc.ca>
Date: 19 Feb 91 00:46:17 GMT
Sender: root@s3.ireq.hydro.qc.ca
Organization: Laboratoire de robotique, Institut de recherche d'Hydro-Quebec
Lines: 47