unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Customize ‘window-state-get/put’
@ 2019-10-07 16:19 Yuan Fu
  2019-10-07 22:01 ` Juri Linkov
  2019-10-08  8:45 ` martin rudalics
  0 siblings, 2 replies; 15+ messages in thread
From: Yuan Fu @ 2019-10-07 16:19 UTC (permalink / raw)
  To: Emacs developers

I’m adding the ability to store and restore window configuration for
gdb-mi. To make it work for gdb-mi I need to change what
‘window-state-get’ save - now it saves buffers and I need to not save
buffers. That’s because the buffer names for each window will change
across gdb sessions debugging different programs. Instead of buffer
name I need to store a symbol representing the ”buffer type” of the
window. E.g., register, memory, breakpoint, etc.

So instead of

    (buffer "*scratch*"
              (selected . t)
              (hscroll . 0)
              (fringes 8 8 nil)
              (margins nil)
              (scroll-bars nil 0 t nil 0 t)
              (vscroll . 0)
              (dedicated)
              (point . #<marker at 193 in *scratch*>)
              (start . #<marker at 1 in *scratch*>))

I would store something like

    (buffer 'register)

I would just add an optional argument that handles the extraction of
buffer information and another to restore a buffer from that
information. Does it sound like a good idea?




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

end of thread, other threads:[~2019-10-15 18:14 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-07 16:19 Customize ‘window-state-get/put’ Yuan Fu
2019-10-07 22:01 ` Juri Linkov
2019-10-08  0:13   ` Yuan Fu
2019-10-09 22:31     ` Juri Linkov
2019-10-10  0:35       ` Yuan Fu
2019-10-10 21:54         ` Juri Linkov
2019-10-11  1:38           ` Yuan Fu
2019-10-11  8:18             ` martin rudalics
2019-10-12 16:25               ` Yuan Fu
2019-10-13  8:17                 ` martin rudalics
2019-10-12 20:58             ` Juri Linkov
2019-10-14  3:39               ` Yuan Fu
2019-10-15 18:14                 ` Juri Linkov
2019-10-08  8:05   ` Eli Zaretskii
2019-10-08  8:45 ` martin rudalics

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).