From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 03 02:18:33 2011 Received: (at submit) by debbugs.gnu.org; 3 Jan 2011 07:18:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZega-0003uZ-Ta for submit@debbugs.gnu.org; Mon, 03 Jan 2011 02:18:33 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZegZ-0003uO-Ak for submit@debbugs.gnu.org; Mon, 03 Jan 2011 02:18:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZenQ-0007FC-Ax for submit@debbugs.gnu.org; Mon, 03 Jan 2011 02:25:37 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:35613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZenQ-0007F8-34 for submit@debbugs.gnu.org; Mon, 03 Jan 2011 02:25:36 -0500 Received: from [140.186.70.92] (port=36745 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZenO-0006x9-Qu for bug-gnu-emacs@gnu.org; Mon, 03 Jan 2011 02:25:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZenN-0007EK-1u for bug-gnu-emacs@gnu.org; Mon, 03 Jan 2011 02:25:34 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]:18137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZenM-0007Dx-Sz for bug-gnu-emacs@gnu.org; Mon, 03 Jan 2011 02:25:33 -0500 Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p037PRnI012891 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 3 Jan 2011 07:25:29 GMT Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p0371xi0018883 for ; Mon, 3 Jan 2011 07:25:27 GMT Received: from abhmt021.oracle.com by acsmt355.oracle.com with ESMTP id 923121421294039526; Sun, 02 Jan 2011 23:25:26 -0800 Received: from dradamslap1 (/10.159.216.63) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 02 Jan 2011 23:25:25 -0800 From: "Drew Adams" To: Subject: 24.0.50; `frame-background-mode' Date: Sun, 2 Jan 2011 23:25:13 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: AcurF1xNFSTfu8wxSmuhEPlcKpdwRA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) emacs -Q There needs to be some explanation of `frame-background-mode' for users and for Emacs-Lisp programmers. First, the option is described briefly in the Elisp manual, but not in the Emacs manual. It is a _user_ option, and should be in the latter. Second, the (elisp) entry does not say what happens if the value is nil. The doc string does say that if it is nil then Emacs will "examine the brightness for you". That explanation of nil is incomprehensible and pretty useless for users, but it is especially useless for programmers. I had some code that tried to DTRT for a given color based on the `frame-background-mode'. I was incorrectly assuming that the value was set to `light' or `dark' automatically by Emacs ("examine the brightness for you") if it was not already set (customized) by the user. Now I guess I will need to call `frame-set-background-mode' if the value is nil, to determine the proper value. The doc should have helped here. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-12-20 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include' From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 03 03:05:42 2011 Received: (at 7774) by debbugs.gnu.org; 3 Jan 2011 08:05:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZfQE-0004uW-IQ for submit@debbugs.gnu.org; Mon, 03 Jan 2011 03:05:42 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZfQC-0004uK-UQ for 7774@debbugs.gnu.org; Mon, 03 Jan 2011 03:05:41 -0500 Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p038Ci8g001776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <7774@debbugs.gnu.org>; Mon, 3 Jan 2011 08:12:46 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p038Ci0m027857 for <7774@debbugs.gnu.org>; Mon, 3 Jan 2011 08:12:44 GMT Received: from abhmt015.oracle.com by acsmt354.oracle.com with ESMTP id 893519651294042293; Mon, 03 Jan 2011 00:11:33 -0800 Received: from dradamslap1 (/10.159.216.63) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 03 Jan 2011 00:11:33 -0800 From: "Drew Adams" To: <7774@debbugs.gnu.org> References: Subject: RE: bug#7774: 24.0.50; `frame-background-mode' Date: Mon, 3 Jan 2011 00:11:21 -0800 Message-ID: <901E54D000EF4AE3955F0605A980163E@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: AcurF1xNFSTfu8wxSmuhEPlcKpdwRAABgAng X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 7774 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) > Now I guess I will need to call `frame-set-background-mode' > if the value is nil, to determine the proper value. Forget that "solution". I was confusing the option with the frame parameter. What I needed to test was the parameter `background-mode', not the option. That doesn't change the rest of the bug report. The option should be mentioned in the Emacs manual. (I'm not even sure it's needed also in the Elisp manual.) And the manual, like the doc string, should mention the value nil. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 05 05:33:23 2012 Received: (at 7774) by debbugs.gnu.org; 5 Aug 2012 09:33:23 +0000 Received: from localhost ([127.0.0.1]:34644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SxxD8-0001Vt-GQ for submit@debbugs.gnu.org; Sun, 05 Aug 2012 05:33:22 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:51504) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SxxD6-0001Vm-RX for 7774@debbugs.gnu.org; Sun, 05 Aug 2012 05:33:21 -0400 Received: by pbbrr4 with SMTP id rr4so2212763pbb.3 for <7774@debbugs.gnu.org>; Sun, 05 Aug 2012 02:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=ECOO/nc64lgF7SOo3uoiayc8+i40CpLwTLyHLIXHNzI=; b=sxMf55awUop/Z7Y27YtV9SaF9loIJJUhpnfH5wPX9nbRIYjBh4vjUmx6rKlxK6rDwU Er5iDnclGrq3C3Hf41pMRkOgttVER0LgciJdea+1SvViH47vY3adDTx4QpWRQw3Z++7I HbHjcE68RbualfHLcsSqc+ECMdHNwY0aXjo6W2bFBUx+IyHLyfQhJ4ntpvzOatMxHdIS BsXYYBGseOF+OJetpcKLtsW/Cf7Uh06LPNDmK0jQ8Zn1FZWe8Qu5ymlG3kCnSE03GK6l aPr/8ElRU5khHofz7njzMq3feRvZNbuFxBaEUNxLeGWvjmuDaTS/3pQsYAW3os0w8709 XmGQ== Received: by 10.68.201.198 with SMTP id kc6mr10388768pbc.122.1344158733794; Sun, 05 Aug 2012 02:25:33 -0700 (PDT) Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id pt1sm274216pbc.4.2012.08.05.02.25.31 (version=SSLv3 cipher=OTHER); Sun, 05 Aug 2012 02:25:32 -0700 (PDT) From: Chong Yidong To: "Drew Adams" Subject: Re: bug#7774: 24.0.50; `frame-background-mode' References: <901E54D000EF4AE3955F0605A980163E@us.oracle.com> Date: Sun, 05 Aug 2012 17:25:28 +0800 In-Reply-To: <901E54D000EF4AE3955F0605A980163E@us.oracle.com> (Drew Adams's message of "Mon, 3 Jan 2011 00:11:21 -0800") Message-ID: <873941n113.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 7774 Cc: 7774@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) "Drew Adams" writes: > The option should be mentioned in the Emacs manual. (I'm not even sure > it's needed also in the Elisp manual.) And the manual, like the doc > string, should mention the value nil. Fixed in trunk. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 05 05:33:31 2012 Received: (at control) by debbugs.gnu.org; 5 Aug 2012 09:33:31 +0000 Received: from localhost ([127.0.0.1]:34647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SxxDH-0001WC-6d for submit@debbugs.gnu.org; Sun, 05 Aug 2012 05:33:31 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:51504) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SxxDG-0001Vm-CD for control@debbugs.gnu.org; Sun, 05 Aug 2012 05:33:30 -0400 Received: by mail-pb0-f44.google.com with SMTP id rr4so2212763pbb.3 for ; Sun, 05 Aug 2012 02:25:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=2IdHTvJ+Vvv9s2hkXrQeonX1cjK/b5YXGl6lfOd+iM8=; b=yH3e1zuzI9Q2KJprJKAfbLRlI/yf8DghN81HS3I2/kuzEwUuVCGtXRP2R3ZQSDHfDH 1lnMHjI+y9TaTFiHhW9lK9951TdP1ECwI7kUObk4NqxzOGnQt7lZrgIGkNEEZZljTqF9 EyukiTCyqrDA90I3xEffyqF9RZ0ej/PKdUeJuNpEs/f92RMS1kzBWa86TFsRpe1DF9pI ba9Tz6tduDezRSagIwjqvkoSks/BmvZnhPh1BB4UnQqApzCbsgDqygCGlpqjgP76hw4C uNBlwZYxZ+LysFUyodzdef/lBEfqQ01Y5yRsLu4zho7CBYL8F5nHoAH6Jhuw1tdvaDpI VUhA== Received: by 10.68.232.232 with SMTP id tr8mr10363248pbc.73.1344158743818; Sun, 05 Aug 2012 02:25:43 -0700 (PDT) Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id hx9sm6561683pbc.68.2012.08.05.02.25.41 (version=SSLv3 cipher=OTHER); Sun, 05 Aug 2012 02:25:43 -0700 (PDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 7774 Date: Sun, 05 Aug 2012 17:25:39 +0800 Message-ID: <874noh8zcc.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) close 7774 thanks From unknown Sat Aug 16 00:31:31 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 02 Sep 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator