all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: PJ Weisberg <pjweisberg@gmail.com>
To: Alin Soare <as1789@gmail.com>
Cc: Juri Linkov <juri@jurta.org>, martin rudalics <rudalics@gmx.at>,
	"Stephen J. Turnbull" <stephen@xemacs.org>,
	Emacs Dev <emacs-devel@gnu.org>
Subject: Re: Tabs are ready? -> Let us give a definition of tabs.
Date: Thu, 9 Feb 2012 07:55:47 -0800	[thread overview]
Message-ID: <CAJsNXT=7g+3MJZni_wPQkU8nY_PZNUPd-H5eZP8YYcUoTSUKjQ@mail.gmail.com> (raw)
In-Reply-To: <CA+Xtq3XpeFua0_W5GvxXtH1tdgcyrE_Fx8RL5-D89zZThsek=A@mail.gmail.com>

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

On Monday, February 6, 2012, Alin Soare <as1789@gmail.com> wrote:

>> But this does not require all of the junk (events, callbacks, etc)
>> that you've talked about.  All that *needs* to be added to Emacs is
>> the very limited API needed to associate tabs with a window or frame,
>> displayable content and a label with each tab, and to query that
>> information.  The rest can be implemented with existing Emacs Lisp
>> facilities, such as faces (to change the color of a tab) and process
>> sentinels (one sort of event callback).  If you want a GTK-like API,
>> that should be easy to write in Lisp.
>>
>
> Without events, do you have a concrete idea how to signal to a hidden tab
that something changed , such that it changes the color?
> I do not need a very limited API. I need a programmable tab bar.

I would give the tab a "wants attention" flag that gets unset when the tab
is activated, and set when `(tab-request-attention TAB)' is called, e.g. by
a process sentinal.  Then the tab's title would switch from
`tab-inactive-face' to `tab-wants-attention-face'.

The way I'm picturing it, the tab's internal state consists of four pieces
of data: a title, a window (or possibly window configuration), a function
that's called when it becomes active, and another function that's called
when it becomes inactive.  That *seems* like it's meeting all your
requirements, as I've understood them.

-- 

-PJ

Gehm's Corrollary to Clark's Law: Any technology distinguishable from
magic is insufficiently advanced.

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

  parent reply	other threads:[~2012-02-09 15:55 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-04 22:36 Tabs are ready? -> Let us give a definition of tabs Alin Soare
2012-02-05 10:42 ` martin rudalics
2012-02-05 12:44   ` Alin Soare
2012-02-05 13:17     ` martin rudalics
2012-02-05 13:39       ` Alin Soare
     [not found]         ` <CA+Xtq3U5PkH=m1ZRMMm2LJQ_BHZXc08Vk4TbhNyyFLta+1EkBw@mail.gmail.com>
2012-02-05 13:44           ` Fwd: " Alin Soare
2012-02-05 14:50             ` Alin Soare
2012-02-05 17:56               ` Andy Moreton
2012-02-05 18:51                 ` Drew Adams
2012-02-06  3:35                   ` Stephen J. Turnbull
2012-02-05 18:16               ` martin rudalics
2012-02-05 21:33                 ` Alin Soare
2012-02-06 10:35                   ` martin rudalics
2012-02-06 13:21                     ` Alin Soare
2012-02-05 23:56                 ` Alin Soare
2012-02-06 10:36                   ` martin rudalics
2012-02-06 13:34                     ` Alin Soare
2012-02-06 14:46                       ` Stephen J. Turnbull
2012-02-06 16:18                         ` Alin Soare
2012-02-06 16:21                           ` Alin Soare
2012-02-06 17:53                           ` Stephen J. Turnbull
2012-02-06 22:51                             ` Alin Soare
2012-02-06 22:55                               ` Alin Soare
2012-02-07 16:15                               ` Stephen J. Turnbull
2012-02-09 15:55                               ` PJ Weisberg [this message]
2012-02-09 16:11                                 ` Alin Soare
2012-02-09 16:16                                   ` Alin Soare
2012-02-10 19:04                                     ` Alin Soare
2012-02-10 19:08                                       ` Alin Soare
2012-02-11 14:16                                     ` Nix
2012-02-11 14:41                                       ` Alin Soare
2012-02-12 13:40                                         ` Nix
2012-02-12 16:23                                           ` Alin Soare
2012-02-12 18:48                                             ` Alin Soare
2012-02-13  6:06                                       ` Stephen J. Turnbull
2012-02-13 12:29                                         ` Nix
2012-02-13 15:53                                           ` Tom Tromey
2012-02-13 16:21                                             ` Nix
2012-02-13 16:30                                               ` Tom Tromey
2012-02-13 18:50                                                 ` Nix
2012-02-15 20:35                                                   ` Tom Tromey
2012-02-15 22:59                                                     ` Stefan Monnier
2012-02-15 23:03                                                     ` Nix
2012-02-28 15:13                                                       ` Alin Soare
2012-02-28 15:16                                                         ` Alin Soare
2012-02-13 13:24                                         ` Stefan Monnier
2012-02-13 13:49                                           ` Nix
2012-02-13 15:20                                             ` Stefan Monnier
2012-02-13 16:21                                               ` Nix
2012-02-06 18:00                         ` martin rudalics
2012-02-06 17:05                       ` martin rudalics
2012-02-05 18:15         ` martin rudalics
2012-02-05 21:38           ` Alin Soare
2012-02-05 22:30             ` joakim
2012-02-05 22:53               ` Alin Soare
2012-02-06 10:35             ` martin rudalics
2012-02-06 13:25               ` Alin Soare
2012-02-06 17:03                 ` martin rudalics
2012-02-06 19:19                   ` Nix
2012-02-06 19:43                     ` martin rudalics
2012-02-06 19:45                       ` Nix
2012-02-06 19:54                       ` Drew Adams
2012-02-08 23:43                         ` Alin Soare
2012-02-09 11:19                           ` Nix
2012-02-09 13:05                             ` Alin Soare
2012-02-09 13:07                               ` Alin Soare
2012-02-07 15:57                     ` Stephen J. Turnbull
2012-02-07 17:15                       ` Nix
2012-02-06 20:05                   ` Alin Soare
2012-02-07 16:03                     ` Stephen J. Turnbull
2012-02-06 17:04                 ` martin rudalics

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='CAJsNXT=7g+3MJZni_wPQkU8nY_PZNUPd-H5eZP8YYcUoTSUKjQ@mail.gmail.com' \
    --to=pjweisberg@gmail.com \
    --cc=as1789@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    --cc=rudalics@gmx.at \
    --cc=stephen@xemacs.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 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.