From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alin Soare Newsgroups: gmane.emacs.devel Subject: Re: Tabs are ready? -> Let us give a definition of tabs. Date: Mon, 6 Feb 2012 15:34:10 +0200 Message-ID: References: <4F2E5D33.6020406@gmx.at> <4F2E8185.4080706@gmx.at> <4F2EC768.4050603@gmx.at> <4F2FAD31.9040702@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae934104dabb14304b84bb70f X-Trace: dough.gmane.org 1328535265 17409 80.91.229.3 (6 Feb 2012 13:34:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2012 13:34:25 +0000 (UTC) Cc: Juri Linkov , Emacs Dev To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 06 14:34:24 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RuOi6-0004l4-Su for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2012 14:34:23 +0100 Original-Received: from localhost ([::1]:34891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuOi6-0005Wd-Bm for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2012 08:34:22 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuOhz-0005WK-Ub for emacs-devel@gnu.org; Mon, 06 Feb 2012 08:34:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuOhv-0008FJ-5P for emacs-devel@gnu.org; Mon, 06 Feb 2012 08:34:15 -0500 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:47107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuOhv-0008FD-0c for emacs-devel@gnu.org; Mon, 06 Feb 2012 08:34:11 -0500 Original-Received: by ghrr18 with SMTP id r18so2983336ghr.0 for ; Mon, 06 Feb 2012 05:34:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=H+RSpAuceIQkNPQFCvV9Cu54w4cGLYZ/EZFjs9DygXw=; b=CcjbMj8Y5ZwHRJzirI6xniCNqRQSjFT2lfx4LxBX5W8KHMi04pczTtN5F3xczuMZMU B2z7xuQXT8oYcD80YQ9/siVeiKv5rbxqjatO17cDdGrbsVgKXJXd4kk9fQbA4p9+JjIi qaIC3avEuyBTglMkSgicPTi+GD7oSnna6tzjk= Original-Received: by 10.50.184.233 with SMTP id ex9mr21125074igc.23.1328535250382; Mon, 06 Feb 2012 05:34:10 -0800 (PST) Original-Received: by 10.231.42.209 with HTTP; Mon, 6 Feb 2012 05:34:10 -0800 (PST) In-Reply-To: <4F2FAD31.9040702@gmx.at> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.169 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:148254 Archived-At: --14dae934104dabb14304b84bb70f Content-Type: text/plain; charset=UTF-8 2012/2/6 martin rudalics > > 1. at initialization it starts a grep and looks for something in > background > > How do you communicate to the tab what the "something" is? execute 'grep -i foo *' in background , example > > 2. The 'show event should commute to the buffer *grep* > > This is the standard buffer switching functionality. > > I know how to commute a buffer. In this case of tab, I want the show event to commute to a given buffer. > > > 3. when grep finds something, and the tab is hidden , the tab widget to > > change the color > > What sense does it make to have a hidden tab change color? And what > kind of event is this in your nomenclature? > > Tabs should register a callback for an event , for example, when i/o arrives in the given process... > > > 4. The 'close event should kill the *grep* buffer, and the process , if > it > > had not finished yet > > > Could you do this using buttons in toolbar or menubar, as you insist ? > > So far I'd only insist that saving and restoring window configurations > should be done with the menubar rather than with a tab. I never ever > use toolbars but I think that mail handling routines using the toolbar > (could) do such things routinely (inform of new mail, kill a buffer and > remove the associated button when mail has been sent , ...). > > Why do you change the subject of discussion ? saving and restoring window configurations concerns other type of tab, not this one I am talking here. Quite so, you can do this functionality using only M-x and calling lisp functions. Or menu entries. But I am sure most people would be happy to be able to define a tab that shows a 'grep process. --14dae934104dabb14304b84bb70f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

2012/2/6 martin rudalics <rudalics@gmx.at>
> 1. at initialization it starts a grep and looks for = something in background

How do you communicate to the tab what the "something" is?


execute 'grep -i foo *' in= background , example


=C2=A0
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
> 2. The 'show event should commute to the buffer *grep*

This is the standard buffer switching functionality.

<= /div>

I know how to commute a buffer. In th= is case of tab, I want the show event to commute to a given buffer.
=C2=A0

> 3. when grep finds something, and the tab is hidden , the tab widget t= o
> change the color

What sense does it make to have a hidden tab change color? =C2=A0And what kind of event is this in your nomenclature?


Tabs should register a callback for an event ,= for example, when i/o arrives in =C2=A0the given process...
=C2= =A0

> 4. The 'close event should kill the *grep* buffer, and the process= , if it
> had not finished yet

> =C2=A0Could you do this using buttons in toolbar or menubar, as you in= sist ?

So far I'd only insist that saving and restoring window configurations<= br> should be done with the menubar rather than with a tab. =C2=A0I never ever<= br> use toolbars but I think that mail handling routines using the toolbar
(could) do such things routinely (inform of new mail, kill a buffer and
remove the associated button when mail has been sent , ...).


Why do you c= hange the subject of discussion ?=C2=A0saving and restoring window configur= ations concerns other type of tab, not this one I am talking here.



Quite so, you can do this func= tionality using only M-x and calling lisp functions. Or menu entries. But I= am sure most people would be happy to be able to define a tab that shows a= 'grep process.


--14dae934104dabb14304b84bb70f--