From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#7087: 24.0.50; cannot customize default-frame-alist - it says value is nil but it is not Date: Fri, 24 Sep 2010 07:51:38 +0200 Message-ID: <4C9C3C6A.3040009@gmx.at> References: <5567061AAE0C434CA177126DEC0D1B02@us.oracle.com> <4C9B42E2.4040404@gmx.at> <4433C2799F32480A90E36306C8157831@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285308762 8537 80.91.229.12 (24 Sep 2010 06:12:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2010 06:12:42 +0000 (UTC) Cc: 7087@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 24 08:12:39 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oz1WQ-0002Ig-Nt for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Sep 2010 08:12:39 +0200 Original-Received: from localhost ([127.0.0.1]:42738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz1WP-0007OO-Sz for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Sep 2010 02:12:37 -0400 Original-Received: from [140.186.70.92] (port=49005 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz1Uw-0006y3-4x for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2010 02:11:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oz1Uu-0004YL-RU for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2010 02:11:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49094) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oz1Uu-0004YF-Nt for bug-gnu-emacs@gnu.org; Fri, 24 Sep 2010 02:11:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oz1GM-000259-Fz; Fri, 24 Sep 2010 01:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Sep 2010 05:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7087-submit@debbugs.gnu.org id=B7087.12853077457997 (code B ref 7087); Fri, 24 Sep 2010 05:56:02 +0000 Original-Received: (at 7087) by debbugs.gnu.org; 24 Sep 2010 05:55:45 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oz1G4-00024w-SM for submit@debbugs.gnu.org; Fri, 24 Sep 2010 01:55:45 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22] helo=mail.gmx.net) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Oz1G2-00024r-I9 for 7087@debbugs.gnu.org; Fri, 24 Sep 2010 01:55:44 -0400 Original-Received: (qmail invoked by alias); 24 Sep 2010 05:51:40 -0000 Original-Received: from 62-47-41-136.adsl.highway.telekom.at (EHLO [62.47.41.136]) [62.47.41.136] by mail.gmx.net (mp016) with SMTP; 24 Sep 2010 07:51:40 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+WhmIHOzCWDo3IBAZnRHwkC9WXBLGBUsubXvtDwD tsGJyHXV3CjApV User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <4433C2799F32480A90E36306C8157831@us.oracle.com> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 24 Sep 2010 01:56:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40389 Archived-At: > However, if the value does become something like that for some reason, then the > displayed value should be the complete sexp that is the value, not just one > little part of it. So there is apparently a bug present in any case - probably > in the customize code. Not here. If I evaluate (custom-set-variables '(default-frame-alist (quote ((foreground-color . "Black") (background-color . "LightBlue") ... and do customize it I get "SAVED and set. (mismatch)" showing the whole sexp in my customization buffer. > Yes, indeed. Again, dunno how the nil value got there. Probably something that > happened during the session. Perhaps there is a bug elsewhere that introduced > that. Do write a function for your `post-command-hook' that checks whether a nil value was added by the last command and run it for a while. > Note though that the nil entry did not seem to in any way interfere with the > use/behavior of `default-frame-alist'. And that makes sense. Why should it? It's based on something like `assq' and we know that it does Return non-nil if KEY is `eq' to the car of an element of LIST. The value is actually the first element of LIST whose car is KEY. Elements of LIST that are not conses are ignored. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > FWIW, I've checked all of my own code to be sure that the nil alist entry could > not have come from it. In all cases it uses a cons. I did not check all other > 3rd-party code I might load, but if I had to guess I'd guess that this came > somehow from the vanilla Emacs 24 code, mainly because I've never come across > this before. That's why I asked you to check this in the first place ;-) Maybe an error condition was raised and the handler returned nil instead of a cons. martin