unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* A new name for the state of a set of frames?
@ 2013-07-30 15:25 Juanma Barranquero
  2013-07-30 15:46 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 36+ messages in thread
From: Juanma Barranquero @ 2013-07-30 15:25 UTC (permalink / raw)
  To: Emacs developers

Bikeshedding season open.

So, I'm extracting the frame handling code from desktop.el and moving
it to a new file, to clean up the interface and facilitate reusing.

I had settled in naming the structure (and thus the file) frame-state
(a state of a set of frames, like frame-configuration is the
configuration of a set of frames), but it has been suggested to me
that it is a really bad name.

What the name will describe (preferably in a short, MS-DOS
short-names-compatible way) is a set of frames and windows that can be
saved & restored, and the data structure used to serialize it. So the
UI aspect of the name is important.

Ideas?

perspective (from Eclipse, apparently)
frame-view
frame-group
view
panorama
landscape
scene
perspective
snapshot

Anything better, please?

   J



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

* Re: A new name for the state of a set of frames?
  2013-07-30 15:25 A new name for the state of a set of frames? Juanma Barranquero
@ 2013-07-30 15:46 ` Stefan Monnier
  2013-07-30 15:49   ` Juanma Barranquero
  2013-07-31  7:44 ` Bastien
  2013-07-31  8:33 ` martin rudalics
  2 siblings, 1 reply; 36+ messages in thread
From: Stefan Monnier @ 2013-07-30 15:46 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: Emacs developers

> I had settled in naming the structure (and thus the file) frame-state
> (a state of a set of frames, like frame-configuration is the
> configuration of a set of frames), but it has been suggested to me
> that it is a really bad name.

I must agree that I do not like window-state and frame-state, just like
I don't like window-configuration and frame-configuration:
to my ear, a "window state" or a "window configuration" sounds like
the state/config of a single window, rather than that of all the windows
in a frame.

IOW I'd find "frame-state" to be more fitting for what we now call
window-state/configuration.

Conclusion: these names are confusing.

I'm not sure what would be a good name for those things, but a better
name than what we have would be to simply use the plural form:
windows-state & frames-state.


        Stefan



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

* Re: A new name for the state of a set of frames?
  2013-07-30 15:46 ` Stefan Monnier
@ 2013-07-30 15:49   ` Juanma Barranquero
  0 siblings, 0 replies; 36+ messages in thread
From: Juanma Barranquero @ 2013-07-30 15:49 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Emacs developers

On Tue, Jul 30, 2013 at 5:46 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:

> Conclusion: these names are confusing.

Yep.

> but a better
> name than what we have would be to simply use the plural form:
> windows-state & frames-state.

Yes, frames-state will do as a last resort, but I'm hoping someone
will propose a shorter and more euphonic alternative.

   J



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

* Re: A new name for the state of a set of frames?
  2013-07-30 15:25 A new name for the state of a set of frames? Juanma Barranquero
  2013-07-30 15:46 ` Stefan Monnier
@ 2013-07-31  7:44 ` Bastien
  2013-07-31  9:41   ` Juanma Barranquero
  2013-07-31  8:33 ` martin rudalics
  2 siblings, 1 reply; 36+ messages in thread
From: Bastien @ 2013-07-31  7:44 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: Emacs developers

Juanma Barranquero <lekktu@gmail.com> writes:

> view

FWIW, I like "view".  It is not taken and it matches what it describes
very well (if I understood your proposal correctly.)

-- 
 Bastien



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

* Re: A new name for the state of a set of frames?
  2013-07-30 15:25 A new name for the state of a set of frames? Juanma Barranquero
  2013-07-30 15:46 ` Stefan Monnier
  2013-07-31  7:44 ` Bastien
@ 2013-07-31  8:33 ` martin rudalics
  2013-07-31  9:44   ` Juanma Barranquero
  2 siblings, 1 reply; 36+ messages in thread
From: martin rudalics @ 2013-07-31  8:33 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: Emacs developers

 > What the name will describe (preferably in a short, MS-DOS
 > short-names-compatible way) is a set of frames and windows that can be
 > saved & restored, and the data structure used to serialize it.

I'd use "sframes" where "s" would stand for "serializable" or
"serialized".

martin



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

* Re: A new name for the state of a set of frames?
  2013-07-31  7:44 ` Bastien
@ 2013-07-31  9:41   ` Juanma Barranquero
  0 siblings, 0 replies; 36+ messages in thread
From: Juanma Barranquero @ 2013-07-31  9:41 UTC (permalink / raw)
  To: Bastien; +Cc: Emacs developers

> FWIW, I like "view".

I rather like it, too. I wonder whether it is a bit too generic.

> matches what it describes
> very well (if I understood your proposal correctly.)

A way to save the existing frames, serialize them, and restore them in
the same session or a later one. Like a persistent variant of a
frame-configuration, but with the emphasis in allowing it to be
successfully restored also in non-matching setups (different displays
and monitor sizes, etc.).

   J



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

* Re: A new name for the state of a set of frames?
  2013-07-31  8:33 ` martin rudalics
@ 2013-07-31  9:44   ` Juanma Barranquero
  2013-07-31 11:31     ` Thien-Thi Nguyen
  0 siblings, 1 reply; 36+ messages in thread
From: Juanma Barranquero @ 2013-07-31  9:44 UTC (permalink / raw)
  To: martin rudalics; +Cc: Emacs developers

On Wed, Jul 31, 2013 at 10:33 AM, martin rudalics <rudalics@gmx.at> wrote:

> I'd use "sframes" where "s" would stand for "serializable" or
> "serialized".

I think "sframe" does not pass the euphony test, and has the problem
that "sframe" suggests a single frame, and "sframes" is an odd plural
name for a single object. We'd have to go with sframe-list or
sframe-group or sframes-state, and then we're back were we started.

    J



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

* Re: A new name for the state of a set of frames?
  2013-07-31  9:44   ` Juanma Barranquero
@ 2013-07-31 11:31     ` Thien-Thi Nguyen
  2013-07-31 11:43       ` Juanma Barranquero
  0 siblings, 1 reply; 36+ messages in thread
From: Thien-Thi Nguyen @ 2013-07-31 11:31 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: martin rudalics, Emacs developers

