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 01:56:28 +0200 Message-ID: References: <4F2E5D33.6020406@gmx.at> <4F2E8185.4080706@gmx.at> <4F2EC768.4050603@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec529958962532704b8404b73 X-Trace: dough.gmane.org 1328486196 30478 80.91.229.3 (5 Feb 2012 23:56:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2012 23:56:36 +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 00:56:35 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 1RuBwh-0001vI-CA for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2012 00:56:35 +0100 Original-Received: from localhost ([::1]:38624 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuBwg-0006cs-QL for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2012 18:56:34 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuBwd-0006cU-7X for emacs-devel@gnu.org; Sun, 05 Feb 2012 18:56:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuBwc-0007to-21 for emacs-devel@gnu.org; Sun, 05 Feb 2012 18:56:31 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:53038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuBwb-0007tj-Pj for emacs-devel@gnu.org; Sun, 05 Feb 2012 18:56:30 -0500 Original-Received: by iagz16 with SMTP id z16so9841107iag.0 for ; Sun, 05 Feb 2012 15:56:29 -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=R9gKHMP31An1s8iPVT785+JE9/9Fp4pQ/u9bEbLRDVw=; b=gtv4WYugMbMVFUerkXEOUc6lr1shPbkK89gIT/i+dXAMn9cE5S2eesw/xc4KeZnF+4 jJcAmMZKWIu9wLIWtDvCy5Z9oSCJOZBN059PHNu6SziJ3vt6mE38bx8N8i9NyIvHz/6R +Gir24qvDTxWi8rPUmEqnI49CsXJ66bkZTEHg= Original-Received: by 10.43.53.1 with SMTP id vo1mr18312288icb.2.1328486188995; Sun, 05 Feb 2012 15:56:28 -0800 (PST) Original-Received: by 10.231.42.209 with HTTP; Sun, 5 Feb 2012 15:56:28 -0800 (PST) In-Reply-To: <4F2EC768.4050603@gmx.at> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.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:148217 Archived-At: --bcaec529958962532704b8404b73 Content-Type: text/plain; charset=UTF-8 > > > > > This does not mean necessarly only commuting to other buffer, or > commuting > > to other window; in order to make a tab that does such a commutation like > > in other text editors, particular lisp functions should be defined for > the > > events of that tab. > > Sure. But any such function could be used in another context as well. > As mentioned before, we could easily add menu- or toolbar items which > stand for "saving the current window configuration" or "restoring a > previously saved window configuration". I can neither see why such > actions should be exclusively tied to tabs nor why tabs are very suited > for them. > > I give you an example that I would like to have in emacs. I wish to be able define a tab that does so: 1. at initialization it starts a grep and looks for something in background 2. The 'show event should commute to the buffer *grep* 3. when grep finds something, and the tab is hidden , the tab widget to change the color 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 ? --bcaec529958962532704b8404b73 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


> This does not mean necessarly only commuting to other buffer, or commu= ting
> to other window; in order to make a tab that does such a commutation l= ike
> in other text editors, =C2=A0particular lisp functions should be defin= ed for the
> events of that tab.

Sure. =C2=A0But any such function could be used in another context as well.=
As mentioned before, we could easily add menu- or toolbar items which
stand for "saving the current window configuration" or "rest= oring a
previously saved window configuration". =C2=A0I can neither see why su= ch
actions should be exclusively tied to tabs nor why tabs are very suited
for them.


I give you an example that I would like= to have in emacs.

I wish to be able define a tab = that does so:


1. at initialization it starts a grep an= d looks for something in background
2. The 'show event should= commute to the buffer *grep*
3. when grep finds something, and t= he tab is hidden , the tab widget to change the color
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 insist ?

--bcaec529958962532704b8404b73--