From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Derrell Piper Newsgroups: gmane.emacs.bugs Subject: bug#7030: 24.0.50; ns menus are all blank Date: Mon, 13 Sep 2010 12:25:05 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1284406863 10742 80.91.229.12 (13 Sep 2010 19:41:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Sep 2010 19:41:03 +0000 (UTC) To: 7030@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 13 21:41:01 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1OvEth-0006yY-36 for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Sep 2010 21:41:01 +0200 Original-Received: from localhost ([127.0.0.1]:34777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvEtg-0002et-F5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Sep 2010 15:41:00 -0400 Original-Received: from [140.186.70.92] (port=44383 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvEtY-0002eF-Do for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 15:40:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvEtW-0001Z9-HV for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 15:40:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48814) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvEtW-0001Z5-Fp for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 15:40:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OvEdG-0006WT-E7; Mon, 13 Sep 2010 15:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Derrell Piper Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Sep 2010 19:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7030 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128440579425058 (code B ref -1); Mon, 13 Sep 2010 19:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Sep 2010 19:23:14 +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 1OvEcT-0006W7-GS for submit@debbugs.gnu.org; Mon, 13 Sep 2010 15:23:13 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvEcR-0006W2-RW for submit@debbugs.gnu.org; Mon, 13 Sep 2010 15:23:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvEeY-0007ev-Qq for submit@debbugs.gnu.org; Mon, 13 Sep 2010 15:25:24 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:36117) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvEeY-0007er-NH for submit@debbugs.gnu.org; Mon, 13 Sep 2010 15:25:22 -0400 Original-Received: from [140.186.70.92] (port=57775 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvEeW-0004Cg-M7 for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 15:25:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvEeU-0007eM-TT for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 15:25:20 -0400 Original-Received: from mail.yoyodyne.com ([204.87.183.39]:62212) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OvEeU-0007dy-0H for bug-gnu-emacs@gnu.org; Mon, 13 Sep 2010 15:25:18 -0400 Original-Received: from [192.168.1.106] by Mail.Yoyodyne.COM via Internet ; Mon, 13 Sep 2010 12:25:09 PDT X-Mailer: Apple Mail (2.1081) 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, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 13 Sep 2010 15:24:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40140 Archived-At: [10.6.4, Xcode 3.2.4, MacOSX10.6.sdk] Somewhere along the line, the version of 23.1 I had built for Snow Leopard started showing me blank menus for everything. The menu items are present in the menu bar, but all blank. If you click enough on a menu item, you can usually get it to appear. Once it does appear, it stays for a while, but can go away later. So I upgraded to the current trunk from bazaar and the problem's still happening there too. Imperically, the following patch to nsmenu.m seems to fix this problem: =3D=3D=3D modified file 'src/nsmenu.m' --- src/nsmenu.m 2010-08-11 12:34:46 +0000 +++ src/nsmenu.m 2010-09-13 19:04:37 +0000 @@ -568,18 +568,14 @@ NSEvent *event; if (!FRAME_LIVE_P (frame)) return; + /* Don't try this if from an event picked up asynchronously, + as lots of lisp evaluation happens in ns_update_menubar. */ + if (handling_signal !=3D 0) + return; event =3D [[FRAME_NS_VIEW (frame) window] currentEvent]; - /* HACK: Cocoa/Carbon will request update on every keystroke - via IsMenuKeyEvent -> CheckMenusForKeyEvent. These are not needed - since key equivalents are handled through emacs. - On Leopard, even keystroke events generate SystemDefined events, = but - their subtype is 8. */ - if ([event type] !=3D NSSystemDefined || [event subtype] =3D=3D 8 - /* Also, don't try this if from an event picked up = asynchronously, - as lots of lisp evaluation happens in ns_update_menubar. */ - || handling_signal !=3D 0) - return; /*fprintf (stderr, "Updating menu '%s'\n", [[self title] UTF8String]); = NSLog (@"%@\n", event); */ + if ([event type] !=3D NSApplicationDefined) + return; ns_update_menubar (frame, 1, self); } ...however, I'm not familiar enough with this code (or with NSEvent) to be sure that this fix is the correct one. With this patch, the menus all function and nothing untoward is getting logged to /var/log/system. I have not tested this on prior versions of OS X, nor on GNUstep. In GNU Emacs 24.0.50.14 (x86_64-apple-darwin10.4.0, NS = apple-appkit-1038.32) of 2010-09-13 on fluffy.local Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: ObjC/l Minor modes in effect: tooltip-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t abbrev-mode: t Recent input: i s SPC a SPC v e r s i o n=20 SPC b u i l t SPC w i t h SPC =20 =20 =20 =20 =20 =20 C-p=20 C-a C-o s-v C-a C-d [ C-e [=20 ] C-n C-n C-p C-f C-f C-f C-f=20 C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f=20 C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f=20 C-f C-f C-f C-f C-f C-f C-f C-f C-b C-b C-b C-b C-b=20 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b=20 C-b C-b C-j C-j C-j C-j ESC q C-n C-e SPC SPC I t '=20 s SPC p r e s e n t SPC i n SPC t h e SPC a p p p =20 l i c a t i o n SPC m e n u S-SPC ( " E m a =20 b u=20 t SPC =20 a s SPC a SPC h e i r a r =20 =20 b u t SPC =20 , SPC=20 b u t SPC b l a n k . C-p C-n C-c C-c y C-p C-p C-p=20 C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p=20 C-p C-p C-a C-SPC C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n =20 M-x r e p r o t =20 o r t Recent messages: Auto-saving...done Mark set No closing parenthesis found Auto-saving...done Send this bug report to the Emacs maintainers? y Sending... Sending via mail... Sending...done Unable to load color "dark cyan" Mark set Load-path shadows: ~/src/el/custom hides = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/custom ~/src/el/xscheme hides = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/= xscheme = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/= cc-vars hides /Users/ddp/src/el/cc-mode-5.31.3/cc-vars = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/= cc-styles hides /Users/ddp/src/el/cc-mode-5.31.3/cc-styles = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/= cc-mode hides /Users/ddp/src/el/cc-mode-5.31.3/cc-mode = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/= cc-menus hides /Users/ddp/src/el/cc-mode-5.31.3/cc-menus = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/= cc-langs hides /Users/ddp/src/el/cc-mode-5.31.3/cc-langs = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/= cc-fonts hides /Users/ddp/src/el/cc-mode-5.31.3/cc-fonts = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/= cc-engine hides /Users/ddp/src/el/cc-mode-5.31.3/cc-engine = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/= cc-defs hides /Users/ddp/src/el/cc-mode-5.31.3/cc-defs = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/= cc-compat hides /Users/ddp/src/el/cc-mode-5.31.3/cc-compat = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/= cc-cmds hides /Users/ddp/src/el/cc-mode-5.31.3/cc-cmds = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/= cc-bytecomp hides /Users/ddp/src/el/cc-mode-5.31.3/cc-bytecomp = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/= cc-awk hides /Users/ddp/src/el/cc-mode-5.31.3/cc-awk = /Users/ddp/src/trunk/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/= cc-align hides /Users/ddp/src/el/cc-mode-5.31.3/cc-align Features: (browse-url mailalias mailclient sendmail newcomment help-mode view shadow sort gnus-util mail-extr message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug vc-git ebuff-menu electric multi-isearch vc-bzr sha1 hex-util cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt finder-inf package simple-wiki derived scheme-complete git-blame git log-edit easy-mmode ring pcvs-util ewoc add-log avoid server paren mic-paren cl cl-19 tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs)