From unknown Sat Aug 16 00:30:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8176 <8176@debbugs.gnu.org> To: bug#8176 <8176@debbugs.gnu.org> Subject: Status: 24.0.50; GUI toolkit differences Reply-To: bug#8176 <8176@debbugs.gnu.org> Date: Sat, 16 Aug 2025 07:30:44 +0000 retitle 8176 24.0.50; GUI toolkit differences reassign 8176 emacs submitter 8176 Tim Cross severity 8176 minor tag 8176 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 04 23:13:51 2011 Received: (at submit) by debbugs.gnu.org; 5 Mar 2011 04:13:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvisJ-0007by-77 for submit@debbugs.gnu.org; Fri, 04 Mar 2011 23:13:51 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvisI-0007bl-6X for submit@debbugs.gnu.org; Fri, 04 Mar 2011 23:13:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvisC-0007h8-9A for submit@debbugs.gnu.org; Fri, 04 Mar 2011 23:13:45 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:45530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvisC-0007h4-7H for submit@debbugs.gnu.org; Fri, 04 Mar 2011 23:13:44 -0500 Received: from [140.186.70.92] (port=39647 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvisB-0004xT-4D for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2011 23:13:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pvis8-0007gU-TT for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2011 23:13:43 -0500 Received: from ipmail07.adl2.internode.on.net ([150.101.137.131]:55444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pvis8-0007f8-HC for bug-gnu-emacs@gnu.org; Fri, 04 Mar 2011 23:13:40 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqsHALJFcU15LIm0/2dsb2JhbACYZgEBjXt1rgeGaS+IYA2FVAQ Received: from ppp121-44-137-180.lns20.syd7.internode.on.net (HELO puma) ([121.44.137.180]) by ipmail07.adl2.internode.on.net with ESMTP; 05 Mar 2011 14:43:37 +1030 From: Tim Cross To: bug-gnu-emacs@gnu.org Subject: 24.0.50; GUI toolkit differences Date: Sat, 05 Mar 2011 15:13:44 +1100 Message-ID: <8762ry8arr.fsf@rapttech.com.au> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) The code below works under some GUI toolkits (i.e. windows, lucid and I think GNUStep), but will not work under versions built with GTK. From a discussion on the emacs-dev list, this appears to be due to design constraints with the GTK toolkit, which will not allow menu actions/buttons to be defined at the top level. I tried to verify this using the GTK documentation, but was unable to find anything specific. Either this is a bug in GTK or how emacs interfaces with the library (seems unlikely, more likely a desing constraint of GTK) and should be fixed or a footnote added to the manual to let developers know of this limitation in some toolkits, noteably GTK based ones. The following code was evaluated within the scratch buffer. I confirmed it works fine under emacs 24 built with lucid, but fails to work when built with GTK2+. Others reported it worked find under win32, but failed on ns. (defun tx-greet () (interactive) (message "Hello Tim!")) (defun tx-menu () (interactive) (define-key lisp-interaction-mode-map [menu-bar tx] '(menu-item "TX Test" tx-greet))) Tim -- Tim Cross tcross@rapttech.com.au There are two types of people in IT - those who do not manage what they understand and those who do not understand what they manage. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 04 10:06:53 2011 Received: (at 8176) by debbugs.gnu.org; 4 Jul 2011 14:06:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdjnZ-0000nX-0F for submit@debbugs.gnu.org; Mon, 04 Jul 2011 10:06:53 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdjnW-0000n5-Ug for 8176@debbugs.gnu.org; Mon, 04 Jul 2011 10:06:51 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QdjnL-000304-Eb; Mon, 04 Jul 2011 16:06:39 +0200 From: Lars Magne Ingebrigtsen To: Tim Cross Subject: Re: 24.0.50; GUI toolkit differences In-Reply-To: <8762ry8arr.fsf@rapttech.com.au> (Tim Cross's message of "Sat, 05 Mar 2011 15:13:44 +1100") Date: Mon, 04 Jul 2011 16:05:17 +0200 Message-ID: References: <8762ry8arr.fsf@rapttech.com.au> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Joanna Newsom's _Have One On Me (2)_: "Go Long" X-Hashcash: 1:23:110704:8176@debbugs.gnu.org::xTd+PIOZ7bREmjCw:00000000000000000000000000000000000000000B7YY X-Hashcash: 1:23:110704:theophilusx@gmail.com::hsbOn1zKJhnrMlOP:0000000000000000000000000000000000000001FJbs MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1QdjnL-000304-Eb X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1310393199.62304@DRd4Q4rivWrje/6um9GRbw X-Spam-Status: No X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 8176 Cc: 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) Tim Cross writes: > Either this is a bug in GTK or how emacs interfaces with the library > (seems unlikely, more likely a desing constraint of GTK) and should be > fixed or a footnote added to the manual to let developers know of this > limitation in some toolkits, noteably GTK based ones. > > The following code was evaluated within the scratch buffer. I confirmed > it works fine under emacs 24 built with lucid, but fails to work when > built with GTK2+. Others reported it worked find under win32, but failed > on ns. > > (defun tx-greet () > (interactive) > (message "Hello Tim!")) > > (defun tx-menu () > (interactive) > (define-key lisp-interaction-mode-map [menu-bar tx] > '(menu-item "TX Test" tx-greet))) I can confirm that this doesn't work under GTK Emacs. Do you have a suggestion where this limitation should be documented? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 04 20:01:06 2011 Received: (at 8176) by debbugs.gnu.org; 5 Jul 2011 00:01:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qdt4b-0004qt-U8 for submit@debbugs.gnu.org; Mon, 04 Jul 2011 20:01:06 -0400 Received: from mail-iy0-f172.google.com ([209.85.210.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qdt4Y-0004qK-UK for 8176@debbugs.gnu.org; Mon, 04 Jul 2011 20:01:04 -0400 Received: by iye7 with SMTP id 7so4877746iye.3 for <8176@debbugs.gnu.org>; Mon, 04 Jul 2011 17:00:57 -0700 (PDT) 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:content-transfer-encoding; bh=lscW/oYW0FiRdPM9OUzmdfBhwCHficu/8MnGJs8jn3A=; b=uCgyrsHacK2NXm/TpuU3xgHJkbvQE9Z1bcrio2BW3QPAvy8MChl2/ZE7atomBmun57 dtXKJzd0Cf1t8Kt/a5wtVxFARN9/sKmBBw80ouaCk71ZPQ5JfkDacchJmzuKUI5sGOwA qsXYEn4J6w0Ge1LQKH0dVJPKWBLs+NNg/ci/M= MIME-Version: 1.0 Received: by 10.231.6.23 with SMTP id 23mr5771410ibx.187.1309824057196; Mon, 04 Jul 2011 17:00:57 -0700 (PDT) Received: by 10.231.30.74 with HTTP; Mon, 4 Jul 2011 17:00:57 -0700 (PDT) In-Reply-To: References: <8762ry8arr.fsf@rapttech.com.au> Date: Tue, 5 Jul 2011 10:00:57 +1000 Message-ID: Subject: Re: 24.0.50; GUI toolkit differences From: Tim Cross To: Lars Magne Ingebrigtsen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8176 Cc: 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) On Tue, Jul 5, 2011 at 12:05 AM, Lars Magne Ingebrigtsen w= rote: > Tim Cross writes: > >> Either this is a bug in GTK or how emacs interfaces with the library >> (seems unlikely, more likely a desing constraint of GTK) and should be >> fixed or a footnote added to the manual to let developers know of this >> limitation in some toolkits, noteably GTK based ones. >> >> The following code was evaluated within the scratch buffer. I confirmed >> it works fine under emacs 24 built with lucid, but fails to work when >> built with GTK2+. Others reported it worked find under win32, but failed >> on ns. >> >> (defun tx-greet () >> =A0 (interactive) >> =A0 (message "Hello Tim!")) >> >> (defun tx-menu () >> =A0 (interactive) >> =A0 (define-key lisp-interaction-mode-map [menu-bar tx] >> =A0 =A0 '(menu-item "TX Test" tx-greet))) > > I can confirm that this doesn't work under GTK Emacs. > > Do you have a suggestion where this limitation should be documented? > > -- > (domestic pets only, the antidote for overdose, milk.) > =A0bloggy blog http://lars.ingebrigtsen.no/ > My suggestion would be to add it to the elisp manual, possibly as a footnote, in either section 22.17 or possibly 22.17.1. Something along the lines that not all GUI toolkits are equal and some features or behaviours available in one toolkit may not be available in another. For example, GTK will not allow a top level menu button or action, while Lucid and NS do. A tricky part in documenting this is getting consistency of terms. I'm not sure if 'top level button or action' is really understood, but basically it refers to a menu item on the top level menu bar which performs an action other than to open a sub-menu. thanks for looking at this. Tim From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 05 01:56:20 2011 Received: (at 8176) by debbugs.gnu.org; 5 Jul 2011 05:56:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdycO-0004DL-G5 for submit@debbugs.gnu.org; Tue, 05 Jul 2011 01:56:20 -0400 Received: from smtprelay-b22.telenor.se ([195.54.99.213]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdycM-0004D8-GL for 8176@debbugs.gnu.org; Tue, 05 Jul 2011 01:56:19 -0400 Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id 39FBBEA88F for <8176@debbugs.gnu.org>; Tue, 5 Jul 2011 07:56:12 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgBiACCnEk5V4S1kPGdsb2JhbABTiQqecgsBAQEBHhkNJYh8wz6GNgSXLotA X-IronPort-AV: E=Sophos;i="4.65,477,1304287200"; d="scan'208";a="203920826" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb2.telenor.se with ESMTP; 05 Jul 2011 07:56:11 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 3192A7FA05A; Tue, 5 Jul 2011 07:56:11 +0200 (CEST) Message-ID: <4E12A77B.10209@swipnet.se> Date: Tue, 05 Jul 2011 07:56:11 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Tim Cross Subject: Re: bug#8176: 24.0.50; GUI toolkit differences References: <8762ry8arr.fsf@rapttech.com.au> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 8176 Cc: Lars Magne Ingebrigtsen , 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) FWIW, this doesn't work under OSX/Nextstep either. Jan D. Tim Cross skrev 2011-07-05 02.00: > (defun tx-greet () >>> (interactive) >>> (message "Hello Tim!")) >>> >>> (defun tx-menu () >>> (interactive) >>> (define-key lisp-interaction-mode-map [menu-bar tx] >>> '(menu-item "TX Test" tx-greet))) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 05 02:02:26 2011 Received: (at 8176) by debbugs.gnu.org; 5 Jul 2011 06:02:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdyiI-0004MH-4n for submit@debbugs.gnu.org; Tue, 05 Jul 2011 02:02:26 -0400 Received: from mail-iy0-f172.google.com ([209.85.210.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QdyiG-0004M5-51 for 8176@debbugs.gnu.org; Tue, 05 Jul 2011 02:02:24 -0400 Received: by iye7 with SMTP id 7so5037838iye.3 for <8176@debbugs.gnu.org>; Mon, 04 Jul 2011 23:02:18 -0700 (PDT) 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:content-transfer-encoding; bh=eDH0HF8B6ovVtLej/BuyZHP5hZQrXPLI55aAn/NRVp8=; b=PUQSAuYu6c/PI6GJD8WLdF+CL/KxIU0XUtI/s5tLu/9WUqdj3iveMls7feJtTiDAiY BtSH+99YSq3XZUniLirlEN/Nvnb/RCaHlmUBcvITuQmcXukcA7DfSBc9btxaR46qqEcG /d4Oqny3FcNMS8CGDBmJ0rbRBu8LtlwHoQmrM= MIME-Version: 1.0 Received: by 10.231.6.23 with SMTP id 23mr6003514ibx.187.1309845738168; Mon, 04 Jul 2011 23:02:18 -0700 (PDT) Received: by 10.231.30.74 with HTTP; Mon, 4 Jul 2011 23:02:18 -0700 (PDT) In-Reply-To: <4E12A77B.10209@swipnet.se> References: <8762ry8arr.fsf@rapttech.com.au> <4E12A77B.10209@swipnet.se> Date: Tue, 5 Jul 2011 16:02:18 +1000 Message-ID: Subject: Re: bug#8176: 24.0.50; GUI toolkit differences From: Tim Cross To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8176 Cc: Lars Magne Ingebrigtsen , 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) No, As I understand it, it only works under Lucid and MS Windows. I confirmed the Lucid/X side of things and some others confirmed the windows version. Is OSX/Nextstep just using GTK+ under the hood or is it a completely different toolkit? Tim On Tue, Jul 5, 2011 at 3:56 PM, Jan Dj=E4rv wrote: > FWIW, this doesn't work under OSX/Nextstep either. > > =A0 =A0 =A0 =A0Jan D. > > > Tim Cross skrev 2011-07-05 02.00: >> >> (defun tx-greet () >>>> >>>> =A0 =A0(interactive) >>>> =A0 =A0(message "Hello Tim!")) >>>> >>>> =A0(defun tx-menu () >>>> =A0 =A0(interactive) >>>> =A0 =A0(define-key lisp-interaction-mode-map [menu-bar tx] >>>> =A0 =A0 =A0'(menu-item "TX Test" tx-greet))) > From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 05 04:48:56 2011 Received: (at 8176) by debbugs.gnu.org; 5 Jul 2011 08:48:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qe1JQ-0007yn-7q for submit@debbugs.gnu.org; Tue, 05 Jul 2011 04:48:56 -0400 Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qe1JN-0007ya-Qj for 8176@debbugs.gnu.org; Tue, 05 Jul 2011 04:48:54 -0400 Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id BEB84EAB05 for <8176@debbugs.gnu.org>; Tue, 5 Jul 2011 10:48:47 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmRtAJrPEk5V4S1kPGdsb2JhbABTiQqecwsBAQEBHhkNJYh6AsJDhjYEly4diyM X-IronPort-AV: E=Sophos;i="4.65,478,1304287200"; d="scan'208";a="26896720" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb3.telenor.se with ESMTP; 05 Jul 2011 10:48:47 +0200 Received: from [10.225.16.121] (unknown [193.45.43.33]) by coolsville.localdomain (Postfix) with ESMTPSA id 51FB07FA05A; Tue, 5 Jul 2011 10:48:46 +0200 (CEST) Message-ID: <4E12CFED.5040700@swipnet.se> Date: Tue, 05 Jul 2011 10:48:45 +0200 From: "Jan D." User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; sv-SE; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: Tim Cross Subject: Re: bug#8176: 24.0.50; GUI toolkit differences References: <8762ry8arr.fsf@rapttech.com.au> <4E12A77B.10209@swipnet.se> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 8176 Cc: Lars Magne Ingebrigtsen , 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) Tim Cross skrev 2011-07-05 08:02: > No, As I understand it, it only works under Lucid and MS Windows. I > confirmed the Lucid/X side of things and some others confirmed the > windows version. > > Is OSX/Nextstep just using GTK+ under the hood or is it a completely > different toolkit? It is totally different. Jan D. > > Tim > > On Tue, Jul 5, 2011 at 3:56 PM, Jan Dj=E4rv wrote: >> FWIW, this doesn't work under OSX/Nextstep either. >> >> Jan D. >> >> >> Tim Cross skrev 2011-07-05 02.00: >>> >>> (defun tx-greet () >>>>> >>>>> (interactive) >>>>> (message "Hello Tim!")) >>>>> >>>>> (defun tx-menu () >>>>> (interactive) >>>>> (define-key lisp-interaction-mode-map [menu-bar tx] >>>>> '(menu-item "TX Test" tx-greet))) >> From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 05 10:15:00 2011 Received: (at 8176) by debbugs.gnu.org; 5 Jul 2011 14:15:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qe6Oy-0008IG-3U for submit@debbugs.gnu.org; Tue, 05 Jul 2011 10:15:00 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qe6Ov-0008Hz-A4 for 8176@debbugs.gnu.org; Tue, 05 Jul 2011 10:14:58 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qe6Oj-0001jH-3H; Tue, 05 Jul 2011 16:14:45 +0200 From: Lars Magne Ingebrigtsen To: Tim Cross Subject: Re: 24.0.50; GUI toolkit differences In-Reply-To: (Tim Cross's message of "Tue, 5 Jul 2011 10:00:57 +1000") Date: Tue, 05 Jul 2011 16:14:36 +0200 Message-ID: References: <8762ry8arr.fsf@rapttech.com.au> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Joanna Newsom's _Have One On Me (2)_: "Go Long" X-Hashcash: 1:23:110705:8176@debbugs.gnu.org::yjDywIDtgCJikwJI:000000000000000000000000000000000000000009pI/ X-Hashcash: 1:23:110705:theophilusx@gmail.com::YVNhp/2rQWEa/6cU:000000000000000000000000000000000000000127sS MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1Qe6Oj-0001jH-3H X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1310480085.25505@Bj8iyXQzr+7AxaPKiQ/M7Q X-Spam-Status: No X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 8176 Cc: 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) Tim Cross writes: > My suggestion would be to add it to the elisp manual, possibly as a > footnote, in either section 22.17 or possibly 22.17.1. Something along > the lines that not all GUI toolkits are equal and some features or > behaviours available in one toolkit may not be available in another. > For example, GTK will not allow a top level menu button or action, > while Lucid and NS do. > > A tricky part in documenting this is getting consistency of terms. I'm > not sure if 'top level button or action' is really understood, but > basically it refers to a menu item on the top level menu bar which > performs an action other than to open a sub-menu. Could you suggest a paragraph for 22.17.1 that explains this problem? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 06 02:56:43 2011 Received: (at 8176) by debbugs.gnu.org; 6 Jul 2011 06:56:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeM2M-0002rs-PI for submit@debbugs.gnu.org; Wed, 06 Jul 2011 02:56:43 -0400 Received: from mail-iw0-f172.google.com ([209.85.214.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeM2K-0002rg-8q for 8176@debbugs.gnu.org; Wed, 06 Jul 2011 02:56:41 -0400 Received: by iwn39 with SMTP id 39so5955663iwn.3 for <8176@debbugs.gnu.org>; Tue, 05 Jul 2011 23:56:34 -0700 (PDT) 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:content-transfer-encoding; bh=L0LTcFM38T09bcjMCGGKDy9bZz+aRS3xDjQcnd8pCt0=; b=Kg+KJ7fIuCBzjlo7/m9qN7pfsUPVhC/kxQnqkLC3WfyoaMhW7MAs9+opZDI/FJWe6R yJVYVM3f+lb7jAZdEjVy4s0zNjA1ZOYzdR5hZhkSWdkRgWl6BWJFTQqVD4pyQ1FQ39N8 OsEE9GvPGs0fMUFbnDYymukg9O4G1f/vRxQ6E= MIME-Version: 1.0 Received: by 10.231.67.145 with SMTP id r17mr7365790ibi.176.1309935394442; Tue, 05 Jul 2011 23:56:34 -0700 (PDT) Received: by 10.231.39.140 with HTTP; Tue, 5 Jul 2011 23:56:34 -0700 (PDT) In-Reply-To: References: <8762ry8arr.fsf@rapttech.com.au> Date: Wed, 6 Jul 2011 16:56:34 +1000 Message-ID: Subject: Re: 24.0.50; GUI toolkit differences From: Tim Cross To: Lars Magne Ingebrigtsen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8176 Cc: 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) On Wed, Jul 6, 2011 at 12:14 AM, Lars Magne Ingebrigtsen w= rote: > Tim Cross writes: > >> My suggestion would be to add it to the elisp manual, possibly as a >> footnote, in either section 22.17 or possibly 22.17.1. Something along >> the lines that not all GUI toolkits are equal and some features or >> behaviours available in one toolkit may not be available in another. >> For example, GTK will not allow a top level menu button or action, >> while Lucid and NS do. >> >> A tricky part in documenting this is getting consistency of terms. I'm >> not sure if 'top level button or action' is really understood, but >> basically it refers to a menu item on the top level menu bar which >> performs an action other than to open a sub-menu. > > Could you suggest a paragraph for 22.17.1 that explains this problem? > > -- > (domestic pets only, the antidote for overdose, milk.) > =A0bloggy blog http://lars.ingebrigtsen.no/ > I will try to draft something in the next few days. Tim From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 06 03:02:52 2011 Received: (at 8176) by debbugs.gnu.org; 6 Jul 2011 07:02:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeM8K-00030u-5E for submit@debbugs.gnu.org; Wed, 06 Jul 2011 03:02:52 -0400 Received: from mail-iy0-f172.google.com ([209.85.210.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeM8G-00030Y-Cw for 8176@debbugs.gnu.org; Wed, 06 Jul 2011 03:02:49 -0400 Received: by iye7 with SMTP id 7so5961122iye.3 for <8176@debbugs.gnu.org>; Wed, 06 Jul 2011 00:02:42 -0700 (PDT) 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:content-transfer-encoding; bh=HFlhCQr6TEOR6erWDhOy65jczYJpaSGeIGwc/LoytYA=; b=Yr4y19GlRxcfFitpUMNPgr5xH5IGHSu8MhVk7WW2oKDrY1hCfIXLBgaWx7G4Q4lRLE ce4xfSfbNX+lDj5jCdoZ//eCPuR3EbZrz02oWpDqeo8s8u3yx1l6vGOVDiVCFB8Ra8Fx gfPNfS05rXLMoDcEX7I91Q6jv88uNAdFjyCbY= MIME-Version: 1.0 Received: by 10.231.67.145 with SMTP id r17mr7370635ibi.176.1309935762469; Wed, 06 Jul 2011 00:02:42 -0700 (PDT) Received: by 10.231.39.140 with HTTP; Wed, 6 Jul 2011 00:02:42 -0700 (PDT) In-Reply-To: <4E12CFED.5040700@swipnet.se> References: <8762ry8arr.fsf@rapttech.com.au> <4E12A77B.10209@swipnet.se> <4E12CFED.5040700@swipnet.se> Date: Wed, 6 Jul 2011 17:02:42 +1000 Message-ID: Subject: Re: bug#8176: 24.0.50; GUI toolkit differences From: Tim Cross To: "Jan D." Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8176 Cc: Lars Magne Ingebrigtsen , 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) On Tue, Jul 5, 2011 at 6:48 PM, Jan D. wrote: > Tim Cross skrev 2011-07-05 08:02: >> >> No, As I understand it, it only works under Lucid =A0and MS Windows. I >> confirmed the Lucid/X side of things and some others confirmed the >> windows version. >> >> Is OSX/Nextstep just using GTK+ under the hood or is it a completely >> different toolkit? > > It is totally different. > Good to know. It was suggested that this code failing was evidence of a bug in GTK+, though I feel it is more evidence of a design decision wrt GUI philosophy rather than a bug. Having another toolkit which appears to adopt the same/similar convention of not supporting top level 'action' or 'buttons' in menus tends to support the design decision stance rather than seeing it as a bug. Tim From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 06 11:13:09 2011 Received: (at 8176) by debbugs.gnu.org; 6 Jul 2011 15:13:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeTmn-0001Kx-4b for submit@debbugs.gnu.org; Wed, 06 Jul 2011 11:13:09 -0400 Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeTmk-0001KQ-B6 for 8176@debbugs.gnu.org; Wed, 06 Jul 2011 11:13:07 -0400 Received: by pvh18 with SMTP id 18so28600pvh.3 for <8176@debbugs.gnu.org>; Wed, 06 Jul 2011 08:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=QzTsqFhywlh/ILUk2Tl81Y1HTeCD7sOlhvtX2/1PxlM=; b=FyDDHTifeiwLxsEAj97x4QfWVdvqWQAnsPtzYe7uR4UEMteTTuaOCTPjpeDL/Kqc2X az2f9V3TUj0pjz+gXhDxYRaZN0i8f4qhni+lybwlpCFQ4FuT5ozwnFAgIAd84zSaZEZZ 2Ui+gZHleLTX6KSqidY5Y5PwsBfoJE86RlKVg= Received: by 10.68.55.135 with SMTP id s7mr10602786pbp.123.1309965179859; Wed, 06 Jul 2011 08:12:59 -0700 (PDT) Received: from home.jasonrumney.net ([180.75.18.65]) by mx.google.com with ESMTPS id x2sm5003827pbn.77.2011.07.06.08.12.54 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Jul 2011 08:12:57 -0700 (PDT) Received: by home.jasonrumney.net (Postfix, from userid 1000) id 0A9DFBB5; Wed, 6 Jul 2011 23:12:48 +0800 (MYT) From: Jason Rumney To: Tim Cross Subject: Re: bug#8176: 24.0.50; GUI toolkit differences References: <8762ry8arr.fsf@rapttech.com.au> Date: Wed, 06 Jul 2011 23:12:48 +0800 In-Reply-To: (Tim Cross's message of "Tue, 5 Jul 2011 10:00:57 +1000") Message-ID: <87box7sarz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8176 Cc: Lars Magne Ingebrigtsen , 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) Tim Cross writes: >>> The following code was evaluated within the scratch buffer. I confirmed >>> it works fine under emacs 24 built with lucid, but fails to work when >>> built with GTK2+. Others reported it worked find under win32, but failed >>> on ns. >>> >>> (defun tx-greet () >>> =C2=A0 (interactive) >>> =C2=A0 (message "Hello Tim!")) >>> >>> (defun tx-menu () >>> =C2=A0 (interactive) >>> =C2=A0 (define-key lisp-interaction-mode-map [menu-bar tx] >>> =C2=A0 =C2=A0 '(menu-item "TX Test" tx-greet))) I think the situation on W32 is more complex (but I don't have Windows in front of me to check for sure). I think the above will work if the command is in a menu-bar menu, but not in a popup menu. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 23:34:24 2011 Received: (at 8176) by debbugs.gnu.org; 12 Jul 2011 03:34:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgTjs-0002FM-5w for submit@debbugs.gnu.org; Mon, 11 Jul 2011 23:34:24 -0400 Received: from mail-iy0-f172.google.com ([209.85.210.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgTjq-0002F8-2I for 8176@debbugs.gnu.org; Mon, 11 Jul 2011 23:34:22 -0400 Received: by iye7 with SMTP id 7so4295913iye.3 for <8176@debbugs.gnu.org>; Mon, 11 Jul 2011 20:34:16 -0700 (PDT) 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:content-transfer-encoding; bh=BS8aW+an6clo8GjrFFz7j8IiI+I8nN9m+/+FrjacLjw=; b=mxZeUC1kag28JKDEStQgVM+N9GOW7d7c2t4nvcBseK/Rexe8AZ8LIlOCPvTpWYNy30 sdqks+JQh1DvD5Pu5g9HNR1EgZgceyMEtn6QFBnD47aLw/kFNooWM5wRBGjsZ3VO0WjP pXZ21eEYF4PDeeo90WDpqVANI5Sd2gW4ja/2g= MIME-Version: 1.0 Received: by 10.43.134.72 with SMTP id ib8mr1451613icc.94.1310441655957; Mon, 11 Jul 2011 20:34:15 -0700 (PDT) Received: by 10.231.15.3 with HTTP; Mon, 11 Jul 2011 20:34:15 -0700 (PDT) In-Reply-To: References: <8762ry8arr.fsf@rapttech.com.au> Date: Tue, 12 Jul 2011 13:34:15 +1000 Message-ID: Subject: Re: 24.0.50; GUI toolkit differences From: Tim Cross To: Lars Magne Ingebrigtsen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8176 Cc: 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) OK, here is my attempt to draft an addition for 12.17.1 which may help highlight the fact that not all toolkits are equivalent and what is possible in some toolkits may not be possible in another. "It should be noted that not all GUI toolkits used by emacs are equivalent. Some toolkits have specific constraints on how they are used. These constraints may be due to technical limitations of the toolkit or they may represent deliberate design choices. It is possible to implement elisp which works as expected under one toolkit and either does not work under another or gives unexpected results. An exmaple of this is the use of menu actions or buttons in a top level menu-bar. The following code will work in a top level menu when emacs is built with either the Lucid X toolkit or on MS Windows, but will fail to work correctly when emacs is built against the GTK+ or NextStep toolkits. Under these toolkits, the code compiles and the menu item appears in the top level menu, but clicking on the item fails to execute the associated action. (defun menu-action-greet () (interactive) (message "Hello Emacs User!")) (defun top-level-menu () (interactive) (define-key lisp-interaction-mode-map [menu-bar m] '(menu-item "Action Button" menu-action-greet))) On Wed, Jul 6, 2011 at 4:56 PM, Tim Cross wrote: > On Wed, Jul 6, 2011 at 12:14 AM, Lars Magne Ingebrigtsen = wrote: >> Tim Cross writes: >> >>> My suggestion would be to add it to the elisp manual, possibly as a >>> footnote, in either section 22.17 or possibly 22.17.1. Something along >>> the lines that not all GUI toolkits are equal and some features or >>> behaviours available in one toolkit may not be available in another. >>> For example, GTK will not allow a top level menu button or action, >>> while Lucid and NS do. >>> >>> A tricky part in documenting this is getting consistency of terms. I'm >>> not sure if 'top level button or action' is really understood, but >>> basically it refers to a menu item on the top level menu bar which >>> performs an action other than to open a sub-menu. >> >> Could you suggest a paragraph for 22.17.1 that explains this problem? >> >> -- >> (domestic pets only, the antidote for overdose, milk.) >> =A0bloggy blog http://lars.ingebrigtsen.no/ >> > > I will try to draft something in the next few days. > > Tim > From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 15 12:33:50 2011 Received: (at 8176) by debbugs.gnu.org; 15 Jul 2011 16:33:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhlKk-0001lu-Fv for submit@debbugs.gnu.org; Fri, 15 Jul 2011 12:33:50 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhlKe-0001ld-88 for 8176@debbugs.gnu.org; Fri, 15 Jul 2011 12:33:44 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QhlKO-0000l6-Ib; Fri, 15 Jul 2011 18:33:24 +0200 From: Lars Magne Ingebrigtsen To: Tim Cross Subject: Re: 24.0.50; GUI toolkit differences In-Reply-To: (Tim Cross's message of "Tue, 12 Jul 2011 13:34:15 +1000") Date: Fri, 15 Jul 2011 18:33:10 +0200 Message-ID: References: <8762ry8arr.fsf@rapttech.com.au> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUAAAAAAAMFBQ0BAwkA AAS6fXwICA8AAQY2Eh8AAQcETrc+AAACLElEQVQ4jW2TQaucMBDHtS286wrC0muWyuuxpuySWy2B 4AcQPG9pcG/dViq5FpTc80Dm23YmE2UfvCAK+fn/z0wyk2VxHQqtx6J0YSwO+VEGKbNDBLnW5t44 UOpeFK0iwKsw07ROgBtrOQEqTgmUZpwAVwBoDEi1W5VmcmFFKwDtULeBvCxNCy8QCIB8BSYHawTw CLK8+W5p3eB8sp/JK/sWy8ibT7PvfbeA1h9lCLJmgGXg79equsJLcwRMqo5WT7Xd1lWcRgJc4O8q bQ8LvkTMN4I6gcFHUUyYQRJ470liHCQgNgETtqLgu1PXdf1iHYRHIOzz3NFajKN0dythh7jf9SOG EAxIIgQLuu4GW3COkQQIMKvTG6C/QXiV7gNQtXgD+EvYgierFNyTk411kGKwlkFvEdR2L3D2SwRU uSTQICCjrvd+ToAVB1aQ+bxbYYyGwbCDbsE7r7fgHg8We6FnIOXZxnTPP8mCIH0IVDZ2yV/O3/P7 HysKBO9m3pq7GXU/GLxPnTgNlDS1NV1sCk4DovH32TuAF8fgnh94cmIr0By0j4q8OPoEFDBo0uSU LajJKYlTFR4VZenU2rT7eFQ7wJNbtYtjGCL48yWCo8O51DjIrKmr7Cun+zRNsDYmqJUEtRAbKPUR VoxzWUmBXZ7dN2CwN5TCdFsVwaZAF+XwJpSKV26zXww0HoQasQ4sPdTYs5wsPkZCi+nWynH07RA/ OLhcsAwJ1AqY1X/rL0NxGDWE/wAAAABJRU5ErkJggg== X-Now-Playing: Joni Mitchell's _Shadows And Light (1)_: "Edith And The Kingpin" X-Hashcash: 1:23:110715:theophilusx@gmail.com::NI6/oDnDbYTQw9w7:0000000000000000000000000000000000000000li8p X-Hashcash: 1:23:110715:8176@debbugs.gnu.org::01tTbuCDJExtNDyW:00000000000000000000000000000000000000001Bsbh MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1QhlKO-0000l6-Ib X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311352405.06749@LFDUxqQOiRDZB+2deUPx+w X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 8176 Cc: 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Tim Cross writes: > OK, here is my attempt to draft an addition for 12.17.1 which may help > highlight the fact that not all toolkits are equivalent and what is > possible in some toolkits may not be possible in another. What node is this for? That is, what's the name of the node? > "It should be noted that not all GUI toolkits used by emacs are > equivalent. Some toolkits have specific constraints on how they are > used. These constraints may be due to technical limitations of the > toolkit or they may represent deliberate design choices. It is > possible to implement elisp which works as expected under one toolkit > and either does not work under another or gives unexpected results. > > An exmaple of this is the use of menu actions or buttons in a top > level menu-bar. The following code will work in a top level menu when > emacs is built with either the Lucid X toolkit or on MS Windows, but > will fail to work correctly when emacs is built against the GTK+ or > NextStep toolkits. Under these toolkits, the code compiles and the > menu item appears in the top level menu, but clicking on the item > fails to execute the associated action. > > (defun menu-action-greet () > (interactive) > (message "Hello Emacs User!")) > > (defun top-level-menu () > (interactive) > (define-key lisp-interaction-mode-map [menu-bar m] > '(menu-item "Action Button" menu-action-greet))) This looks reasonable to me (modulo a few typos :-). A change of this size needs copyright assignment to the FSF, though. Do you have such paperwork on file? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 15 19:51:11 2011 Received: (at 8176) by debbugs.gnu.org; 15 Jul 2011 23:51:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhsA3-0006le-8C for submit@debbugs.gnu.org; Fri, 15 Jul 2011 19:51:11 -0400 Received: from mail-iw0-f172.google.com ([209.85.214.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhsA0-0006lT-R0 for 8176@debbugs.gnu.org; Fri, 15 Jul 2011 19:51:09 -0400 Received: by iwn39 with SMTP id 39so1487516iwn.3 for <8176@debbugs.gnu.org>; Fri, 15 Jul 2011 16:51:03 -0700 (PDT) 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:content-transfer-encoding; bh=opZu97M/j7tCLMq0dkXYF7gdCi+YmG799uEnm3t/Hw8=; b=h1+5z4Z2nNFyfhbDiMKR+EaW2vxhfb86mOow+81lK/aJ9aXmKmQ7IGIfIL3UWtMqsL DIlp7bwsqMXV2G9sTYPW+Q8UG74X4hoBlaMu86Yql0nQ4ivv4nAMDmsIGTglMEMU63uw wFy0/J+b3DmB4hzwgjyZHGH9dDL0Bv6VwzY9Q= MIME-Version: 1.0 Received: by 10.231.61.7 with SMTP id r7mr3487746ibh.151.1310773863173; Fri, 15 Jul 2011 16:51:03 -0700 (PDT) Received: by 10.231.15.3 with HTTP; Fri, 15 Jul 2011 16:51:03 -0700 (PDT) In-Reply-To: References: <8762ry8arr.fsf@rapttech.com.au> Date: Sat, 16 Jul 2011 09:51:03 +1000 Message-ID: Subject: Re: 24.0.50; GUI toolkit differences From: Tim Cross To: Lars Magne Ingebrigtsen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 8176 Cc: 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) On Sat, Jul 16, 2011 at 2:33 AM, Lars Magne Ingebrigtsen w= rote: > Tim Cross writes: > >> OK, here is my attempt to draft an addition for 12.17.1 which may help >> highlight the fact that not all toolkits are equivalent and what is >> possible in some toolkits may not be possible in another. > > What node is this for? =A0That is, what's the name of the node? > 22.17.1 Defining Menus >> "It should be noted that not all GUI toolkits used by emacs are >> equivalent. Some toolkits have specific constraints on how they are >> used. These constraints may be due to technical limitations of the >> toolkit or they may represent deliberate design choices. It is >> possible to implement elisp which works as expected under one toolkit >> and either does not work under another or gives unexpected results. >> >> An exmaple of this is the use of menu actions or buttons in a top >> level menu-bar. The following code will work in a top level menu when >> emacs is built with either the Lucid X toolkit or on MS Windows, but >> will fail to work correctly when emacs is built against the GTK+ or >> NextStep toolkits. Under these toolkits, the code compiles and the >> menu item appears in the top level menu, but clicking on the item >> fails to execute the associated action. >> >> (defun menu-action-greet () >> =A0 =A0(interactive) >> =A0 =A0(message "Hello Emacs User!")) >> >> (defun top-level-menu () >> =A0 (interactive) >> =A0 (define-key lisp-interaction-mode-map [menu-bar m] >> =A0 =A0 =A0'(menu-item "Action Button" menu-action-greet))) > > This looks reasonable to me (modulo a few typos :-). =A0A change of this > size needs copyright assignment to the FSF, though. =A0Do you have such > paperwork on file? > No From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 16 13:47:42 2011 Received: (at 8176) by debbugs.gnu.org; 16 Jul 2011 17:47:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qi8xp-0008LE-RM for submit@debbugs.gnu.org; Sat, 16 Jul 2011 13:47:42 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qi8xo-0008L3-2n for 8176@debbugs.gnu.org; Sat, 16 Jul 2011 13:47:40 -0400 Received: from localhost ([127.0.0.1]:48716) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qi8xg-0006nq-DU; Sat, 16 Jul 2011 13:47:32 -0400 From: Glenn Morris To: Tim Cross Subject: Re: bug#8176: 24.0.50; GUI toolkit differences References: <8762ry8arr.fsf@rapttech.com.au> X-Spook: BLU-114/B high security CBNRC Watergate CDMA freedom Hugo X-Ran: h1XY#)5h(_'v4Y>M?Yf*eNps^]kDN=ls?f$h_TI`{msh10p)R7`@7q=iq#i(pv; X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 16 Jul 2011 13:47:31 -0400 Message-ID: <7gzkkenmmk.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 8176 Cc: Lars Magne Ingebrigtsen , 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) I think this ought to be much shorter; as a side effect it can then be a "tiny change" that does not need an assignment. Eg something like: Note that the various toolkits with which you can build Emacs do not all support the same set of features for menus. Some code works as expected with one toolkit, but not under another. For example, menu actions or buttons in a top-level menu-bar. The following works with the Lucid toolkit or on MS Windows, but not with GTK or Nextstep, where clicking on the item has no effect. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 16 14:05:31 2011 Received: (at 8176) by debbugs.gnu.org; 16 Jul 2011 18:05:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qi9F5-0000Ig-Fq for submit@debbugs.gnu.org; Sat, 16 Jul 2011 14:05:31 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qi9F3-0000IM-Ij for 8176@debbugs.gnu.org; Sat, 16 Jul 2011 14:05:30 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qi9Er-0002xN-OG; Sat, 16 Jul 2011 20:05:17 +0200 From: Lars Magne Ingebrigtsen To: Glenn Morris Subject: Re: bug#8176: 24.0.50; GUI toolkit differences In-Reply-To: <7gzkkenmmk.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sat, 16 Jul 2011 13:47:31 -0400") Date: Sat, 16 Jul 2011 20:04:54 +0200 Message-ID: References: <8762ry8arr.fsf@rapttech.com.au> <7gzkkenmmk.fsf@fencepost.gnu.org> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Joni Mitchell's _Wild Things Run Fast_: "Love" X-Hashcash: 1:23:110716:rgm@gnu.org::NoVhmdevWR9As9Yz:0000002bDr X-Hashcash: 1:23:110716:theophilusx@gmail.com::1zVb7RgyHMOw48Vg:0000000000000000000000000000000000000000AipP X-Hashcash: 1:23:110716:8176@debbugs.gnu.org::jBw5NDdDyeULXA3m:00000000000000000000000000000000000000000XPZv MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1Qi9Er-0002xN-OG X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311444317.83761@1p1KL9KsW2kg0cZMW4cuDg X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 8176 Cc: Tim Cross , 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Glenn Morris writes: > I think this ought to be much shorter; as a side effect it can then be a > "tiny change" that does not need an assignment. Eg something like: > > Note that the various toolkits with which you can build Emacs do > not all support the same set of features for menus. Some code works > as expected with one toolkit, but not under another. > > For example, menu actions or buttons in a top-level menu-bar. > The following works with the Lucid toolkit or on MS Windows, but > not with GTK or Nextstep, where clicking on the item has no effect. > > I've now added this (to a new node). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 16 14:05:28 2011 Received: (at control) by debbugs.gnu.org; 16 Jul 2011 18:05:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qi9F1-0000IT-8J for submit@debbugs.gnu.org; Sat, 16 Jul 2011 14:05:27 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qi9Ey-0000IE-9y for control@debbugs.gnu.org; Sat, 16 Jul 2011 14:05:25 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qi9Em-0002xB-Oj for control@debbugs.gnu.org; Sat, 16 Jul 2011 20:05:12 +0200 Date: Sat, 16 Jul 2011 20:05:12 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #8176 X-MailScanner-ID: 1Qi9Em-0002xB-Oj X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311444312.93701@tFmlAbT5QWu3nMA8YN5Hdw X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) tags 8176 fixed close 8176 24.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 16 14:14:11 2011 Received: (at 8176) by debbugs.gnu.org; 16 Jul 2011 18:14:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qi9NS-0000VL-NE for submit@debbugs.gnu.org; Sat, 16 Jul 2011 14:14:11 -0400 Received: from mail-out.m-online.net ([212.18.0.9]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qi9NR-0000VB-Jh for 8176@debbugs.gnu.org; Sat, 16 Jul 2011 14:14:10 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 1A1811C01A06; Sat, 16 Jul 2011 20:14:04 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 0EED91C0005C; Sat, 16 Jul 2011 20:14:04 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id QkP4mtnPbZb9; Sat, 16 Jul 2011 20:14:03 +0200 (CEST) Received: from igel.home (ppp-93-104-132-93.dynamic.mnet-online.de [93.104.132.93]) by mail.mnet-online.de (Postfix) with ESMTP; Sat, 16 Jul 2011 20:14:03 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id DEF4BCA293; Sat, 16 Jul 2011 20:14:02 +0200 (CEST) From: Andreas Schwab To: Glenn Morris Subject: Re: bug#8176: 24.0.50; GUI toolkit differences References: <8762ry8arr.fsf@rapttech.com.au> <7gzkkenmmk.fsf@fencepost.gnu.org> X-Yow: Uh-oh -- WHY am I suddenly thinking of a VENERABLE religious leader frolicking on a FORT LAUDERDALE weekend? Date: Sat, 16 Jul 2011 20:14:02 +0200 In-Reply-To: <7gzkkenmmk.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sat, 16 Jul 2011 13:47:31 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8176 Cc: Lars Magne Ingebrigtsen , Tim Cross , 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Glenn Morris writes: > For example, menu actions or buttons in a top-level menu-bar. This sentence no verb. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 16 14:32:16 2011 Received: (at 8176) by debbugs.gnu.org; 16 Jul 2011 18:32:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qi9ex-0001lv-Up for submit@debbugs.gnu.org; Sat, 16 Jul 2011 14:32:16 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qi9ev-0001li-FB for 8176@debbugs.gnu.org; Sat, 16 Jul 2011 14:32:14 -0400 Received: from localhost ([127.0.0.1]:44833) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qi9ep-0001H9-Ie; Sat, 16 Jul 2011 14:32:07 -0400 From: Glenn Morris To: Andreas Schwab Subject: Re: bug#8176: 24.0.50; GUI toolkit differences References: <8762ry8arr.fsf@rapttech.com.au> <7gzkkenmmk.fsf@fencepost.gnu.org> X-Spook: JPL MILSATCOM kilo class SRI BATF import $400 million in X-Ran: Q~Np,F?IL!v@G8%ZXYOKzEo29L|+^:.:Nl>X,Sk9v6R:bsHW#s]YJer;d_qHNFKlBn.iVl X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 16 Jul 2011 14:32:07 -0400 In-Reply-To: (Andreas Schwab's message of "Sat, 16 Jul 2011 20:14:02 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: 8176 Cc: Lars Magne Ingebrigtsen , Tim Cross , 8176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.8 (----) Andreas Schwab wrote: >> For example, menu actions or buttons in a top-level menu-bar. > > This sentence no verb. s/For example,/One example is/ From unknown Sat Aug 16 00:30:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 14 Aug 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator