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 for console. Date: Wed, 8 Dec 2010 13:16:26 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016367fb19f8cd82c0496e44081 X-Trace: dough.gmane.org 1291807310 18815 80.91.229.12 (8 Dec 2010 11:21:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 11:21:50 +0000 (UTC) To: Stefan Monnier , Emacs Dev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 08 12:21:46 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQI5g-0006a2-Lo for ged-emacs-devel@m.gmane.org; Wed, 08 Dec 2010 12:21:46 +0100 Original-Received: from localhost ([127.0.0.1]:56830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQI5f-0006Fk-QD for ged-emacs-devel@m.gmane.org; Wed, 08 Dec 2010 06:21:43 -0500 Original-Received: from [140.186.70.92] (port=59582 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQI0a-0003Ff-RD for emacs-devel@gnu.org; Wed, 08 Dec 2010 06:16:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQI0Z-0003Pt-NA for emacs-devel@gnu.org; Wed, 08 Dec 2010 06:16:28 -0500 Original-Received: from mail-ww0-f41.google.com ([74.125.82.41]:52214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQI0Z-0003Pi-F9 for emacs-devel@gnu.org; Wed, 08 Dec 2010 06:16:27 -0500 Original-Received: by wwi18 with SMTP id 18so6515771wwi.0 for ; Wed, 08 Dec 2010 03:16:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=tqlUwyzubM1z+6N7ryl8mfhjuUR9nLxwIm5HVMjuM+Y=; b=LJMy9vcdg7/+eudYxUetO5MTuzP73dt1+Vpbkw78pbk27ryq3oVsrXw2J9rX7YYqpl +r+n9Rr24CUiSwOqI0fI4G/V71svpVhYiPJIG2OG7Wp+LrkuSslNH20eNBR3QOARGbEr a5i633cV8kzDjRLVur6ICNtrOMcMdD7UOOp0w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=WInHgK+k4U6KblKkbucces/BsyFR6J1jl0FsKpGWtRfn5aUBlZSD4/5MR237W8q3Sp Qr+L7uRjoepMbeWBw4LBXB41JndtBgYIFEKHh5vF6V9OK2tEwdr1C6k5PVUcPwunPvOk X2qTmttX/JULRoGUXQ/lZskzYw1xzL/snaAbU= Original-Received: by 10.227.138.73 with SMTP id z9mr8704212wbt.192.1291806986524; Wed, 08 Dec 2010 03:16:26 -0800 (PST) Original-Received: by 10.227.55.67 with HTTP; Wed, 8 Dec 2010 03:16:26 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133534 Archived-At: --0016367fb19f8cd82c0496e44081 Content-Type: text/plain; charset=UTF-8 > >> I don't understand the above call to `make-terminal-frame': does it > >> create a new frame, or just a new tab? If the first, then I don't > >> understand how it works, and if the second, it's wrong because adding > >> a tab should have nothing to do with frame creation. > > The fact that make-tab calls directly make-terminal-frame is just a > legacy > > of the old code, when a tab used to be just a frame. > > So it will need to change. But does `make-tab' create a new tab or > a tabbar? If a tab, then I don't understand any more why the init-code > is needed. > I did not insert :initcode inside the tab, because I should have written more C code. I should add the :initcode after the (make-terminal-frame '(tab . t)), or I should have written code to commute temporarly to a tab without activating it. This is why I executed the :initcode before calling (make-terminal-frame.... ) In my case the :initcode should be ;; save curent win config (setq sym (make-symbol "winconfig")) (set sym (current-window-configuration)) My actual C code does not allow me to insert :initcode as parameter to (make-terminal-frame (tab . t)), and this is why I created make-tab and separated the :initcode. I come into a vicious circle if I pass :initcode to make-terminal frame, and I did not want to write more C code before to clarify with other emacs developers how tabs should look like. --0016367fb19f8cd82c0496e44081 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
>> I don't understand the above call to `make-terminal-frame'= : does it
>> create a new frame, or just a new tab? =C2=A0If the first, then I = don't
>> understand how it works, and if the second, it's wrong because= adding
>> a tab should have nothing to do with frame creation.
> The fact that make-tab calls directly make-terminal-frame is just a le= gacy
> of the old code, when a tab used to be just a frame.

So it will need to change. =C2=A0But does `make-tab' create a new= tab or
a tabbar? =C2=A0If a tab, then I don't understand any more why the init= -code
is needed.

I did not insert :in= itcode inside the tab, because I should have written more C code. I should = add the :initcode after the (make-terminal-frame '(tab . t)), or I shou= ld have written code to commute temporarly to a tab without activating it.<= br>
This is why I executed the :initcode before calling (make-terminal-fram= e.... )

In my case the :initcode should be
=C2=A0 ;; save curent win config
=C2=A0 (setq sym (make-symbol "wi= nconfig"))
=C2=A0 (set sym=C2=A0 (current-window-configuration= ))


My actual C code does not allow me to insert :initcode as par= ameter to (make-terminal-frame (tab . t)), and this is why I created make-t= ab and separated the :initcode.

I come into a vicious circle if I pa= ss :initcode to make-terminal frame, and I did not want to write more C cod= e before to clarify with other emacs developers how tabs should look like.<= br>


--0016367fb19f8cd82c0496e44081--