all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Freezing frameset-restore
Date: Sat, 8 Mar 2014 17:34:36 +0100	[thread overview]
Message-ID: <CAAeL0SRNKKwyE=itLkQKsqfzR3VfWaKNYKVPfZGOP-VeH4of0w@mail.gmail.com> (raw)
In-Reply-To: <jwvzjl0db0g.fsf-monnier+emacs@gnu.org>

On Sat, Mar 8, 2014 at 3:27 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

> The function returns the frames that it considered and what action it
> took with it.  It will not necessarily return an entry for each
> existing frame.

What is the gain? In most cases, it already has to consider every
frame, for several reasons, chief among them that it tries to match
the frameset id. The only cases that is not so is if you explicitly
pass a LIST to REUSE-FRAMES, or :none.

>> any case, I suspect that I strongly disagree. For example, you could
>> pass REUSE-FRAMES = :none, which wouldn't "consider" any existing
>> frame at all, and yet want to delete all previously-existing frames.
>
> I don't see why that would be problem.  The returned list simply
> wouldn't mention any of the existing frames, so if you want to delete
> those you'll have to call `frame-list'.

And check against the returned list (you don't want to delete the just
restored frames). Messier than have the full list in the first place.

frameset-restore is not a high-performance function to be called many
times per second, it's a user-level function, it operates in human
time. It already has to call frame-list, build and filter out frame
parameter lists, etc.

> Look at it not as "move stuff from frameset-restore to its caller" but
> as "split frameset-restore into two functions".

That's what I've done with frameset-restore-cleanup. I think the
current interface (in my last patch) is good and clear enough.

    J



  reply	other threads:[~2014-03-08 16:34 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-06  0:03 Freezing frameset-restore Juanma Barranquero
2014-03-06 17:27 ` martin rudalics
2014-03-06 17:33   ` Juanma Barranquero
2014-03-06 18:16     ` martin rudalics
2014-03-06 18:35       ` Juanma Barranquero
2014-03-06 18:41       ` Juanma Barranquero
2014-03-07  7:38         ` martin rudalics
2014-03-07 11:28           ` Juanma Barranquero
2014-03-07 15:16             ` martin rudalics
2014-03-07 20:32 ` Stefan Monnier
2014-03-07 21:34   ` Juanma Barranquero
2014-03-07 21:40     ` Juanma Barranquero
2014-03-08  0:34     ` Stefan Monnier
2014-03-08  1:42       ` Juanma Barranquero
2014-03-08  2:25         ` Juanma Barranquero
2014-03-08  4:31         ` Stefan Monnier
2014-03-08  6:00           ` Juanma Barranquero
2014-03-08 14:27             ` Stefan Monnier
2014-03-08 16:34               ` Juanma Barranquero [this message]
2014-03-08 23:45                 ` Juanma Barranquero
2014-03-10  4:29                   ` Stefan Monnier
2014-03-10  5:26                     ` Juanma Barranquero
2014-03-10 13:04                       ` Juanma Barranquero
2014-03-10 14:19                       ` Stefan Monnier
2014-03-10 15:06                         ` Juanma Barranquero
2014-03-10 18:33                           ` Juanma Barranquero
2014-03-10 23:10                             ` Stefan Monnier
2014-03-11  0:47                               ` Juanma Barranquero
2014-03-10 20:32                           ` Stefan Monnier
2014-03-10 21:07                             ` Juanma Barranquero
2014-03-09 12:29                 ` Stefan Monnier

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='CAAeL0SRNKKwyE=itLkQKsqfzR3VfWaKNYKVPfZGOP-VeH4of0w@mail.gmail.com' \
    --to=lekktu@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 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.