From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.bugs Subject: bug#8176: 24.0.50; GUI toolkit differences Date: Tue, 12 Jul 2011 13:34:15 +1000 Message-ID: References: <8762ry8arr.fsf@rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310441737 30508 80.91.229.12 (12 Jul 2011 03:35:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2011 03:35:37 +0000 (UTC) Cc: 8176@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 12 05:35:32 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QgTky-0007X8-9W for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 05:35:32 +0200 Original-Received: from localhost ([::1]:53467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgTkw-00035D-Qa for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 23:35:30 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgTka-00034i-8k for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 23:35:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgTkV-0004Vy-4H for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 23:35:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgTkU-0004Vq-Pk for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 23:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QgTkT-0002G8-Nb; Mon, 11 Jul 2011 23:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tim Cross Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jul 2011 03:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8176 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8176-submit@debbugs.gnu.org id=B8176.13104416658643 (code B ref 8176); Tue, 12 Jul 2011 03:35:01 +0000 Original-Received: (at 8176) by debbugs.gnu.org; 12 Jul 2011 03:34:25 +0000 Original-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 Original-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 Original-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= Original-Received: by 10.43.134.72 with SMTP id ib8mr1451613icc.94.1310441655957; Mon, 11 Jul 2011 20:34:15 -0700 (PDT) Original-Received: by 10.231.15.3 with HTTP; Mon, 11 Jul 2011 20:34:15 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 11 Jul 2011 23:35:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:48691 Archived-At: 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 >