unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* x-popup-menu
@ 2009-11-09  6:23 Stefan Monnier
  2009-11-10  0:43 ` x-popup-menu Juri Linkov
  2009-11-13 10:37 ` x-popup-menu Eli Zaretskii
  0 siblings, 2 replies; 7+ messages in thread
From: Stefan Monnier @ 2009-11-09  6:23 UTC (permalink / raw)
  To: emacs-devel

I've just consolidated the X(&msdos), w32, and ns code of x-popup-menu
into menu.c.
I've only tested the X11 version, and left some #ifdefs which I suspect
are not needed.  Please test and fix as needed for other GUI backends,
and please take a look at the FIXMEs in it to see if you have some idea
what should be done,


        Stefan




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: x-popup-menu
  2009-11-09  6:23 x-popup-menu Stefan Monnier
@ 2009-11-10  0:43 ` Juri Linkov
  2009-11-10 18:10   ` x-popup-menu Stefan Monnier
  2009-11-13 10:37 ` x-popup-menu Eli Zaretskii
  1 sibling, 1 reply; 7+ messages in thread
From: Juri Linkov @ 2009-11-10  0:43 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

> I've just consolidated the X(&msdos), w32, and ns code of x-popup-menu
> into menu.c.
> I've only tested the X11 version, and left some #ifdefs which I suspect
> are not needed.  Please test and fix as needed for other GUI backends,

On a non-toolkit X build, `make bootstrap' fails with:

xmenu.c:2320: error: static declaration of 'xmenu_show' follows non-static declaration
menu.h:46: error: previous declaration of 'xmenu_show' was here
make[2]: *** [xmenu.o] Error 1

where xmenu.c:2320 contains:

static Lisp_Object
xmenu_show (f, x, y, for_click, keymaps, title, error, timestamp)

and menu.h:46 contains:

extern Lisp_Object xmenu_show (FRAME_PTR, int, int, int, int,
			       Lisp_Object, char **, EMACS_UINT);

But the same function cannot be static and extern at the same time.

-- 
Juri Linkov
http://www.jurta.org/emacs/




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: x-popup-menu
  2009-11-10  0:43 ` x-popup-menu Juri Linkov
@ 2009-11-10 18:10   ` Stefan Monnier
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2009-11-10 18:10 UTC (permalink / raw)
  To: Juri Linkov; +Cc: emacs-devel

>> I've just consolidated the X(&msdos), w32, and ns code of x-popup-menu
>> into menu.c.
>> I've only tested the X11 version, and left some #ifdefs which I suspect
>> are not needed.  Please test and fix as needed for other GUI backends,

> On a non-toolkit X build, `make bootstrap' fails with:

> xmenu.c:2320: error: static declaration of 'xmenu_show' follows non-static declaration
> menu.h:46: error: previous declaration of 'xmenu_show' was here
> make[2]: *** [xmenu.o] Error 1

IIUC this has been fixed,


        Stefan




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: x-popup-menu
  2009-11-09  6:23 x-popup-menu Stefan Monnier
  2009-11-10  0:43 ` x-popup-menu Juri Linkov
@ 2009-11-13 10:37 ` Eli Zaretskii
  2009-11-13 14:51   ` x-popup-menu Stefan Monnier
  2009-11-13 22:51   ` x-popup-menu Chad Brown
  1 sibling, 2 replies; 7+ messages in thread
From: Eli Zaretskii @ 2009-11-13 10:37 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Mon, 09 Nov 2009 01:23:01 -0500
> 
> I've just consolidated the X(&msdos), w32, and ns code of x-popup-menu
> into menu.c.
> I've only tested the X11 version, and left some #ifdefs which I suspect
> are not needed.  Please test and fix as needed for other GUI backends,
> and please take a look at the FIXMEs in it to see if you have some idea
> what should be done,

Works in the MSDOS port, after one small fix in menu.c (see today's
logs).

By the way, why didn't you move x-popup-dialog as well?




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: x-popup-menu
  2009-11-13 10:37 ` x-popup-menu Eli Zaretskii
@ 2009-11-13 14:51   ` Stefan Monnier
  2009-11-13 22:51   ` x-popup-menu Chad Brown
  1 sibling, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2009-11-13 14:51 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

> Works in the MSDOS port, after one small fix in menu.c (see today's
> logs).

Thank you.

> By the way, why didn't you move x-popup-dialog as well?

Because I haven't done it yet.


        Stefan




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: x-popup-menu
  2009-11-13 10:37 ` x-popup-menu Eli Zaretskii
  2009-11-13 14:51   ` x-popup-menu Stefan Monnier
@ 2009-11-13 22:51   ` Chad Brown
  2009-11-17  3:33     ` x-popup-menu Stefan Monnier
  1 sibling, 1 reply; 7+ messages in thread
From: Chad Brown @ 2009-11-13 22:51 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

In order to get menu.c to compile --with-ns, I had to remove some code  
that Stefan had marked FIXME.   That code was since changed by  
davidsweldt:

> revision 1.19
> date: 2009-11-11 16:26:11 -0800;  author: davidswelt;  state: Exp;   
> lines: +2 -6;  commitid: SpotPAAAts8c8abu;
> menu.c (Fx_popup_menu): Remove left-over debugging code and rename  
> variables to fix 2009-11-09 change.

the current code builds and seems to run fine with limited testing,  
but to address Stefan's FIXME:  I just removed the code and the result  
also seems to work fine under macosx, with limited testing.  I'd be  
happy to test further if someone could suggest areas to exercise.

Thanks,
*Chad


--- menu.c	2009-11-13 13:12:46.000000000 -0800
+++ menu.c-y	2009-11-11 01:34:10.000000000 -0800
@@ -1182,13 +1182,8 @@
  	CHECK_LIVE_WINDOW (window);
  	f = XFRAME (WINDOW_FRAME (win));

-#ifdef HAVE_NS		     /* FIXME: Is this necessary??  --Stef  */
-        xpos = FRAME_COLUMN_WIDTH (f) * WINDOW_LEFT_EDGE_COL (win);
-	ypos = FRAME_LINE_HEIGHT (f) * WINDOW_TOP_EDGE_LINE (win);
-#else
  	xpos = WINDOW_LEFT_EDGE_X (win);
  	ypos = WINDOW_TOP_EDGE_Y (win);
-#endif
        }
      else
        /* ??? Not really clean; should be CHECK_WINDOW_OR_FRAME,





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: x-popup-menu
  2009-11-13 22:51   ` x-popup-menu Chad Brown
@ 2009-11-17  3:33     ` Stefan Monnier
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2009-11-17  3:33 UTC (permalink / raw)
  To: Chad Brown; +Cc: emacs-devel

> --- menu.c	2009-11-13 13:12:46.000000000 -0800
> +++ menu.c-y	2009-11-11 01:34:10.000000000 -0800
> @@ -1182,13 +1182,8 @@
>  	CHECK_LIVE_WINDOW (window);
>  	f = XFRAME (WINDOW_FRAME (win));

> -#ifdef HAVE_NS		     /* FIXME: Is this necessary??  --Stef  */
> -        xpos = FRAME_COLUMN_WIDTH (f) * WINDOW_LEFT_EDGE_COL (win);
> -	ypos = FRAME_LINE_HEIGHT (f) * WINDOW_TOP_EDGE_LINE (win);
> -#else
>  	xpos = WINDOW_LEFT_EDGE_X (win);
>  	ypos = WINDOW_TOP_EDGE_Y (win);
> -#endif
>        }
>      else
>        /* ??? Not really clean; should be CHECK_WINDOW_OR_FRAME,


Thanks,


        Stefan




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-11-17  3:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-09  6:23 x-popup-menu Stefan Monnier
2009-11-10  0:43 ` x-popup-menu Juri Linkov
2009-11-10 18:10   ` x-popup-menu Stefan Monnier
2009-11-13 10:37 ` x-popup-menu Eli Zaretskii
2009-11-13 14:51   ` x-popup-menu Stefan Monnier
2009-11-13 22:51   ` x-popup-menu Chad Brown
2009-11-17  3:33     ` x-popup-menu Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).