all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [ELPA] Brief v5.90: neighboring window merge on deletion
@ 2024-03-22 11:23 路客
  2024-03-22 13:22 ` Emanuel Berg
  2024-03-23 18:33 ` Juri Linkov
  0 siblings, 2 replies; 12+ messages in thread
From: 路客 @ 2024-03-22 11:23 UTC (permalink / raw)
  To: Emacs developers

Hi all,

In case you are interested.  I've just released the Brief editor mode
v5.90 targeting the feature `merge neighboring window on deletion'.
This functionality merges two aligned adjacent windows regardless of how
Emacs currently splits the frame.  It meaning that even if two aligned
neighboring windows in the same frame belong to different parent
(internal) windows, they can almost always be merged by reconstructing
the window tree properly.

This is probably not a big deal but for me this task had been postponed
for over 20 years due to not finding time to implement them until
recently.  It took me sometime early this year to figure out an
efficient algorithm.  It reconstructs window subtree reorganizing
vertical/horizontal spliter lines to achieve the desired window layout.
However, due to the restriction on how Emacs split windows there are
still layouts that can't be displayed by Emacs.  A typical such window
layout is:
 ______
|____| |
| |__|_|
|_|____|

Any such structure within any sub-window of a frame cannot be displayed,
as far as I know (let me know if any of you know a simple way to do so).
But for regular daily use we don't really need this kind of window
layout so it won't be supported unless a simple approach is found.

Notice that the atomic window is not yet properly handled and is
on-going, if you find any other window attribute not taken care of
properly, please be sure to let me know.

Thanks!

-- 
Best regards,
Luke Lee



^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [ELPA] Brief v5.90: neighboring window merge on deletion
@ 2024-03-24  3:25 路客
  0 siblings, 0 replies; 12+ messages in thread
From: 路客 @ 2024-03-24  3:25 UTC (permalink / raw)
  To: Emacs developers

Emanuel Berg wrote:

> Sounds interesting, good work! URL to source? This?
> https://elpa.gnu.org/packages/brief.html

Thanks!  And yes, that's one place you can get the source.  If you like to
browse it, here is a pretty cool GNU git interface: lines #1246 ~ #1285:

http://git.savannah.gnu.org/cgit/emacs/elpa.git/tree/brief.el?h=externals/brief&id=30c5bf48784a7de2e18069a1065fa14a6ff843fe#n1246

and mainly lines #2715 ~ #3378:

http://git.savannah.gnu.org/cgit/emacs/elpa.git/tree/brief.el?h=externals/brief&id=30c5bf48784a7de2e18069a1065fa14a6ff843fe#n2715

-- 
Best regards,
Luke Lee



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-03-27  7:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-22 11:23 [ELPA] Brief v5.90: neighboring window merge on deletion 路客
2024-03-22 13:22 ` Emanuel Berg
2024-03-23 18:33 ` Juri Linkov
2024-03-24  5:13   ` 路客
2024-03-24  9:54     ` martin rudalics
2024-03-24 15:51       ` 路客
2024-03-25  9:40         ` martin rudalics
2024-03-26  2:31           ` 路客
2024-03-26  9:57             ` martin rudalics
2024-03-26 12:51               ` Eli Zaretskii
2024-03-27  7:35                 ` martin rudalics
  -- strict thread matches above, loose matches on Subject: below --
2024-03-24  3:25 路客

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.