unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: joakim@verona.se
To: rms@gnu.org
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Neat features in Eclipse editor
Date: Mon, 24 Mar 2008 20:02:25 +0100	[thread overview]
Message-ID: <m3zlsoj67y.fsf@verona.se> (raw)
In-Reply-To: <E1Jdawx-0006Uj-06@fencepost.gnu.org> (Richard Stallman's message of "Sun, 23 Mar 2008 20:54:07 -0400")

Richard Stallman <rms@gnu.org> writes:

>     Eclipse, and nearly all other IDE:s also have the feature that the main
>     frame is sub-divided in minor frames that dont affect each other.
>
> Could you explain more concretely what these "minor frames" look like,
> and what "don't affect each other" means?

I will try.

Imagine several Emacs frames that are laid out next to each other, for
instance like this:

+---+-------------+
| 1 | 2           |
|   |             |
|   |             |
+---+-------------+
| 3               |
+-----------------+


Frame 1 contains the emacs Speedbar, which gives a tree view of code,
which is displayed in frame 2.
frame 3 shows compilation output.

This is similar to what ECB does, and also a common Eclipse perspective.

>     That is, I have an editor sub-frame, and a compilation message sub-frame
>     etc. If I remove an editor tab in the editor sub-frame, this doesnt
>     affect the other parts of the master frame.
>
> When I try to relate this to what I saw, it seems that what you call
> "sub-frames" looked like windows to me.  Why do you call them
> "sub-frames" instead of "windows"?  The term "sub-frames" implies a
> big change.
>
> To give each window in its own list of tabs would be a fairly small
> change in Emacs (assuming that we have tabs at all).
>
> Is more than that needed?

Sub-frames are not like windows, they are like frames, because they
contain windows and are not affected by what happens in other frames.

Tabs are usually complementary to the feature I try describe.

>
>     - Create a new Emacs window object called a sub-frame. This sits between
>     frames and windows. It nominaly provides a list of windows like a frame
>     does and is normaly the same list of windows the frame has. A frame can
>     have several sub-frames, but at the start only one. When no sub-frame
>     features are used, emacs behaves exactly as it does today.
>
> This seems like a plausible implementation of a sub-frame feature.  Do
> we really need this feature, or would it be enough to give each window
> its own list of tabs?
>
>     When I
>     do delete-other-windows, only other windows in the sub-frame goes away.
>
> If most of the windows are dedicated, delete-other-windows would not
> touch them.  Is that sufficient for the job?

Maybe. I can't recall an Emacs application that uses dedicated windows
right now, so I'm not sure how they function in practice.

> If not, here's a simple way to take care of that.
>
> Emacs windows within a frame form a tree.  We could add a way to mark
> a certain non-leaf window as a "sub-frame", such that when the
> selected window is a subwindow of that, certain operations including
> delete-other-windows would be limited to the inside of that sub-frame.
>
> This could be a rather simple change to implement sub-frames, if we
> need the power of sub-frames.
>
> Is this enough to implement perspectives?

Sounds plausible. I didnt know Emacs windows existed in a tree structure.

>
> Adding a new data type with new operations is certainly possible,
> but it is expensive in several ways, so we should do that only
> if a simpler adequate solution can't be found.

I agree of course.

-- 
Joakim Verona




  reply	other threads:[~2008-03-24 19:02 UTC|newest]

Thread overview: 141+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-22 21:45 Neat features in Eclipse editor Richard Stallman
2008-03-22 21:56 ` Chong Yidong
2008-03-22 21:36   ` Tom Tromey
2008-03-22 23:09   ` Leo
2008-03-23 14:18     ` William Xu
2008-03-23  2:27   ` Juri Linkov
2008-03-23  9:53     ` joakim
2008-03-23 10:50       ` martin rudalics
2008-03-23 10:54       ` martin rudalics
2008-03-23 19:35         ` John S. Yates, Jr.
2008-03-23 19:39           ` Thomas Lord
2008-03-23 21:06             ` John S. Yates, Jr.
2008-03-23 21:42               ` Thomas Lord
2008-03-23 19:49           ` Drew Adams
2008-03-25  8:11           ` dtm
2008-03-24  0:53       ` Stefan Monnier
2008-03-24  0:54       ` Richard Stallman
2008-03-24 19:02         ` joakim [this message]
2008-03-25  1:06           ` Bastien
2008-03-25 18:31             ` Richard Stallman
2008-03-25 19:19               ` Rajappa Iyer
2008-03-26  1:33                 ` Stefan Monnier
2008-03-26  4:46                 ` Richard Stallman
2008-03-25  1:50           ` Richard Stallman
2008-04-18 13:25             ` joakim
2008-04-19  2:23               ` Richard Stallman
2008-03-24  0:53   ` Richard Stallman
2008-03-24 18:47     ` paul r
2008-03-25  1:50       ` Richard Stallman
2008-03-25  3:53         ` Window configuration UI (was: Neat features in Eclipse editor) Stefan Monnier
2008-03-25 10:54           ` Window configuration UI Lennart Borgman (gmail)
2008-03-25 18:13             ` Stefan Monnier
2008-03-26  4:47           ` Window configuration UI (was: Neat features in Eclipse editor) Richard Stallman
2008-03-26  9:41             ` Window configuration UI Lennart Borgman (gmail)
2008-03-26 22:26               ` Richard Stallman
2008-03-27  2:14                 ` Stefan Monnier
2008-03-27 19:41                   ` Richard Stallman
2008-03-29 16:27                   ` Michael Sperber
2008-03-31  2:41           ` Window configuration UI (was: Neat features in Eclipse editor) Nick Roberts
2008-03-31 16:25             ` Richard Stallman
2008-04-01  3:00               ` Window configuration UI Stefan Monnier
2008-04-01 21:04                 ` Richard Stallman
2008-03-25 10:08         ` Neat features in Eclipse editor paul r
2008-03-25 10:55           ` David Reitter
2008-03-25 11:35             ` paul r
2008-03-25 21:00               ` Richard Stallman
2008-03-25 22:10                 ` paul r
2008-03-26  1:50                   ` Robert J. Chassell
2008-03-26 22:26                   ` Richard Stallman
2008-03-25 21:01           ` Richard Stallman
2008-03-25 21:16             ` Lennart Borgman (gmail)
2008-03-25 23:17               ` Mike Mattie
2008-03-26  2:23               ` Evans Winner
2008-03-26  7:09               ` Jan Djärv
2008-03-26  7:18                 ` Drew Adams
2008-03-26 22:25               ` Richard Stallman
2008-03-26 22:38                 ` Sebastian Rose
2008-03-26 22:57                   ` paul r
2008-03-26 23:20                     ` Sebastian Rose
2008-03-27  6:57                       ` David Kastrup
2008-03-27  0:22                     ` Mike Mattie
2008-03-27  0:17                   ` Mike Mattie
2008-03-27 19:41                   ` Richard Stallman
2008-03-27 20:18                     ` Sebastian Rose
2008-03-27  0:18                 ` Lennart Borgman (gmail)
2008-03-25  0:48   ` Bastien
2008-03-24  1:51 ` Dan Nicolaescu
2008-03-24 12:29   ` Richard Stallman
2008-03-24 18:24     ` joakim
2008-03-25  1:50       ` Richard Stallman
2008-04-06 20:52 ` Tab bar (was: Neat features in Eclipse editor) Juri Linkov
2008-04-06 23:07   ` Tab bar David Koppelman
2008-04-06 23:48     ` Juri Linkov
2008-04-07  0:05       ` David Koppelman
2008-04-07  0:32         ` Juri Linkov
2008-04-07 14:59           ` Richard Stallman
2008-04-07 23:27             ` Juri Linkov
2008-04-08 15:35               ` Richard Stallman
2008-04-08 15:50                 ` Jason Rumney
2008-04-08 16:58                   ` Drew Adams
2008-04-09 10:33                   ` Richard Stallman
2008-04-09 23:27                     ` Juri Linkov
2008-04-07 14:59       ` Richard Stallman
2008-04-07 15:33         ` Lennart Borgman (gmail)
2008-04-07 23:31           ` Juri Linkov
2008-04-08  0:21             ` Drew Adams
2008-04-08  2:06             ` Stefan Monnier
2008-04-08 22:11               ` Juri Linkov
2008-04-09  2:00                 ` Stefan Monnier
2008-04-09  8:45                   ` Juri Linkov
2008-04-09  9:34                     ` Paul R
2008-04-09 14:12                       ` Stefan Monnier
2008-04-08 13:58           ` Andrew W. Nosenko
2008-04-08 14:21             ` Lennart Borgman (gmail)
2008-04-08 15:55               ` Paul R
2008-04-08 16:04                 ` Dan Nicolaescu
2008-04-08 16:24                   ` Paul R
2008-04-08 16:25                   ` Andrew W. Nosenko
2008-04-08 20:10                     ` Lennart Borgman (gmail)
2008-04-08 21:16                       ` David De La Harpe Golden
2008-04-08 21:47                         ` Lennart Borgman (gmail)
2008-04-09  2:50                           ` David De La Harpe Golden
2008-04-09  8:50                             ` Juri Linkov
2008-04-09  7:55                           ` Jason Rumney
2008-04-09 10:34                           ` Richard Stallman
2008-04-09 14:59                             ` Lennart Borgman (gmail)
2008-04-08 22:09                         ` Juri Linkov
2008-04-09  8:12                           ` Andreas Schwab
2008-04-09  8:52                             ` Juri Linkov
2008-04-08 16:50                 ` Ehud Karni
2008-04-07 16:09         ` Drew Adams
2008-04-07 16:52           ` Stefan Monnier
2008-04-07 23:35             ` Juri Linkov
2008-04-08 15:36             ` Richard Stallman
2008-04-09  1:56               ` Stefan Monnier
2008-04-09 10:34                 ` Richard Stallman
2008-04-07 23:28         ` Juri Linkov
2008-04-07  1:37   ` Tab bar (was: Neat features in Eclipse editor) Drew Adams
2008-04-07 14:59     ` Richard Stallman
2008-04-07 16:09       ` Drew Adams
2008-04-07 23:35         ` Mathias Dahl
2008-04-07 23:33     ` Tab bar Juri Linkov
2008-04-07 15:00   ` Tab bar (was: Neat features in Eclipse editor) Richard Stallman
2008-04-07 23:59   ` Tab bar David De La Harpe Golden
2008-04-08 22:06     ` Juri Linkov
2008-04-09  1:07       ` David De La Harpe Golden
2008-04-09  8:48         ` Juri Linkov
2008-04-09  9:24           ` David Kastrup
2008-04-09 23:28             ` Juri Linkov
2008-04-10  6:11               ` Jan Djärv
2008-04-10  7:31                 ` Jason Rumney
2008-04-10  7:44                   ` Jason Rumney
2008-04-10  8:08                   ` Jan Djärv
2008-04-10 15:31                 ` Richard Stallman
2008-04-10 23:11                   ` Juri Linkov
2008-04-12  0:10                     ` Richard Stallman
2008-04-09  9:45           ` Paul R
2008-04-09 23:29             ` Juri Linkov
2008-04-10  8:09               ` Paul R
  -- strict thread matches above, loose matches on Subject: below --
2008-03-28  1:49 Neat features in Eclipse editor Josh Gilbert
2008-03-28 23:54 ` Richard Stallman

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=m3zlsoj67y.fsf@verona.se \
    --to=joakim@verona.se \
    --cc=emacs-devel@gnu.org \
    --cc=rms@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).