From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: "Attempt to modify read-only object" error with set-frame-configuration Date: Mon, 24 Dec 2007 23:05:07 +0100 Message-ID: <47702D13.8050806@gmx.at> References: <47698DF5.2080106@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030809020102090701000609" X-Trace: ger.gmane.org 1198534202 12082 80.91.229.12 (24 Dec 2007 22:10:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Dec 2007 22:10:02 +0000 (UTC) Cc: Juanma Barranquero , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 24 23:10:14 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J6vUy-0003Hp-GC for ged-emacs-devel@m.gmane.org; Mon, 24 Dec 2007 23:10:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6vUe-00073L-4V for ged-emacs-devel@m.gmane.org; Mon, 24 Dec 2007 17:09:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J6vUa-00071n-4S for emacs-devel@gnu.org; Mon, 24 Dec 2007 17:09:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J6vUY-000703-89 for emacs-devel@gnu.org; Mon, 24 Dec 2007 17:09:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6vUX-0006zw-Vn for emacs-devel@gnu.org; Mon, 24 Dec 2007 17:09:46 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1J6vUX-0001Z5-Ux for emacs-devel@gnu.org; Mon, 24 Dec 2007 17:09:46 -0500 Original-Received: (qmail invoked by alias); 24 Dec 2007 22:09:42 -0000 Original-Received: from N955P020.adsl.highway.telekom.at (EHLO [62.47.63.84]) [62.47.63.84] by mail.gmx.net (mp045) with SMTP; 24 Dec 2007 23:09:42 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/Gt3IDvbDGEwgYma3FtQ1sQqH7q6lB40LhRoSd// zyfW3nVTuaYq+t User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85434 Archived-At: This is a multi-part message in MIME format. --------------030809020102090701000609 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit > 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. --------------030809020102090701000609 Content-Type: text/plain; name="frame-el.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="frame-el.patch" *** 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, --------------030809020102090701000609 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --------------030809020102090701000609--