[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customize ‘window-state-get/put’

From: Yuan Fu
Subject: Re: Customize ‘window-state-get/put’
Date: Mon, 07 Oct 2019 20:13:37 -0400

Juri Linkov <address@hidden> writes:

> Is this needed because of such dynamically generated buffer names?
>   (defun gdb-memory-buffer-name ()
>     (concat "*memory of " (gdb-get-target-string) "*"))


> Not too long ago we discussed an idea of defining a “window layout” -
> a data structure similar to the returned by ‘window-state-get’, but
> where instead of buffer names there are buffer regexps, so when
> ‘display-buffer’ needs to display a buffer, it consults a predefined
> layout, finds the right window in its window tree, and displays the
> buffer in the window whose buffer regexp matches the displayed
> buffer name.  A new function like ‘window-state-get’ could generate
> a layout from the current window configuration, or even from the
> window state.  Then such layout could be exported to anywhere:
> saved in the init file, in packages, etc.

Did you reach any conclusions? What was the title of that thread? I
couldn’t find it on emacs-devel archive with keywords like ”window
layout” or ”window-state-get”.

> BTW, while you are working on gdb-mi, you could also try to replace
> the ad-hoc tabs implemented in the header-line, with real tabs in
> the tab-line for “Locals”, “Registers”, “Breakpoints”, “Threads”, etc.
> Just display these buffers in their dedicated window, and the tab-line
> will show them as tabs.

I’ll add that to my list.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]