From: Tino Calancha <tino.calancha@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Standard check before creating large num of frames
Date: Fri, 16 Sep 2016 00:33:06 +0900 (JST) [thread overview]
Message-ID: <alpine.DEB.2.20.1609160012340.32050@calancha-pc> (raw)
In-Reply-To: <jwvd1k5ml0h.fsf-monnier+gmane.emacs.devel@gnu.org>
On Thu, 15 Sep 2016, Stefan Monnier wrote:
>> several functions might create new frames. In particular when
>> `pop-up-frames' is non-nil, `display-buffer' creates a new frame.
>> Creating a lot of new frames might be expensive.
>
>> Some functions may ask for user confirmation before creating an many
>> frames. For instance, see `ibuffer-do-view-1': this function ask for
>> confirmation before creating > 3 frames. IMO, it's good if each
>> function creating a large number of frames do a similar check. We might
>> add a new option, for instance 'max-number-of-frames' or
>> 'frame-max-number':
>
> I get the impression that setting pop-up-frames will inevitably lead to
> many more frames than 3. IOW setting pop-up-frames non-nil is already
> a way to say that you're OK with having many frames.
That was an example: that's why i said 'in particular'.
Anyway, i might say i want icecream: maybe i eat 2, 3 or even more. I ate
one summer one icecream cone with 6 balls (the shop offered cones with
even 20 balls). Said that, I will not eat one cone with 100 icecream balls;
i would prefer to be asked for confirmation before pay it.
`ibuffer-do-view-1' is another example: introduces a hardcoded `3'.
Why `3'? Isn't it better allow users to define what is in their opinion
a large number of frames?
It's good having an standard check. Otherwise we could have one
Emacs library FOO asking you if nframes > N1 is Ok, and another Emacs
library BAR asking the same when nframes > N2.
I saw more use cases in 3rd party code where this could be useful.
It might be more cases in Emacs source.
next prev parent reply other threads:[~2016-09-15 15:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-15 6:26 Standard check before creating large num of frames Tino Calancha
2016-09-15 12:00 ` Stefan Monnier
2016-09-15 15:33 ` Tino Calancha [this message]
2016-09-15 14:58 ` 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=alpine.DEB.2.20.1609160012340.32050@calancha-pc \
--to=tino.calancha@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).