[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: Juanma Barranquero
Subject: Re: "Attempt to modify read-only object" error with set-frame-configuration
Date: Thu, 20 Dec 2007 14:09:07 +0100

On Dec 20, 2007 10:59 AM, martin rudalics <address@hidden> wrote:

> Hmm ...  Why does Emacs -Q and evaluating
> (setq default-frame-alist '((visibility . t)))
> not cause the problem?  Why does removing the visibility entry from
> `parms' in `set-frame-configuration' still cause the problem?

That's why I said "I'd bet": because I had not tested. :)

Try this:

(let* ((cfg (current-frame-configuration))
       (atr (cdadr cfg)))
  (setcar atr (assq-delete-all 'horizontal-scroll-bars (car atr)))
  (setcar atr (assq-delete-all 'visibility (car atr)))
  (set-frame-configuration cfg))


reply via email to

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