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: Sun, 5 Feb 2012 23:33:01 +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=bcaec529958957061a04b83e4ab9 X-Trace: dough.gmane.org 1328477591 7289 80.91.229.3 (5 Feb 2012 21:33:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2012 21:33:11 +0000 (UTC) Cc: Juri Linkov , Emacs Dev To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 05 22:33:10 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 1Ru9ht-00024g-NW for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2012 22:33:09 +0100 Original-Received: from localhost ([::1]:39472 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru9ht-0005Jx-3I for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2012 16:33:09 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:33183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru9hp-0005Jk-Ch for emacs-devel@gnu.org; Sun, 05 Feb 2012 16:33:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ru9hm-0002E8-MP for emacs-devel@gnu.org; Sun, 05 Feb 2012 16:33:05 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:50259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru9hm-0002E4-CH for emacs-devel@gnu.org; Sun, 05 Feb 2012 16:33:02 -0500 Original-Received: by iagz16 with SMTP id z16so9701941iag.0 for ; Sun, 05 Feb 2012 13:33:01 -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=WPHnM7hb7sd7tQuBe4crFOJ9F9GHqOVac9ykI9Ygi4w=; b=WjpmQJ/xmBGyVcxpFWy4DW68Yt5iXfmi5CLKvuwijbAo7yJ6gpZEst1kK+AMBnwJ+Y LL5Ik1ZzA25+3De9w8ku/G6Rclkzu2wx9VDlb2yiz18lTwC0f2nQTM1AtREEHCj2S9Qo S1Rr3mMZa49jILznwmvVVl1GQvUuSONkXx+Yc= Original-Received: by 10.43.53.1 with SMTP id vo1mr17981510icb.2.1328477581542; Sun, 05 Feb 2012 13:33:01 -0800 (PST) Original-Received: by 10.231.42.209 with HTTP; Sun, 5 Feb 2012 13:33:01 -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:148211 Archived-At: --bcaec529958957061a04b83e4ab9 Content-Type: text/plain; charset=UTF-8 > > There is the conception of mozilla and many text editors that changing a > > tab means to pass to other web page or other file to edit. > > What does "changing a tab" mean? Do you mean pushing some graphical > object with the mouse or replacing one graphical object with another? Yes. Not necessarily with the mouse. You can call a lisp function to commute to a new tab. In firefox you can commute to the next tab using C-PgDn . Every time when you commute to a tab, the lisp function associated to the 'show event is called. > > In Emacs, I propose , the behaviour of each event of a tab to be defined > > using lisp functions, attached to the events that tab reponds to. > > Can I transcribe this as "reacting to a tab event means to call a > function written in Elisp"? Yes. In graphical systems, like GTK, there is the concept of 'callback. > > > > 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. > > Probably yes. But a toolbar button is not a tab. And do not forget that toolbar does not exist in console. In mozilla you can install lots of kind of bars. And there is no doubt that the tabs are still useful. In mozilla the tabs are used for current-open pages. --bcaec529958957061a04b83e4ab9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

> There is the conception of mozilla and many text editors that cha= nging a
> tab means to pass to other web page or other file to edit.

What does "changing a tab" mean? =C2=A0Do you mean pushing some g= raphical
object with the mouse or replacing one graphical object with another?

Yes. Not necessarily with the mouse. You can cal= l a lisp function to commute to a new tab. In firefox you can commute to th= e next tab using C-PgDn .

Every time when you commute to a tab, the lisp function= associated to the 'show event is called.


> In Emacs, I propose , the behaviour of each event of a tab to be defin= ed
> using lisp functions, attached to the events that tab reponds to.

Can I transcribe this as "reacting to a tab event means to call a
function written in Elisp"?

Yes.
=

In graphical systems, like GTK, there is the concept of= 'callback.


> 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.


Probably yes. But a toolbar button is n= ot a tab. And do not forget that toolbar does not exist in console.

In mozilla you can install lots of kind of bars. And there i= s no doubt that the tabs are still useful. In mozilla the tabs are used for= current-open pages.





--bcaec529958957061a04b83e4ab9--