[-- Attachment #1: Type: text/plain, Size: 899 bytes --]

() Juanma Barranquero <lekktu@gmail.com>
() Wed, 31 Jul 2013 11:44:03 +0200

   [...] and then we're back were we started.

layout
gist
redo
redo-foo, foo ∈ {list, structure, stuff, foo}
essence
snap
snapshot
WISB      (What It Shall Be)
circle
cycle
minima
maxima
constellation
construction
blueprint
sketch
formula
incantation
spell
prayer    (for inevitable Future Emacs Incompatabilities :-D)
note
nit
stash
squash
cool-squash  (flattened and frozen)
platter
plate
plot
splot
splotch
inkling
arrangement
derangement  :-D
drop
drawdown
description  (ugh)
foo-description-{form,...}
flat-form
frozen-flux
fortunate-frills

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: A new name for the state of a set of frames?
  2013-07-31 11:31     ` Thien-Thi Nguyen
@ 2013-07-31 11:43       ` Juanma Barranquero
  2013-07-31 12:52         ` Bastien
  0 siblings, 1 reply; 36+ messages in thread
From: Juanma Barranquero @ 2013-07-31 11:43 UTC (permalink / raw)
  To: Thien-Thi Nguyen; +Cc: martin rudalics, Emacs developers

On Wed, Jul 31, 2013 at 1:31 PM, Thien-Thi Nguyen <ttn@gnu.org> wrote:

> layout
[...]
> fortunate-frills

That was... hum... useful, for some values of "useful", I think :-)

Though I quite like layout.

   J



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

* Re: A new name for the state of a set of frames?
  2013-07-31 11:43       ` Juanma Barranquero
@ 2013-07-31 12:52         ` Bastien
  2013-08-01 12:02           ` Juanma Barranquero
  0 siblings, 1 reply; 36+ messages in thread
From: Bastien @ 2013-07-31 12:52 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: Thien-Thi Nguyen, Emacs developers, martin rudalics

Juanma Barranquero <lekktu@gmail.com> writes:

> Though I quite like layout.

+1, that would have been my second proposal if "view" is too generic.

-- 
 Bastien



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

* Re: A new name for the state of a set of frames?
  2013-07-31 12:52         ` Bastien
@ 2013-08-01 12:02           ` Juanma Barranquero
  2013-08-01 14:17             ` Stefan Monnier
  0 siblings, 1 reply; 36+ messages in thread
From: Juanma Barranquero @ 2013-08-01 12:02 UTC (permalink / raw)
  To: Bastien; +Cc: Thien-Thi Nguyen, Emacs developers, martin rudalics

If nobody objects to layout in the next few hours, I'll go forward with it.

So the file will be lisp/layout.el, and the data structure will be
called "a layout", with operations layout-p, make-layout, copy-layout,
layout-save, layout-restore, etc.
     J



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

* Re: A new name for the state of a set of frames?
  2013-08-01 12:02           ` Juanma Barranquero
@ 2013-08-01 14:17             ` Stefan Monnier
  2013-08-01 14:20               ` Juanma Barranquero
                                 ` (2 more replies)
  0 siblings, 3 replies; 36+ messages in thread
From: Stefan Monnier @ 2013-08-01 14:17 UTC (permalink / raw)
  To: Juanma Barranquero
  Cc: Bastien, Thien-Thi Nguyen, martin rudalics, Emacs developers

> If nobody objects to layout in the next few hours, I'll go forward with it.
> So the file will be lisp/layout.el, and the data structure will be
> called "a layout", with operations layout-p, make-layout, copy-layout,
> layout-save, layout-restore, etc.

So a "layout" will be a "frames-state"?  I'm fine with that.
Now, what about a better name for "windows-state"?


        Stefan



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

* Re: A new name for the state of a set of frames?
  2013-08-01 14:17             ` Stefan Monnier
@ 2013-08-01 14:20               ` Juanma Barranquero
  2013-08-01 14:42               ` Bastien
  2013-08-01 20:56               ` Alp Aker
  2 siblings, 0 replies; 36+ messages in thread
From: Juanma Barranquero @ 2013-08-01 14:20 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Bastien, Thien-Thi Nguyen, martin rudalics, Emacs developers

> So a "layout" will be a "frames-state"?  I'm fine with that.

Yes, "layout" is the kind of object that will encapsulate all the
frames' state, and that has window states as subcomponents (among
other things).

> Now, what about a better name for "windows-state"?

window-state-(get|put) functions exist since 24.1, so changing that
name will cause some confusion, I think. Anyway, that's Martin's
ballpark...

   J



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

* Re: A new name for the state of a set of frames?
  2013-08-01 14:17             ` Stefan Monnier
  2013-08-01 14:20               ` Juanma Barranquero
@ 2013-08-01 14:42               ` Bastien
  2013-08-01 14:44                 ` Juanma Barranquero
                                   ` (2 more replies)
  2013-08-01 20:56               ` Alp Aker
  2 siblings, 3 replies; 36+ messages in thread
From: Bastien @ 2013-08-01 14:42 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Juanma Barranquero, Emacs developers, martin rudalics,
	Thien-Thi Nguyen

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> So a "layout" will be a "frames-state"?  I'm fine with that.
> Now, what about a better name for "windows-state"?

Maybe "view" could be used for the "frames state" and "layout" for the
"windows state"?  "Layout" sounds like it describes something in a 2D
plan (which fits windows states well), with no notion of depth, while
"view" is more 3D-friendly (a bit like "perspective").

-- 
 Bastien



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

* Re: A new name for the state of a set of frames?
  2013-08-01 14:42               ` Bastien
@ 2013-08-01 14:44                 ` Juanma Barranquero
  2013-08-01 17:23                   ` Stefan Monnier
  2013-08-01 17:21                 ` Stefan Monnier
  2013-08-01 17:22                 ` Stefan Monnier
  2 siblings, 1 reply; 36+ messages in thread
From: Juanma Barranquero @ 2013-08-01 14:44 UTC (permalink / raw)
  To: Bastien; +Cc: Thien-Thi Nguyen, Emacs developers, Stefan Monnier,
	martin rudalics

On Thu, Aug 1, 2013 at 4:42 PM, Bastien <bzg@gnu.org> wrote:

> Maybe "view" could be used for the "frames state" and "layout" for the
> "windows state"?  "Layout" sounds like it describes something in a 2D
> plan (which fits windows states well), with no notion of depth, while
> "view" is more 3D-friendly (a bit like "perspective").

I'm OK with that. But someone (<ahem> Stefan <ahem>) please take an
executive decision soon :-)

   J



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

* Re: A new name for the state of a set of frames?
  2013-08-01 14:42               ` Bastien
  2013-08-01 14:44                 ` Juanma Barranquero
@ 2013-08-01 17:21                 ` Stefan Monnier
  2013-08-01 17:31                   ` Bastien
  2013-08-01 17:22                 ` Stefan Monnier
  2 siblings, 1 reply; 36+ messages in thread
From: Stefan Monnier @ 2013-08-01 17:21 UTC (permalink / raw)
  To: Bastien
  Cc: Juanma Barranquero, Emacs developers, martin rudalics,
	Thien-Thi Nguyen

> "view" is more 3D-friendly (a bit like "perspective").

But IIUC Eclipse's "perspective"s are "windows-state"s, no?


        Stefan



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

* Re: A new name for the state of a set of frames?
  2013-08-01 14:42               ` Bastien
  2013-08-01 14:44                 ` Juanma Barranquero
  2013-08-01 17:21                 ` Stefan Monnier
@ 2013-08-01 17:22                 ` Stefan Monnier
  2013-08-01 17:37                   ` chad
  2013-08-02  1:53                   ` Xue Fuqiao
  2 siblings, 2 replies; 36+ messages in thread
From: Stefan Monnier @ 2013-08-01 17:22 UTC (permalink / raw)
  To: Bastien
  Cc: Juanma Barranquero, Emacs developers, martin rudalics,
	Thien-Thi Nguyen

>> So a "layout" will be a "frames-state"?  I'm fine with that.
>> Now, what about a better name for "windows-state"?
> Maybe "view" could be used for the "frames state" and "layout" for the
> "windows state"?  "Layout" sounds like it describes something in a 2D

I'd rather have a naming where it's blatantly clear which is which,
whereas between "view" and "layout" I couldn't tell you offhand which
sounds more like what.
And "view" means too many other things for me (model/view/controller,
view patterns, view-mode, ...).


        Stefan



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

* Re: A new name for the state of a set of frames?
  2013-08-01 14:44                 ` Juanma Barranquero
@ 2013-08-01 17:23                   ` Stefan Monnier
  2013-08-01 17:33                     ` Bastien
  0 siblings, 1 reply; 36+ messages in thread
From: Stefan Monnier @ 2013-08-01 17:23 UTC (permalink / raw)
  To: Juanma Barranquero
  Cc: Bastien, Thien-Thi Nguyen, Emacs developers, martin rudalics

>> Maybe "view" could be used for the "frames state" and "layout" for the
>> "windows state"?  "Layout" sounds like it describes something in a 2D
>> plan (which fits windows states well), with no notion of depth, while
>> "view" is more 3D-friendly (a bit like "perspective").
> I'm OK with that. But someone (<ahem> Stefan <ahem>) please take an
> executive decision soon :-)

Layout sounds good for frames-state.


        Stefan



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

* Re: A new name for the state of a set of frames?
  2013-08-01 17:21                 ` Stefan Monnier
@ 2013-08-01 17:31                   ` Bastien
  2013-08-01 18:32                     ` Jan Djärv
  0 siblings, 1 reply; 36+ messages in thread
From: Bastien @ 2013-08-01 17:31 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Juanma Barranquero, Thien-Thi Nguyen, martin rudalics,
	Emacs developers

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> "view" is more 3D-friendly (a bit like "perspective").
>
> But IIUC Eclipse's "perspective"s are "windows-state"s, no?

Yes.

  Each Workbench window contains one or more perspectives.
  Perspectives contain views and editors and control what appears in
  certain menus and tool bars.  More than one Workbench window can
  exist on the desktop at any given time.

That's from:
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Fconcepts-4.htm

Also see:
http://www.eclipse.org/articles/using-perspectives/PerspectiveArticle.html

(I just searched the web, I never used Eclipse.)

-- 
 Bastien



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

* Re: A new name for the state of a set of frames?
  2013-08-01 17:23                   ` Stefan Monnier
@ 2013-08-01 17:33                     ` Bastien
  2013-08-01 19:51                       ` Stefan Monnier
  0 siblings, 1 reply; 36+ messages in thread
From: Bastien @ 2013-08-01 17:33 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Juanma Barranquero, Emacs developers, martin rudalics,
	Thien-Thi Nguyen

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Layout sounds good for frames-state.

Yep.  And I also agree "view" is ambiguous.

What about "panel" for windows-state?

-- 
 Bastien



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

* Re: A new name for the state of a set of frames?
  2013-08-01 17:22                 ` Stefan Monnier
@ 2013-08-01 17:37                   ` chad
  2013-08-01 17:46                     ` Juanma Barranquero
  2013-08-02  1:53                   ` Xue Fuqiao
  1 sibling, 1 reply; 36+ messages in thread
