From: martin rudalics <rudalics@gmx.at>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Juanma Barranquero <lekktu@gmail.com>, emacs-devel@gnu.org
Subject: Re: "Attempt to modify read-only object" error with set-frame-configuration
Date: Mon, 24 Dec 2007 23:05:07 +0100 [thread overview]
Message-ID: <47702D13.8050806@gmx.at> (raw)
In-Reply-To: <uabo2im6o.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 387 bytes --]
> This is where I ran out of time. Someone, please continue debugging.
I was able to remove both bugs - the `horizontal-scroll-bars' and the
`visibility' related one - with the attached patch. I'm not sure
whether this causes a supposedly invisible or iconified frame to appear
(shortly before the actual parameters are applied) but at least seems to
identify the origin of the bug.
[-- Attachment #2: frame-el.patch --]
[-- Type: text/plain, Size: 2105 bytes --]
*** frame.el.~1.265.~ Thu Nov 22 14:50:36 2007
--- frame.el Mon Dec 24 22:49:32 2007
***************
*** 196,202 ****
(defvar frame-initial-frame nil)
;; Record the parameters used in frame-initialize to make the initial frame.
! (defvar frame-initial-frame-alist)
(defvar frame-initial-geometry-arguments nil)
--- 196,202 ----
(defvar frame-initial-frame nil)
;; Record the parameters used in frame-initialize to make the initial frame.
! (defvar frame-initial-frame-alist nil)
(defvar frame-initial-geometry-arguments nil)
***************
*** 221,236 ****
(progn
(setq frame-initial-frame-alist
(append initial-frame-alist default-frame-alist nil))
- (or (assq 'horizontal-scroll-bars frame-initial-frame-alist)
- (setq frame-initial-frame-alist
- (cons '(horizontal-scroll-bars . t)
- frame-initial-frame-alist)))
(setq frame-initial-frame-alist
! (cons (cons 'window-system initial-window-system)
! frame-initial-frame-alist))
(setq default-minibuffer-frame
(setq frame-initial-frame
(make-frame frame-initial-frame-alist)))
;; Delete any specifications for window geometry parameters
;; so that we won't reapply them in frame-notice-user-settings.
;; It would be wrong to reapply them then,
--- 221,237 ----
(progn
(setq frame-initial-frame-alist
(append initial-frame-alist default-frame-alist nil))
(setq frame-initial-frame-alist
! (if (eq initial-window-system 'w32)
! (list (cons 'window-system initial-window-system)
! (cons 'visibility t)
! frame-initial-frame-alist)
! (list (cons 'window-system initial-window-system)
! frame-initial-frame-alist)))
(setq default-minibuffer-frame
(setq frame-initial-frame
(make-frame frame-initial-frame-alist)))
+
;; Delete any specifications for window geometry parameters
;; so that we won't reapply them in frame-notice-user-settings.
;; It would be wrong to reapply them then,
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2007-12-24 22:05 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-19 21:32 "Attempt to modify read-only object" error with set-frame-configuration martin rudalics
2007-12-19 21:47 ` Andreas Schwab
2007-12-19 22:09 ` Stephen Berman
2007-12-19 23:18 ` Johan Bockgård
2007-12-19 23:59 ` Juanma Barranquero
2007-12-20 9:59 ` martin rudalics
2007-12-20 13:09 ` Juanma Barranquero
2007-12-20 16:02 ` martin rudalics
2007-12-20 17:11 ` Juanma Barranquero
2007-12-20 18:36 ` martin rudalics
2007-12-20 23:06 ` Juanma Barranquero
2007-12-22 19:06 ` Eli Zaretskii
2007-12-23 15:32 ` Richard Stallman
2007-12-25 21:01 ` Eli Zaretskii
2007-12-26 5:29 ` Richard Stallman
2007-12-24 22:05 ` martin rudalics [this message]
2007-12-25 4:11 ` Eli Zaretskii
2007-12-25 9:23 ` martin rudalics
2007-12-25 20:59 ` Eli Zaretskii
2007-12-25 21:50 ` martin rudalics
2007-12-26 5:28 ` Richard Stallman
2007-12-26 7:00 ` YAMAMOTO Mitsuharu
2007-12-26 8:49 ` martin rudalics
2007-12-26 21:26 ` Richard Stallman
2007-12-26 19:09 ` Bob Rogers
2007-12-24 22:53 ` martin rudalics
2007-12-25 4:07 ` Eli Zaretskii
2007-12-25 9:27 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47702D13.8050806@gmx.at \
--to=rudalics@gmx.at \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).