From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Steven Tamm Newsgroups: gmane.emacs.devel Subject: Mac OS X Popup & Hierarchical Menu Patch Date: Sun, 22 Dec 2002 15:17:17 -0800 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <8315FBB7-1603-11D7-9BD9-00039390AB82@mac.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v551) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1040599095 16426 80.91.224.249 (22 Dec 2002 23:18:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 22 Dec 2002 23:18:15 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18QFMM-0004Gn-00 for ; Mon, 23 Dec 2002 00:18:14 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18QFP9-0007Iu-00 for ; Mon, 23 Dec 2002 00:21:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18QFLl-0004Tj-03 for emacs-devel@quimby.gnus.org; Sun, 22 Dec 2002 18:17:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18QFLW-0004Pr-00 for emacs-devel@gnu.org; Sun, 22 Dec 2002 18:17:22 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18QFLU-0004LW-00 for emacs-devel@gnu.org; Sun, 22 Dec 2002 18:17:21 -0500 Original-Received: from smtpout.mac.com ([17.250.248.88]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18QFLT-0004HS-00 for emacs-devel@gnu.org; Sun, 22 Dec 2002 18:17:19 -0500 Original-Received: from asmtp02.mac.com (asmtp02-qfe3 [10.13.10.66]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id gBMNHHHl022268 for ; Sun, 22 Dec 2002 15:17:18 -0800 (PST) Original-Received: from mac.com ([12.236.43.16]) by asmtp02.mac.com (Netscape Messaging Server 4.15) with ESMTP id H7JNCT00.V3P for ; Sun, 22 Dec 2002 15:17:17 -0800 Original-To: emacs-devel@gnu.org X-Mailer: Apple Mail (2.551) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10320 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10320 I just checked a change in that changes the way menus work on the carbon port of OSX. There's an outstanding support request #101602 to fix the "broken" popup menus on Mac OS X (Carbon). The current release does not have hierarchical menus in the popups; instead modeling them using an "indentation scheme". There were a lot of off by one errors, and I couldn't figure out a good way to fix it because the menu item counting scheme would be radically different if the popup menu has a hierarchical menu or not. I decided to fix it by creating real hierarchical menus; this also extends to the main menu bar. This should standardize the behavior of menu items to those of the other window systems, and it seems to work. I would invite other people to check the code and test it out. Thanks, -Steven