all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: emacs-devel@gnu.org
Subject: Re: Some obsolete/unused/garbage things around window code?
Date: Tue, 10 Jan 2012 13:14:54 +0100	[thread overview]
Message-ID: <4F0C2BBE.7000202@gmx.at> (raw)
In-Reply-To: <4F0C1A5D.7000205@yandex.ru>

 > For frames, C pointer value of 'struct frame' is used, i.e.:
 > ...
 > sprintf (buf, " %p", XFRAME (obj));

Which is awkward and usually complemented by the buffer shown in the
frame's selected window which hardly improves anything.

 > Why it should be done in a different way for windows?

Comparing two sequence numbers, you can always tell which window is
older.  And you usually can identify all windows coming from one and the
same session.  So you can use number when saving window states to disk.

Finally, using sequence numbers we can replay a sequence of window
creation/deletion functions in different sessions and compare the
outcome.  This will be useful when we finally get around writing a
testsuite for the window handling code.

That said, I think that sequence numbers for frames would be useful too.

martin



      reply	other threads:[~2012-01-10 12:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-10  6:29 Some obsolete/unused/garbage things around window code? Dmitry Antipov
2012-01-10  8:40 ` Eli Zaretskii
2012-01-10 10:20 ` martin rudalics
2012-01-10 11:00   ` Dmitry Antipov
2012-01-10 12:14     ` martin rudalics [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F0C2BBE.7000202@gmx.at \
    --to=rudalics@gmx.at \
    --cc=dmantipov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.