From: chad @ 2013-08-01 17:37 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Bastien, Juanma Barranquero, Thien-Thi Nguyen, martin rudalics,
	Emacs developers

Is a single-word name really valuable? How about frame-layout and window-layout?

~Chad




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

* Re: A new name for the state of a set of frames?
  2013-08-01 17:37                   ` chad
@ 2013-08-01 17:46                     ` Juanma Barranquero
  2013-08-01 19:52                       ` Stefan Monnier
  2013-08-01 20:32                       ` Juri Linkov
  0 siblings, 2 replies; 36+ messages in thread
From: Juanma Barranquero @ 2013-08-01 17:46 UTC (permalink / raw)
  To: chad
  Cc: Bastien, martin rudalics, Thien-Thi Nguyen, Stefan Monnier,
	Emacs developers

On Thu, Aug 1, 2013 at 7:37 PM, chad <yandros@gmail.com> wrote:

> Is a single-word name really valuable? How about frame-layout and window-layout?

I wouldn't mind, but then again, "frame-layout" seems the layout of a
single frame; same for window-layout. We're back to frame-state,
window-state.

   J



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

* Re: A new name for the state of a set of frames?
  2013-08-01 17:31                   ` Bastien
@ 2013-08-01 18:32                     ` Jan Djärv
  0 siblings, 0 replies; 36+ messages in thread
From: Jan Djärv @ 2013-08-01 18:32 UTC (permalink / raw)
  To: Bastien
  Cc: Juanma Barranquero, martin rudalics, Emacs developers,
	Stefan Monnier, Thien-Thi Nguyen

Hi. 

1 aug 2013 kl. 19:31 skrev Bastien <bzg@gnu.org>:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
> 
>>> "view" is more 3D-friendly (a bit like "perspective").
>> 
>> But IIUC Eclipse's "perspective"s are "windows-state"s, no?
> 
> Yes.
> 
>  Each Workbench window contains one or more perspectives.
>  Perspectives contain views and editors and control what appears in
>  certain menus and tool bars.  More than one Workbench window can
>  exist on the desktop at any given time.
> 

To be clear:
Workbench window corresponds to Emacs frame. 
Eclipse view corresponds to Emacs window (sort of).

> That's from:
> http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Fconcepts-4.htm
> 
> Also see:
> http://www.eclipse.org/articles/using-perspectives/PerspectiveArticle.html
> 
> (I just searched the web, I never used Eclipse.)

I have and do, with Emacs key bindings of course :-)

    Jan D.


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

* Re: A new name for the state of a set of frames?
  2013-08-01 17:33                     ` Bastien
@ 2013-08-01 19:51                       ` Stefan Monnier
  0 siblings, 0 replies; 36+ messages in thread
From: Stefan Monnier @ 2013-08-01 19:51 UTC (permalink / raw)
  To: Bastien
  Cc: Juanma Barranquero, Emacs developers, martin rudalics,
	Thien-Thi Nguyen

>> Layout sounds good for frames-state.
> Yep.  And I also agree "view" is ambiguous.
> What about "panel" for windows-state?

Hmm... I see where you're coming from, but I don't like it very much
(outside of its use in the context of GUIs, the word "panel" doesn't
seem to evoke anything close to a windows-state for me).

There's worse and I could live with it, but I'm not sold on the idea.


        Stefan



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

* Re: A new name for the state of a set of frames?
  2013-08-01 17:46                     ` Juanma Barranquero
@ 2013-08-01 19:52                       ` Stefan Monnier
  2013-08-01 20:32                       ` Juri Linkov
  1 sibling, 0 replies; 36+ messages in thread
From: Stefan Monnier @ 2013-08-01 19:52 UTC (permalink / raw)
  To: Juanma Barranquero
  Cc: Bastien, martin rudalics, chad, Thien-Thi Nguyen,
	Emacs developers

>> Is a single-word name really valuable? How about frame-layout and
>> window-layout?
> I wouldn't mind, but then again, "frame-layout" seems the layout of a
> single frame; same for window-layout. We're back to frame-state,
> window-state.

Then how 'bout frames-layout and windows-layout?


        Stefan



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

* Re: A new name for the state of a set of frames?
  2013-08-01 17:46                     ` Juanma Barranquero
  2013-08-01 19:52                       ` Stefan Monnier
@ 2013-08-01 20:32                       ` Juri Linkov
  2013-08-01 21:12                         ` Stefan Monnier
  2013-08-01 21:35                         ` Juanma Barranquero
  1 sibling, 2 replies; 36+ messages in thread
From: Juri Linkov @ 2013-08-01 20:32 UTC (permalink / raw)
  To: Juanma Barranquero
  Cc: Emacs developers, Bastien, martin rudalics, Stefan Monnier,
	Thien-Thi Nguyen, chad

>> Is a single-word name really valuable? How about
>> frame-layout and window-layout?
>
> I wouldn't mind, but then again, "frame-layout" seems the layout of a
> single frame; same for window-layout. We're back to frame-state,
> window-state.

But the current "frame-configuration" doesn't mean the layout of
a single frame.  IIUC, "frame" here is an adjective.  The same is
for "window-configuration".  Then "frame-layout" and "window-layout"
would be fine too.  Actually you can see this terminology already in
(info "(gnus) Window Layout") and ecb-layout-defs.el
(that also allow percentage for window/frame sizes that
would be useful when restoring in non-matching setups
with different monitor sizes.)

OTOH, I missed what is wrong with the existing names
"frame-configuration" and "window-configuration"?
Do we need a new terminology because "window-configuration"
has too wide scope, so a new term like "layout"
would be more specific about positioning windows/frames?
I mean does the following describes the state of affairs:
window-configuration = window-layout + non-layout parameters



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

* Re: A new name for the state of a set of frames?
  2013-08-01 14:17             ` Stefan Monnier
  2013-08-01 14:20               ` Juanma Barranquero
  2013-08-01 14:42               ` Bastien
@ 2013-08-01 20:56               ` Alp Aker
  2 siblings, 0 replies; 36+ messages in thread
From: Alp Aker @ 2013-08-01 20:56 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Bastien, Juanma Barranquero, Emacs developers, martin rudalics,
	Thien-Thi Nguyen

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

> Now, what about a better name for "windows-state"?

"Tiling"?

It connotes two things that are true of arrangements of windows (on a
frame) but not of arrangements of frames:  elements of a tiling can't
overlap and they fit together without gaps.

