freenode/#clim - IRC Chatlog
Search
4:50:55
loke[m]
About the issue I posted yesterday. I have an even weirder observation (yes, I'll try to create a smaller test case)
4:52:11
loke[m]
I have a command (CMD-SHOW-CANVAS) which adds the pane that I linked to yesterday to the main frame. When I type that command on the interactor, the issue I explained happens (i.e. one of the sub-panels are not redrawn)
4:53:06
loke[m]
However, when I run the exact same command from a menu (the menu is defined as ("Show" :command cmd-show-canvas), then the pane gets redrawn correctly.
4:53:36
loke[m]
So, my question is: What is different between issuing a command on the interactor vs. running the same command via the menu that could cause redraw problems?
10:38:23
loke[m]
jackdaniel: I have found another regression. When I have a command that accepts arguments, and I bind that commend to a menu, it used to be that when selecting the menu entry, the interactor displayed the form that allowed the user to enter the arguments.
10:39:00
loke[m]
This changed some time ago, and now when I do it, I get an error saying that it attempted to call the command function with the wrong number of arguments.
10:40:17
loke[m]
I see. So it shouldn't be possible to bind menus to commands that accept arguments?
10:40:20
jackdaniel
if you want to put in a menu partial commands, you should do it like (com-foo *unsupplied-argument-marker* *unsupplied-argument-marker*)
10:44:07
jackdaniel
but to understand better the context of this change (I don't remember it exactly), I think that you need to look into the git history
10:44:42
loke[m]
Yeah. I tried it, and now the code literally tries to pass the symbol UNSUPPLIED-ARGUMENT-MARKER to the function. I'll create an example.
10:47:24
jackdaniel
loke[m]: did you do '(com-foo *unsupplied-argument-marker*) or maybe `(com-foo ,*unsupplied-argument-marker*) ?
10:50:13
jackdaniel
is the command plot2d-with-range added to the command table maxima-plot-command-table?
10:50:31
loke[m]
Yes. The other options work, and if I use the former (all quoted), then the meny entry is not greyed out and selecting it gives me an error when it tries to use 'unsupplied-argument-marker