Re: Non-ASCII in Lucid menus

2005-03-20 Thread Jan D.
Stefan Monnier wrote: Well, my patch does not address the issue mentioned by Dave: it can only display multilingual chars that are part of the user's locale. Could it select the locale according to the characters to be displayed? The locale info is embedded somewhere in the Xt widget inf

Re: Non-ASCII in Lucid menus

2005-03-19 Thread David Kastrup
Stefan Monnier <[EMAIL PROTECTED]> writes: >> Well, my patch does not address the issue mentioned by Dave: it >> can only display multilingual chars that are part of the user's >> locale. >> Could it select the locale according to the characters to be displayed? > > The locale info is

Re: Non-ASCII in Lucid menus

2005-03-19 Thread Stefan Monnier
> Well, my patch does not address the issue mentioned by Dave: it can only > display multilingual chars that are part of the user's locale. > Could it select the locale according to the characters to be displayed? The locale info is embedded somewhere in the Xt widget info (I'm not sure wh

Re: Non-ASCII in Lucid menus

2005-03-19 Thread Richard Stallman
Well, my patch does not address the issue mentioned by Dave: it can only display multilingual chars that are part of the user's locale. Could it select the locale according to the characters to be displayed? ___ Emacs-devel mailing list Emacs-d

Re: Non-ASCII in Lucid menus

2005-03-18 Thread Stefan Monnier
>> OTOH, dynamically changing the font by tweaking the `menu' face >> doesn't seem to work on the menu bar. > It should work now to change the Motif menu bar by changing the menu face. Yes, it does work. Stefan ___ Emacs-devel mailing list E

Re: Non-ASCII in Lucid menus

2005-03-18 Thread Jan D.
Stefan Monnier wrote: OTOH, dynamically changing the font by tweaking the `menu' face doesn't seem to work on the menu bar. It should work now to change the Motif menu bar by changing the menu face. Jan D. ___ Emacs-devel mailing list Emacs-devel@gnu.

Re: Non-ASCII in Lucid menus

2005-03-18 Thread Stefan Monnier
> Thanks for implementing this. > Is the following TO-DO item now deletable? > ** Make the Lucid menu widget display multilingual text. [This > probably needs to be done from actual Emacs buffers, either directly > in the menu or by rendering in an unmapped window and copying the > pixels.

Re: Non-ASCII in Lucid menus

2005-03-18 Thread Richard Stallman
Thanks for implementing this. Is the following TO-DO item now deletable? ** Make the Lucid menu widget display multilingual text. [This probably needs to be done from actual Emacs buffers, either directly in the menu or by rendering in an unmapped window and copying the pixels. Note that t

Re: Non-ASCII in Lucid menus

2005-03-17 Thread Stefan Monnier
> The failure to support non-ASCII characters in menus is a bug, in my > opinion. If you've fixed it, and your fix works well, let's install > it now. Installed, Stefan ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/ma

Re: Non-ASCII in Lucid menus

2005-03-17 Thread Richard Stallman
In any case, here is the new improved patch. This new patch should also enable non-ASCII in Motif menus, although I haven't actually checked it. I'll be happy to keep this patch for post-21.4, but if people feel like this is important, I can install it as well. The failure to sup

Re: Non-ASCII in Lucid menus

2005-03-17 Thread Stefan Monnier
In any case, here is the new improved patch. This new patch should also enable non-ASCII in Motif menus, although I haven't actually checked it. >> >>> I think you can have that already as long as your menu strings are in >>> your >>> locale. It works for me :-) >> >> Actually, I doub

Re: Non-ASCII in Lucid menus

2005-03-16 Thread Jan D.
In any case, here is the new improved patch. This new patch should also enable non-ASCII in Motif menus, although I haven't actually checked it. I think you can have that already as long as your menu strings are in your locale. It works for me :-) Actually, I doubt this is true because the e

Re: Non-ASCII in Lucid menus

2005-03-16 Thread Stefan Monnier
>> In any case, here is the new improved patch. This new patch should also >> enable non-ASCII in Motif menus, although I haven't actually checked it. > I think you can have that already as long as your menu strings are in your > locale. It works for me :-) Actually, I doubt this is true becaus

Re: Non-ASCII in Lucid menus

2005-03-16 Thread Stefan Monnier
> Actually it seems that Motif always assumes the string passed to it is > latin-1 (e.g. even in a greek locale, the greek chars (encoded by Emacs Scratch that. I finally got it to work (also for utf-8). OTOH, dynamically changing the font by tweaking the `menu' face doesn't seem to work on the m

Re: Non-ASCII in Lucid menus

2005-03-16 Thread Jan D.
Stefan Monnier wrote: Just to make sure I understand your judgment: you think it's not important because the difference is minor, or because the "new" default (if different") is also different for other apps and so it's still considered as a legitimate default, or ... All of the above, but I thi

Re: Non-ASCII in Lucid menus

2005-03-16 Thread Stefan Monnier
>>> It is incompatible in the sense that settings in .Xresources that >>> previously >>> used >>> ...*menu*font: ... >> >>> now must use >>> ...*menu*fontSet: >> >>> for the lucid menus. This should be mentioned in NEWS. >> >> Hmm... good point. Do you happen to know how I could get the expect

Re: Non-ASCII in Lucid menus

2005-03-14 Thread Miles Bader
On Mon, 14 Mar 2005 21:56:35 +0100, Jan D. <[EMAIL PROTECTED]> wrote: > > BTW, is the HAVE_X_I18N test still necessary? It'd help if we could just > > assume that X_I18N is available. > > I'm not sure. It is possible some older VMS or other systems still > have X11R3 or X11R4 (not exactly sure w

Re: Non-ASCII in Lucid menus

2005-03-14 Thread Jan D.
Basically you have to set the default to something else than the XtDdefaultFont(Set), and then check if either has been changed. But the default is specified as a string (the name of the default font), whereas in the code I only have access to mw->menu.font which is an XFontStruct*. How can I te

Re: Non-ASCII in Lucid menus

2005-03-14 Thread Stefan Monnier
>>> It is incompatible in the sense that settings in .Xresources that >>> previously >>> used >>> ...*menu*font: ... >> >>> now must use >>> ...*menu*fontSet: >> >>> for the lucid menus. This should be mentioned in NEWS. >> >> Hmm... good point. Do you happen to know how I could get the expect

Re: Non-ASCII in Lucid menus

2005-03-13 Thread Richard Stallman
The patch below makes the Lucid menu use fontsets to draw its text, so that it's able to write non-ASCII (the set of chars supported is dependent on the locale, and of course on the fonts). Thanks very much. I'm very much an idiot when it comes to X11 programming, xfaces.c, and

Re: Non-ASCII in Lucid menus

2005-03-13 Thread David Kastrup
Stefan Monnier <[EMAIL PROTECTED]> writes: > The patch below makes the Lucid menu use fontsets to draw its text, > so that it's able to write non-ASCII (the set of chars supported is > dependent on the locale, and of course on the fonts). Hmm. Is the dependency on the locale necessary? > I'm ve

Re: Non-ASCII in Lucid menus

2005-03-13 Thread Jan D.
It is incompatible in the sense that settings in .Xresources that previously used ...*menu*font: ... now must use ...*menu*fontSet: for the lucid menus. This should be mentioned in NEWS. Hmm... good point. Do you happen to know how I could get the expected behavior that "if `font' is set but `

Re: Non-ASCII in Lucid menus

2005-03-13 Thread Stefan Monnier
>> The patch below makes the Lucid menu use fontsets to draw its text, so that >> it's able to write non-ASCII (the set of chars supported is dependent on the >> locale, and of course on the fonts). >> >> I'm very much an idiot when it comes to X11 programming, xfaces.c, and >> lwlib, so this migh

Re: Non-ASCII in Lucid menus

2005-03-13 Thread Jan D.
Stefan Monnier wrote: The patch below makes the Lucid menu use fontsets to draw its text, so that it's able to write non-ASCII (the set of chars supported is dependent on the locale, and of course on the fonts). I'm very much an idiot when it comes to X11 programming, xfaces.c, and lwlib, so this m