From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Gtk tabs in emacs, new branch. Date: Sat, 10 Apr 2010 14:51:44 -0400 Message-ID: References: <30298845.656931270806476838.JavaMail.www@wwinf4631> <4BBF0C6C.7000909@swipnet.se> <4BC011F5.9010505@swipnet.se> <87zl1be30v.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270926633 32654 80.91.229.12 (10 Apr 2010 19:10:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Apr 2010 19:10:33 +0000 (UTC) Cc: Jan =?iso-8859-1?Q?Dj=E4rv?= , "Emacs Dev \[emacs-devel\]" To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 10 21:10:32 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 1O0g4d-00061d-Gv for ged-emacs-devel@m.gmane.org; Sat, 10 Apr 2010 21:10:31 +0200 Original-Received: from localhost ([127.0.0.1]:55627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0g4c-0004Lr-Sx for ged-emacs-devel@m.gmane.org; Sat, 10 Apr 2010 15:10:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O0g1C-0002Cx-Oo for emacs-devel@gnu.org; Sat, 10 Apr 2010 15:06:59 -0400 Original-Received: from [140.186.70.92] (port=54792 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0g1A-0001zl-2z for emacs-devel@gnu.org; Sat, 10 Apr 2010 15:06:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0fmT-0001rQ-Lb for emacs-devel@gnu.org; Sat, 10 Apr 2010 14:51:47 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:17156 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0fmT-0001rM-JL for emacs-devel@gnu.org; Sat, 10 Apr 2010 14:51:45 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAK9lwEtMCqWu/2dsb2JhbACbRXK5S4UMBItG X-IronPort-AV: E=Sophos;i="4.52,182,1270440000"; d="scan'208";a="60598623" Original-Received: from 76-10-165-174.dsl.teksavvy.com (HELO pastel.home) ([76.10.165.174]) by ironport2-out.pppoe.ca with ESMTP; 10 Apr 2010 14:51:45 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D429A7F1B; Sat, 10 Apr 2010 14:51:44 -0400 (EDT) In-Reply-To: <87zl1be30v.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 10 Apr 2010 11:33:04 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:123454 Archived-At: >> It's not just making them more general. It's making them work in the >> "right/natural" way. In Emacs this usually means among other things >> that clicks on it should generate Elisp events caught via a keymap and >> that the list of tabs should be specified by Elisp code. > If clicking on a tab is to act via keybindings, maybe the neatest way to > handle this is to allow keys to be bound to window configurations, with > the meaning of "impose this window configuration". I don't think we need any such new feature. It's easy to use a binding like (define-key map `(lambda () (interactive) (restore-window-configuration ,bar))) -- Stefan