unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mohsen BANAN <list-general@mohsen.1.banan.byname.net>
To: emacs-devel@gnu.org, Ted Zlatanov <tzz@lifelogs.com>
Subject: Re: just-the-text Emacs frame
Date: Thu, 02 Jun 2011 13:19:49 -0700	[thread overview]
Message-ID: <yx2ipsokmu2.fsf@mohsen.1.banan.byname.net> (raw)
In-Reply-To: <878vtkb06y.fsf@lifelogs.com> (Ted Zlatanov's message of "Thu, 02 Jun 2011 12:41:25 -0500")


>>>>> On Thu, 02 Jun 2011 12:41:25 -0500, Ted Zlatanov <tzz@lifelogs.com> said:
  Ted> On Thu, 02 Jun 2011 08:43:55 -0700 Mohsen BANAN <list-general@mohsen.1.banan.byname.net> wrote: 
  >>>>>>> On Thu, 02 Jun 2011 08:15:31 -0500, Ted Zlatanov <tzz@lifelogs.com> said:


  MB> Please let live emacs-panels consist of live emacs-tiles.
  Ted> ...
  MB> So, an emacs-panel would not be simply displaying a buffer, but
  MB> possibly a series of buffers (tiles).

  Ted> Should those tiles be Emacs windows or buffer-level facilities?

I wrote that poorly.

Usually not emacs windows.

In the concrete, emacs-panel would be simply
displaying a buffer but in the abstract the
emacs-panel buffer is the aggregation of a series
of emacs-tiles (likely buffers). 

I'll be expanding on this in the context of an
example below.

  MB> A live emacs-tile may optionally have a clickable (touchable)
  MB> function. So, in addition to being "live" it is optionally
  MB> "active". Each emacs-tile may have an "activate" function.

  Ted> That should be a property of the text produced by the "update" function.

Possible to do it that way but there are also
advantages for an entire emacs-tile to be declared
active to the emacs-panel. 

More on this in the example below.


  MB> The process of splitting an emacs-panel into emacs-tiles can be
  MB> based on something like Lars's (gnus-add-configuration).

  Ted> Can you provide an example?  I don't know exactly what you mean here.

Gnus provides a facility for structuring a frame
into multiple windows based on horizontal/vertical
box specifications.

On a wide screen, mine is this:

(defun bystar:mail:display:frame-wide ()
  "On a Wide Frame"
  (interactive)

  (gnus-add-configuration
   '(summary
     (horizontal 1.0
		 (vertical 0.6 (summary 1.0 point))
		 (vertical 1.0 (group 1.0)))))

  (gnus-add-configuration
   '(article
     (horizontal 1.0
		 (vertical 0.6 (summary 0.25 point) (article 1.0) )
		 (vertical 1.0  ("*BBDB*" 1.0) (score-trace 0.1)))))
  )

So, I am proposing that similarly an emacs-panel can be
devided into emacs-tiles.

The example below explains it more.

Panel of Tiles Example:
-----------------------

Consider that we were trying to mimic what 
Windows 7 Mobile is doing in:
  
  http://www.blogcdn.com/www.engadget.com/media/2010/02/02-15-10winphone2.jpg

There will be 1 emacs-panel containing 7
emacs-tiles.

So, we need to:

    - Specify 7 emacs-tiles. (6 squares 1 rectangle
      in that picture.)
    - Specify lay out and sizes of the tiles within the
      panel. Based on something similar to gnus-add-configuration.
    - Specify the emacs-panel's overall size ... and
      make it contain the 7 emacs-tiles.

As you said, a tile in a panel is not same as a 
window in a frame.

The horizontal/vertical dividers for the tiles
could be as simple as lines (thin dividers -- not scroll bars).

I have a preference for the "active" abstraction
for the entire tile to be optionally deligated to
the panel manager as opposed to always being a
property of the text inside of the tile.

The idea is that on a handset you would always
take it for granted that touching (clicking) a
tile will always do something. 

My motivation is to facilitate getting things
started towards Emacs Mobile. The maping between
the container of a set of tiles into a panel can
be at frame or window level. May be we need a
separate abstraction name for the container of a
set of tiles.

With something like this (panels of tiles) in
place, emacs can quickly be made quite usable on a
touch based handset.

On a large screen, outside of the handset usage,
using you own example:

(emacs-panel-popup-add
 "status" :function
 (lambda ()
   (format "%s\n%s\n%s\n%s"
           (format-time-string "%H:%M %Y-%m-%d" (current-time))
           (battery-format battery-echo-area-format (funcall
                                                     battery-status-function))
           (timeclock-status-string)
           (shell-command-to-string "nmcli -p  dev"))))

Using tiles, you could be creating 4 tiles for 
each of:

           (format-time-string "%H:%M %Y-%m-%d" (current-time))

           (battery-format battery-echo-area-format (funcall
                                                     battery-status-function))

           (timeclock-status-string)

           (shell-command-to-string "nmcli -p  dev")

With tile dividers between them and separate
update functions ...

What do you think?

Thanks.

...Mohsen



  reply	other threads:[~2011-06-02 20:19 UTC|newest]

Thread overview: 131+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-25  1:05 Emacs as a desktop environment Ted Zlatanov
2011-05-25  7:31 ` joakim
     [not found] ` <87ei3n1dph.fsf@mid.gehheimdienst.de>
2011-05-25 10:28   ` Ted Zlatanov
2011-05-25 16:45     ` PJ Weisberg
2011-05-25 16:33 ` Ken Raeburn
2011-05-25 17:44   ` Tom Tromey
2011-05-25 19:26   ` Evans Winner
2011-05-25 21:58     ` Lennart Borgman
2011-05-25 22:15       ` David Kastrup
2011-05-25 22:27         ` Lennart Borgman
2011-05-25 23:04       ` Christophe Poncy
2011-05-26  0:18     ` Ken Raeburn
2011-05-26  0:37       ` Stefan Monnier
2011-05-26  5:45       ` Ulrich Mueller
2011-05-27  1:50         ` Stephen J. Turnbull
2011-05-28  0:09           ` Nix
2011-05-28 10:25             ` Thien-Thi Nguyen
2011-05-28 10:44               ` Nix
2011-05-28 16:14                 ` David De La Harpe Golden
2011-05-30  8:34                   ` Julien Danjou
2011-05-25 22:08   ` Nix
2011-05-25 23:57     ` Ken Raeburn
2011-05-26  7:27       ` joakim
2011-05-26  8:33         ` Thierry Volpiatto
2011-05-26 14:16         ` BBDB in the GNU ELPA (was: Emacs as a desktop environment) Ted Zlatanov
2011-05-26 23:12           ` BBDB in the GNU ELPA Glenn Morris
2011-05-27  3:48             ` Stephen J. Turnbull
2011-05-27 12:53             ` Ted Zlatanov
2011-05-28 14:57           ` Bernt Hansen
2011-05-30 12:57             ` Ted Zlatanov
2011-05-30 18:08               ` Glenn Morris
2011-05-30 19:27                 ` Štěpán Němec
2011-05-30 19:42                   ` Glenn Morris
2011-05-31  9:56                     ` Ted Zlatanov
2011-05-25 23:35   ` Emacs as a desktop environment Ted Zlatanov
2011-05-26  1:33     ` Tom Tromey
2011-05-26 15:36     ` PJ Weisberg
2011-05-26 16:29       ` Ted Zlatanov
2011-05-26  0:58 ` Eric M. Ludlam
2011-05-26 15:21   ` Ted Zlatanov
2011-05-26 16:38     ` joakim
2011-05-27 12:50       ` Ted Zlatanov
2011-05-28  8:10         ` joakim
2011-05-28 17:49           ` just-the-text Emacs frame (was: Emacs as a desktop environment) Ted Zlatanov
2011-05-28 20:01             ` Emacs24 Mobile (was: Re: just-the-text Emacs frame (was: Emacs as a desktop environment)) Mohsen BANAN
2011-05-29  1:44               ` Emacs24 Mobile Ted Zlatanov
2011-05-29  2:00                 ` T.V. Raman
2011-05-30 17:11                   ` Lars Magne Ingebrigtsen
2011-05-28 20:18             ` just-the-text Emacs frame Thierry Volpiatto
2011-05-28 22:06               ` Ted Zlatanov
2011-05-29 10:12               ` joakim
2011-06-01 18:01             ` Ted Zlatanov
2011-06-02  2:43               ` Leo
2011-06-02  4:05                 ` Eli Zaretskii
2011-06-02 13:15                   ` Ted Zlatanov
2011-06-02 15:43                     ` Mohsen BANAN
2011-06-02 17:41                       ` Ted Zlatanov
2011-06-02 20:19                         ` Mohsen BANAN [this message]
2011-06-02 21:06                           ` Ted Zlatanov
2011-06-03 15:09                             ` Mohsen BANAN
2011-06-03 20:56                           ` Ted Zlatanov
2011-06-03 22:31                             ` Mohsen BANAN
2011-06-02 18:00                     ` Eli Zaretskii
2011-06-02 18:53                       ` GTK "decorated" and "deletable" properties (was: just-the-text Emacs frame) Ted Zlatanov
2011-06-02 20:49                         ` Eli Zaretskii
2011-06-02 20:59                           ` GTK "decorated" and "deletable" properties Ted Zlatanov
2011-06-03 15:21                             ` Jan Djärv
2011-06-03 16:29                               ` Ted Zlatanov
2011-06-03 16:39                                 ` Eli Zaretskii
2011-06-03 17:39                                   ` Ted Zlatanov
2011-06-03 17:39                                 ` Jan Djärv
2011-06-03 18:09                                   ` Ted Zlatanov
2011-06-10 20:58                                   ` sending X client messages from Emacs (was: GTK "decorated" and "deletable" properties) Ted Zlatanov
2011-06-10 21:27                                     ` sending X client messages from Emacs Chong Yidong
2011-06-10 21:49                                       ` Ted Zlatanov
2011-06-03  2:40                     ` just-the-text Emacs frame Leo
2011-06-03 11:36                       ` Ted Zlatanov
2011-06-03 11:55                         ` Leo
2011-06-03 15:15                           ` Ted Zlatanov
2011-06-04  3:51                             ` Leo
2011-06-04  7:02                               ` Eli Zaretskii
2011-06-03  9:24                     ` Julien Danjou
2011-06-03 11:40                       ` Ted Zlatanov
2011-06-03 13:16                         ` Julien Danjou
2011-06-03 15:11                           ` Ted Zlatanov
2011-06-03 15:27                             ` Julien Danjou
2011-06-03 16:30                             ` Jan Djärv
2011-06-03 17:37                               ` Ted Zlatanov
2011-06-03 18:06                                 ` Jan Djärv
2011-06-03 19:08                                   ` Ted Zlatanov
2011-06-06  8:38                                   ` Julien Danjou
2011-06-06  9:23                                     ` Jan Djärv
2011-06-06  9:34                                       ` Jan Djärv
2011-06-06 10:00                                       ` Julien Danjou
2011-06-06 20:52                                         ` Ted Zlatanov
2011-06-07  8:25                                           ` Julien Danjou
2011-06-10 16:28                                             ` Ted Zlatanov
2011-06-10 17:35                                               ` T.V. Raman
2011-06-10 18:57                                               ` chad
2011-06-10 20:53                                                 ` Ted Zlatanov
2011-06-11  8:04                                               ` Philipp Haselwarter
2011-06-11 10:45                                                 ` Ted Zlatanov
2011-06-07 15:54                                           ` org-src.el begin_src/end_src fontification may have been broken recently (was: just-the-text Emacs frame) Ted Zlatanov
2011-06-07 18:02                                             ` org-src.el begin_src/end_src fontification may have been broken recently Stefan Monnier
2011-06-07 18:17                                               ` Ted Zlatanov
2011-06-07 18:05                                             ` Jambunathan K
2011-06-07 19:02                                               ` Ted Zlatanov
2011-06-10  0:20                                             ` Ted Zlatanov
2011-06-10 16:23                                               ` Ted Zlatanov
2011-06-10 19:51                                                 ` Thierry Volpiatto
2011-06-10 23:00                                                 ` Bastien
2011-06-11 10:41                                                   ` Ted Zlatanov
2011-06-11 10:53                                                     ` Ted Zlatanov
2011-06-11 18:16                                                 ` Julien Danjou
2011-06-12 22:24                                                   ` Ted Zlatanov
2011-06-13  8:05                                                     ` Štěpán Němec
2011-06-13 14:38                                                       ` Eric Schulte
2011-06-13 15:36                                                       ` Ted Zlatanov
2011-06-14  9:41                                                         ` Julien Danjou
2011-06-14 16:08                                                           ` Ted Zlatanov
2011-06-15  8:12                                                             ` Julien Danjou
2011-06-15 14:55                                                               ` Ted Zlatanov
2011-06-20 13:32                                                                 ` Bastien
2011-06-06  8:32                               ` just-the-text Emacs frame Julien Danjou
2011-06-06  9:22                                 ` Jan Djärv
2011-05-26 17:50     ` Emacs as a desktop environment Tom Tromey
2011-06-13 17:36 ` taking over global key events (X, NS, W32) (was: Emacs as a desktop environment) Ted Zlatanov
2011-06-13 18:41   ` taking over global key events (X, NS, W32) joakim
2011-06-13 19:22     ` Mathias Dahl
2011-06-13 20:34       ` Ted Zlatanov
  -- strict thread matches above, loose matches on Subject: below --
2011-06-10 17:38 just-the-text Emacs frame T. V. Raman

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=yx2ipsokmu2.fsf@mohsen.1.banan.byname.net \
    --to=list-general@mohsen.1.banan.byname.net \
    --cc=emacs-devel@gnu.org \
    --cc=tzz@lifelogs.com \
    /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).