[-- Attachment #2: Type: text/html, Size: 351 bytes --]

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

* Re: A new name for the state of a set of frames?
  2013-08-01 20:32                       ` Juri Linkov
@ 2013-08-01 21:12                         ` Stefan Monnier
  2013-08-01 21:55                           ` Juri Linkov
  2013-08-01 21:35                         ` Juanma Barranquero
  1 sibling, 1 reply; 36+ messages in thread
From: Stefan Monnier @ 2013-08-01 21:12 UTC (permalink / raw)
  To: Juri Linkov
  Cc: Juanma Barranquero, Emacs developers, Bastien, martin rudalics,
	Thien-Thi Nguyen, chad

>>> Is a single-word name really valuable? How about
>>> frame-layout and window-layout?
>> I wouldn't mind, but then again, "frame-layout" seems the layout of a
>> single frame; same for window-layout. We're back to frame-state,
>> window-state.
> But the current "frame-configuration" doesn't mean the layout of
> a single frame.

Indeed, but as mentioned earlier in this thread, I find these names
confusing, since the natural meaning of frame-configuration, to me, is
"the configuration of a frame", i.e. what we currently call
a window-configuration or window-state.

> IIUC, "frame" here is an adjective.

I know Emacs terminology is sometimes a bit interesting, but...
"frame" be used as an adjective, really?

I'm pretty sure we can do better.


        Stefan



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

* Re: A new name for the state of a set of frames?
  2013-08-01 20:32                       ` Juri Linkov
  2013-08-01 21:12                         ` Stefan Monnier
@ 2013-08-01 21:35                         ` Juanma Barranquero
  1 sibling, 0 replies; 36+ messages in thread
From: Juanma Barranquero @ 2013-08-01 21:35 UTC (permalink / raw)
  To: Juri Linkov
  Cc: Emacs developers, Bastien, martin rudalics, Stefan Monnier,
	Thien-Thi Nguyen, chad

On Thu, Aug 1, 2013 at 10:32 PM, Juri Linkov <juri@jurta.org> wrote:

> But the current "frame-configuration" doesn't mean the layout of
> a single frame. IIUC, "frame" here is an adjective.

That was my argument when I chose frame-state, but it was shoot down,
and for good reasons.

> OTOH, I missed what is wrong with the existing names
> "frame-configuration" and "window-configuration"?

There's nothing wrong, it's just that a frame-configuration and a
frames-layout (?) are not the same thing. They cannot be used
interchangeably.

    J



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

* Re: A new name for the state of a set of frames?
  2013-08-01 21:12                         ` Stefan Monnier
@ 2013-08-01 21:55                           ` Juri Linkov
  2013-08-01 22:08                             ` Juri Linkov
  0 siblings, 1 reply; 36+ messages in thread
From: Juri Linkov @ 2013-08-01 21:55 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Juanma Barranquero, Emacs developers, Bastien, martin rudalics,
	Thien-Thi Nguyen, chad

> I'm pretty sure we can do better.

Then maybe take terminology from HTML?  In HTML, a frameset is
a group of named frames.  The attributes "rows" and "cols" on
<frameset> define the dimensions of frames, specified in either pixels
or percentages.  <frame> defines a single frame within the frameset.

Relevant links:
http://en.wikipedia.org/wiki/Framing_%28World_Wide_Web%29
http://en.wikipedia.org/wiki/HTML_element#Frames
http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML%29#Frame_elements



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

* Re: A new name for the state of a set of frames?
  2013-08-01 21:55                           ` Juri Linkov
@ 2013-08-01 22:08                             ` Juri Linkov
  2013-08-01 22:30                               ` Juanma Barranquero
  0 siblings, 1 reply; 36+ messages in thread
From: Juri Linkov @ 2013-08-01 22:08 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Juanma Barranquero, Emacs developers, Bastien, martin rudalics,
	Thien-Thi Nguyen, chad

>> I'm pretty sure we can do better.
>
> Then maybe take terminology from HTML?  In HTML, a frameset is
> a group of named frames.  The attributes "rows" and "cols" on
> <frameset> define the dimensions of frames, specified in either pixels
> or percentages.  <frame> defines a single frame within the frameset.

I forgot that this was already discussed at
http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00458.html



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

* Re: A new name for the state of a set of frames?
  2013-08-01 22:08                             ` Juri Linkov
@ 2013-08-01 22:30                               ` Juanma Barranquero
  2013-08-01 23:27                                 ` Stefan Monnier
  0 siblings, 1 reply; 36+ messages in thread
From: Juanma Barranquero @ 2013-08-01 22:30 UTC (permalink / raw)
  To: Juri Linkov
  Cc: Emacs developers, Bastien, martin rudalics, Stefan Monnier,
	Thien-Thi Nguyen, chad

On Fri, Aug 2, 2013 at 12:08 AM, Juri Linkov <juri@jurta.org> wrote:

> I forgot that this was already discussed at
> http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00458.html

Still, it's the name I like best until now.  "Saving a frameset" has a
nice ring to it.



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

* Re: A new name for the state of a set of frames?
  2013-08-01 22:30                               ` Juanma Barranquero
@ 2013-08-01 23:27                                 ` Stefan Monnier
  2013-08-01 23:39                                   ` Juanma Barranquero
  2013-08-02  4:45                                   ` Juanma Barranquero
  0 siblings, 2 replies; 36+ messages in thread
From: Stefan Monnier @ 2013-08-01 23:27 UTC (permalink / raw)
  To: Juanma Barranquero
  Cc: Bastien, Emacs developers, Juri Linkov, martin rudalics,
	Thien-Thi Nguyen, chad

> Still, it's the name I like best until now.  "Saving a frameset" has a
> nice ring to it.

frameset/windowset sounds OK.  It has the downside of insisting on the
"set of frames", disregarding the fact that it doesn't actually contain
frames whereas it does contain frame descriptions.
E.g. contrast with the `fileset's we have elsewhere.


        Stefan



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

* Re: A new name for the state of a set of frames?
  2013-08-01 23:27                                 ` Stefan Monnier
@ 2013-08-01 23:39                                   ` Juanma Barranquero
  2013-08-02  4:45                                   ` Juanma Barranquero
  1 sibling, 0 replies; 36+ messages in thread
From: Juanma Barranquero @ 2013-08-01 23:39 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Bastien, Emacs developers, Juri Linkov, martin rudalics,
	Thien-Thi Nguyen, chad

> frameset/windowset sounds OK.

OK, I'll go forward with frameset and will put my index fingers into
my ears and sing loudly to fend off any other suggestions until this
is finally committed.

> It has the downside of insisting on the
> "set of frames", disregarding the fact that it doesn't actually contain
> frames whereas it does contain frame descriptions.

...and windowsets.

All in all, I think a frameset does contain frames all right, it's
just that they're feeling a bit disembodied.

> E.g. contrast with the `fileset's we have elsewhere.

I wouldn't say that a fileset "contains" files.

    J



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

* Re: A new name for the state of a set of frames?
  2013-08-01 17:22                 ` Stefan Monnier
  2013-08-01 17:37                   ` chad
@ 2013-08-02  1:53                   ` Xue Fuqiao
  1 sibling, 0 replies; 36+ messages in thread
From: Xue Fuqiao @ 2013-08-02  1:53 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Bastien, Juanma Barranquero, Thien-Thi Nguyen, martin rudalics,
	Emacs developers

On Fri, Aug 2, 2013 at 1:22 AM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> I'd rather have a naming where it's blatantly clear which is which,
> whereas between "view" and "layout" I couldn't tell you offhand which
> sounds more like what.
> And "view" means too many other things for me (model/view/controller,
> view patterns, view-mode, ...).

A great +1.  There are too many obscure (IMO) terms in Emacs, and I
really don't want to see another one.

-- 
Best regards, Xue Fuqiao.
http://www.gnu.org/software/emacs/



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

* Re: A new name for the state of a set of frames?
  2013-08-01 23:27                                 ` Stefan Monnier
  2013-08-01 23:39                                   ` Juanma Barranquero
@ 2013-08-02  4:45                                   ` Juanma Barranquero
  1 sibling, 0 replies; 36+ messages in thread
From: Juanma Barranquero @ 2013-08-02  4:45 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Bastien, Emacs developers, Juri Linkov, martin rudalics,
	Thien-Thi Nguyen, chad

On Fri, Aug 2, 2013 at 1:27 AM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

> frameset/windowset sounds OK.

Committed.

Still needs:
 - lots of testing, mostly on non-Windows systems.
 - a good look at frameset.el, with an eye in making the API as
general as possible
 - code to restore the selected frame
 - support for a few more predicates when restoring (to select reused
frames, etc.)
 - adding frameset-to-register and support for jump-to-register ?
 - documentation



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

end of thread, other threads:[~2013-08-02  4:45 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-30 15:25 A new name for the state of a set of frames? Juanma Barranquero
2013-07-30 15:46 ` Stefan Monnier
2013-07-30 15:49   ` Juanma Barranquero
2013-07-31  7:44 ` Bastien
2013-07-31  9:41   ` Juanma Barranquero
2013-07-31  8:33 ` martin rudalics
2013-07-31  9:44   ` Juanma Barranquero
2013-07-31 11:31     ` Thien-Thi Nguyen
2013-07-31 11:43       ` Juanma Barranquero
2013-07-31 12:52         ` Bastien
2013-08-01 12:02           ` Juanma Barranquero
2013-08-01 14:17             ` Stefan Monnier
2013-08-01 14:20               ` Juanma Barranquero
2013-08-01 14:42               ` Bastien
2013-08-01 14:44                 ` Juanma Barranquero
2013-08-01 17:23                   ` Stefan Monnier
2013-08-01 17:33                     ` Bastien
2013-08-01 19:51                       ` Stefan Monnier
2013-08-01 17:21                 ` Stefan Monnier
2013-08-01 17:31                   ` Bastien
2013-08-01 18:32                     ` Jan Djärv
2013-08-01 17:22                 ` Stefan Monnier
2013-08-01 17:37                   ` chad
2013-08-01 17:46                     ` Juanma Barranquero
2013-08-01 19:52                       ` Stefan Monnier
2013-08-01 20:32                       ` Juri Linkov
2013-08-01 21:12                         ` Stefan Monnier
2013-08-01 21:55                           ` Juri Linkov
2013-08-01 22:08                             ` Juri Linkov
2013-08-01 22:30                               ` Juanma Barranquero
2013-08-01 23:27                                 ` Stefan Monnier
2013-08-01 23:39                                   ` Juanma Barranquero
2013-08-02  4:45                                   ` Juanma Barranquero
2013-08-01 21:35                         ` Juanma Barranquero
2013-08-02  1:53                   ` Xue Fuqiao
2013-08-01 20:56               ` Alp Aker

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).