From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: just-the-text Emacs frame Date: Fri, 03 Jun 2011 15:56:20 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87pqmud47f.fsf@lifelogs.com> References: <87aaebbndz.fsf@lifelogs.com> <4DDDA5A7.6040109@siege-engine.com> <87boyp5vyi.fsf@lifelogs.com> <87mxi8xq6y.fsf@lifelogs.com> <874o4ebtq0.fsf_-_@lifelogs.com> <87vcwpsa6y.fsf@lifelogs.com> <871uzccr2k.fsf@lifelogs.com> <878vtkb06y.fsf@lifelogs.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1307134624 17023 80.91.229.12 (3 Jun 2011 20:57:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Jun 2011 20:57:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 03 22:57:00 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QSbQS-0000TS-Fg for ged-emacs-devel@m.gmane.org; Fri, 03 Jun 2011 22:57:00 +0200 Original-Received: from localhost ([::1]:39816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSbQR-0000b4-Do for ged-emacs-devel@m.gmane.org; Fri, 03 Jun 2011 16:56:59 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSbQ8-0000aY-F1 for emacs-devel@gnu.org; Fri, 03 Jun 2011 16:56:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSbQ6-0004rB-HN for emacs-devel@gnu.org; Fri, 03 Jun 2011 16:56:40 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:51281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSbQ6-0004r5-33 for emacs-devel@gnu.org; Fri, 03 Jun 2011 16:56:38 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QSbQ3-0000Jw-UR for emacs-devel@gnu.org; Fri, 03 Jun 2011 22:56:35 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Jun 2011 22:56:35 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Jun 2011 22:56:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 83 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:CTHecsckRR9YQZR784WfaHv5ct8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140148 Archived-At: On Thu, 02 Jun 2011 13:19:49 -0700 Mohsen BANAN wrote: MB> Gnus provides a facility for structuring a frame MB> into multiple windows based on horizontal/vertical MB> box specifications. ... MB> (gnus-add-configuration MB> '(summary MB> (horizontal 1.0 MB> (vertical 0.6 (summary 1.0 point)) MB> (vertical 1.0 (group 1.0))))) Oh right, so it's a tree of H and V splits. MB> So, I am proposing that similarly an emacs-panel can be MB> devided into emacs-tiles. OK. MB> - Specify 7 emacs-tiles. (6 squares 1 rectangle MB> in that picture.) MB> - Specify lay out and sizes of the tiles within the MB> panel. Based on something similar to gnus-add-configuration. MB> - Specify the emacs-panel's overall size ... and MB> make it contain the 7 emacs-tiles. MB> The horizontal/vertical dividers for the tiles MB> could be as simple as lines (thin dividers -- not scroll bars). There is no need for dividers. Just set the background to a different color and give each tile a little padding or margin. MB> I have a preference for the "active" abstraction for the entire tile MB> to be optionally deligated to the panel manager as opposed to always MB> being a property of the text inside of the tile. Maybe we can write a tiling panel manager, then, which can run inside any buffer and tile any content using the configurations you showed. That would be generally useful, not just for mobile devices. MB> My motivation is to facilitate getting things started towards Emacs MB> Mobile. The maping between the container of a set of tiles into a MB> panel can be at frame or window level. May be we need a separate MB> abstraction name for the container of a set of tiles. It would be simplest to call tiles by name (symbol or string) and nest them inside frames (always using just one buffer per frame). So you'd define a tile with margin, padding, etc. properties: (emacs-panel-tile-add "myfeeds" :margin 3 :text ... :call ...) (emacs-panel-tile-add 'mychat :padding 2 :update-function ... :call ...) and then use it in a tiled 3x3 layout: (emacs-panel-popup-add "status" :tiles '(nil "myfeeds" nil 'mychat) :background "black" :layout-manager '(tile :x 3 :y 3)) Does that API seem OK? Or do you still think a H/V split tree is needed and we should support irregular grids? Remember, they are more powerful but also harder to use and configure... So maybe we should start with simple tiling and add irregular grids later. On Fri, 03 Jun 2011 08:09:39 -0700 Mohsen BANAN wrote: MB> So, I am proposing experimentation with the following MB> hierarchy: MB> - Bare-Frames (no mini-buf, no menu, ...) MB> - Related Windows MB> - Panels (Collection of Tiles) MB> - Tiles (Optionally Live and Active) Yes. We're at bare frames now, slowly moving towards panels and tiles. I think a panel should be a frame. I'm not sure what related windows are. MB> Consider use of emacs's calc on a handset. Your example is useful, but you're jumping too far ahead. Let's work on the general panel and tiling functionality first. Ted