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: Wed, 26 Dec 2007 09:49:25 +0100 Message-ID: <47721595.8090105@gmx.at> References: <47698DF5.2080106@gmx.at> <47702D13.8050806@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050208090004060503080809" X-Trace: ger.gmane.org 1198659261 28131 80.91.229.12 (26 Dec 2007 08:54:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Dec 2007 08:54:21 +0000 (UTC) Cc: lekktu@gmail.com, eliz@gnu.org, rms@gnu.org, emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 26 09:54:33 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 1J7S25-0005Iz-9R for ged-emacs-devel@m.gmane.org; Wed, 26 Dec 2007 09:54:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7S1k-0007q3-Fk for ged-emacs-devel@m.gmane.org; Wed, 26 Dec 2007 03:54:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J7S1D-0007X0-HQ for emacs-devel@gnu.org; Wed, 26 Dec 2007 03:53:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J7S1A-0007V4-6a for emacs-devel@gnu.org; Wed, 26 Dec 2007 03:53:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7S18-0007Uf-V4 for emacs-devel@gnu.org; Wed, 26 Dec 2007 03:53:35 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1J7S18-0005J4-8J for emacs-devel@gnu.org; Wed, 26 Dec 2007 03:53:34 -0500 Original-Received: (qmail invoked by alias); 26 Dec 2007 08:53:31 -0000 Original-Received: from N898P014.adsl.highway.telekom.at (EHLO [62.47.56.46]) [62.47.56.46] by mail.gmx.net (mp048) with SMTP; 26 Dec 2007 09:53:31 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18bsUQPJiwbdQ/3C9B2FENVhAaVFVyYTvzVBj3YwW gv3Zz/IZIgoH01 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:85472 Archived-At: This is a multi-part message in MIME format. --------------050208090004060503080809 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > 1. w32-win.el has a literal cons-cell in the following function: > > (defun x-handle-iconic (switch) > "Make \"-iconic\" SWITCH apply only to the initial frame." > (push '(visibility . icon) initial-frame-alist)) > > Note that x-win.el also has an equivalent one. > > 2. On the multi-tty merge, term/*-win.elc files are changed to be > preloaded. As a result, the above cons cell is allocated in the > pure storage on Emacs 23. > > 3. The X11 version of Fx_create_frame creates a copy of frame > parameters, > > 3030 DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, > : > 3057 parms = Fcopy_alist (parms); > > but the W32 port doesn't do so. > > You don't see the problem on Emacs 22 or on X11 because of 2 or 3 > above, respectively. > > As for 3 above, the Carbon port of Emacs 22 creates a copy of frame > parameters just as in X11. But it seems to be changed not to do so on > the multi-tty merge for some reason I'm not sure. Confirmed :-) The simple patch I attached handles all problems I encountered in this context, including the pure storage problems and that of multiple occurrences of fringes I mentioned earlier. --------------050208090004060503080809 Content-Type: text/plain; name="w32fns.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="w32fns.patch" *** w32fns.c.~1.307.~ Wed Nov 14 18:33:36 2007 --- w32fns.c Wed Dec 26 09:35:06 2007 *************** *** 4165,4170 **** --- 4165,4172 ---- check_w32 (); + parameters = Fcopy_alist (parameters); + /* Use this general default value to start with until we know if this frame has a specified name. */ Vx_resource_name = Vinvocation_name; --------------050208090004060503080809 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 --------------050208090004060503080809--