From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Alternate design [Was: Re: [RFC] some reworking of struct window]
Date: Mon, 25 Mar 2013 15:02:45 -0400 [thread overview]
Message-ID: <jwvhajzl32k.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <51506D6C.5050709@yandex.ru> (Dmitry Antipov's message of "Mon, 25 Mar 2013 19:29:48 +0400")
>> For me, `payload' is associated with transport (or communication), so
>> it sounds a bit odd here. But I won't oppose it (whereas I do oppose
>> "object").
> OK, what about neutral `contained'?
That would be a boolean field (is it contained?). The closest noun
would be "contents" I think.
>>> +#define WINDOW_HORIZONTAL_COMBINATION(W) \
>>> + ((W)->combination && (W)->horizontal)
>> I think this should be (eassert (WINDOWP ((W)->payload)), (W)->horizontal)
> This will require a lot of explicit checking whether W->payload is a window,
> for example in Fwindow_top_child and Fwindow_left_child.
I disagree with "a lot of" and I think making those checks explicit is good.
> I believe that we should treat dead windows as 'typeless' (that is,
> all of WINDOW_LEAF_P and WINDOW_xxx_COMBINATION_P should return false
> for them)
I'm not sure it's a good idea.
> and add explicit eassert where leaf or dead window can cause
> serious problems.
But here I do agree.
Stefan
next prev parent reply other threads:[~2013-03-25 19:02 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-21 9:39 [RFC] some reworking of struct window Dmitry Antipov
2013-03-21 11:38 ` martin rudalics
2013-03-21 18:45 ` Eli Zaretskii
2013-03-21 21:17 ` martin rudalics
2013-03-21 14:26 ` Davis Herring
2013-03-21 14:46 ` Stefan Monnier
2013-03-21 15:01 ` Dmitry Antipov
2013-03-21 17:40 ` Eli Zaretskii
2013-03-21 18:21 ` Eli Zaretskii
2013-03-21 23:50 ` Stefan Monnier
2013-03-22 7:40 ` Alternate design [Was: Re: [RFC] some reworking of struct window] Dmitry Antipov
2013-03-22 13:34 ` Stefan Monnier
2013-03-25 15:29 ` Dmitry Antipov
2013-03-25 19:02 ` Stefan Monnier [this message]
2013-03-22 6:13 ` [RFC] some reworking of struct window Dmitry Antipov
2013-03-22 8:47 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvhajzl32k.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=dmantipov@yandex.ru \
--cc=eliz@gnu.org \
--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 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).