emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


From: Lennart Staflin
Subject: (no subject)
Date: Fri, 12 Sep 2003 15:09:44 +0200

In GNU Emacs 21.3.50.8 (powerpc-apple-darwin6.6)
 of 2003-09-12 on Saturn.local.
configured using `configure '--enable-carbon-app' 'CC=cc -traditional-cpp' 'CFLAGS=-g' 'CPPFLAGS=-traditional-cpp''


I found another problems with menus in Carbon.
The "Jump to Bookmark" menu is blank. It seems that the Carbon
menus treat any menu item starting with dash as a separator and the
bookmark menu has titles like -*- Jump to bookmark -*-.

I tried a patch that adds a space before the text if it starts with a
dash. This works but is a bit ugly.



2003-09-12  Lennart Staflin  <address@hidden>

        * macmenu.c (add_menu_item): add space before name of item if the
        name starts with a dash and it isn't a separator. Carbon menus
        treat names starting with a dash as separators.


*** macmenu.c.~1.11.~   Sat Aug 30 20:18:53 2003
--- macmenu.c   Fri Sep 12 12:34:44 2003
***************
*** 2249,2255 ****
        pos = CountMItems (menu);
  #endif

!       strcpy (item_name, "");
        strncat (item_name, wv->name, 255);
        if (wv->key != NULL)
        {
--- 2249,2259 ----
        pos = CountMItems (menu);
  #endif

!
!       if (*(wv->name) == '-')
!         strcpy (item_name, " ");
!       else
!         strcpy (item_name, "");
        strncat (item_name, wv->name, 255);
        if (wv->key != NULL)
        {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]