[Top][All Lists]

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

Re: "Attempt to modify read-only object" error with set-frame-configurat

From: martin rudalics
Subject: Re: "Attempt to modify read-only object" error with set-frame-configuration
Date: Tue, 25 Dec 2007 10:23:25 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> Thanks.  However, I'm not sure this is right: why do we need to make
> an explicit (visibility . t) element on w32, whereas on X we do not?

By all means I never claimed that the patch would DTRT ;-).  Anyway,
before applying the patch I was able to create a new frame that behaved
correctly by calling

(x-create-frame-with-faces '((visibility . t)))

while that frame did _not_ behave correctly when I simply called


The problem doesn't seem to be with `x-create-frame-with-faces' not
calling `modify-frame-parameters' because with

          (if (null visibility-spec)
              (modify-frame-parameters frame '((visibility . t)))
            (modify-frame-parameters frame (list visibility-spec)))

the initial frame gets killed immediately.  Hence the bug occurs before,
probably somewhere in `x_make_frame_visible' called by `x-create-frame',
but I simply fail to understand that code yet.

> I think it would be useful to compare the values of the frame
> parameters in Emacs 22 with what I have shown for the CVS code, and
> find why it works in Emacs 22, but not in CVS.  Maybe then we will
> understand what went wrong after the multi-tty merge.

Maybe the multi-tty merge just revealed an existing problem in the
Windows port.  BTW it should be _much_ simpler to analyze the
`horizontal-scroll-bars' problem first.

reply via email to

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