From: Eli Zaretskii <[EMAIL PROTECTED]>
> Fclear_image_cache and where exactly, so that it will print out some
message
> saying that this code is executed? If you can, please be very explicit,
I
> have no c-programming experience whatsoever.
First, the whole body of that function is inside an if clause; I'd
like to know whether the body is executed or the condition evaluates
to zero and the code is not run.
Next, there's a call to free_image in a loop; I'd like to know whether
it is called, and how many times.
Inserting the following line
fprintf(stderr, "I am here\n");
inside a code block will show whether that block is executed.
Feel free to ask more questions if the above is not clear enough.
adding these calls:
DEFUN ("clear-image-cache", Fclear_image_cache, Sclear_image_cache,
0, 1, 0,
doc: /* Clear the image cache of FRAME.
FRAME nil or omitted means use the selected frame.
FRAME t means clear the image caches of all frames. */)
(frame)
Lisp_Object frame;
{
if (EQ (frame, Qt))
{
Lisp_Object tail;
fprintf(stderr, "I am here1\n");
FOR_EACH_FRAME (tail, frame)
if (FRAME_WINDOW_P (XFRAME (frame)))
fprintf(stderr, "I am here2\n");
clear_image_cache (XFRAME (frame), 1);
}
else
fprintf(stderr, "I am here3\n");
clear_image_cache (check_x_frame (frame), 1);
return Qnil;
}
results in
I am here1
I am here2
every time I do M-:(clear-image-cache t)
??
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug