From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#29473: 25.3; 'background-mode is 'light on console with black background Date: Sat, 02 Dec 2017 10:25:47 -0500 Message-ID: <87a7z1jgn8.fsf@users.sourceforge.net> References: <87efoj3h91.fsf@passepartout.tim-landscheidt.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1512228373 6311 195.159.176.226 (2 Dec 2017 15:26:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 2 Dec 2017 15:26:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 29473@debbugs.gnu.org To: Tim Landscheidt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 02 16:26:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eL9g4-00018E-Tc for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Dec 2017 16:26:05 +0100 Original-Received: from localhost ([::1]:36035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eL9gC-0003D0-8Q for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Dec 2017 10:26:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eL9g6-0003Cu-UG for bug-gnu-emacs@gnu.org; Sat, 02 Dec 2017 10:26:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eL9g2-0003Hs-U6 for bug-gnu-emacs@gnu.org; Sat, 02 Dec 2017 10:26:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33451) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eL9g2-0003Hi-Pe for bug-gnu-emacs@gnu.org; Sat, 02 Dec 2017 10:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eL9g2-00040V-Ga for bug-gnu-emacs@gnu.org; Sat, 02 Dec 2017 10:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Dec 2017 15:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29473 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29473-submit@debbugs.gnu.org id=B29473.151222836015395 (code B ref 29473); Sat, 02 Dec 2017 15:26:02 +0000 Original-Received: (at 29473) by debbugs.gnu.org; 2 Dec 2017 15:26:00 +0000 Original-Received: from localhost ([127.0.0.1]:42132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eL9g0-00040F-8R for submit@debbugs.gnu.org; Sat, 02 Dec 2017 10:26:00 -0500 Original-Received: from mail-it0-f43.google.com ([209.85.214.43]:33110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eL9fw-0003zz-BA for 29473@debbugs.gnu.org; Sat, 02 Dec 2017 10:25:56 -0500 Original-Received: by mail-it0-f43.google.com with SMTP id o130so6841937itg.0 for <29473@debbugs.gnu.org>; Sat, 02 Dec 2017 07:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=AIwbn0xgNEnPckWNE2CZ7XT2Q9z3iRGkrkZ3GhTT8Hw=; b=Zv/zKUvah7e/m5mIZKKBiHuVlJRCYaP7gWONZbvUW3IQNP8gO9rBvLzTdH85kM1uAX g0i9YQfZf3BLNPQ7mcmZeKQnPeS7zqeym5hKC+ru2U4QmcTdEo0G0Cttrjj/S6YrhH2B uhTpZpo/UhvjeUzgpFOV9ifftF6ptXcP11T3k2jqhmvUgjvWFlrMjbOSR8YqZyoqCuCU 5sUx09DiLZGXJr8gSfyx98V/gOaUc6moyrr5iVd++olpASKdBTmRFGJ4eDXRfQ4MIq/Q aMgqDoKihOm6cU8nelbSAFStUm9rI1U/iRiJJcaIH5/kp6pDOCkfuUYkdGjyEvtwEXSJ iDHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=AIwbn0xgNEnPckWNE2CZ7XT2Q9z3iRGkrkZ3GhTT8Hw=; b=JJefYnECJfXuhr16oKA6fxgaMljVcVeVUGMgRCmqyFiI20BRSt/CF82M//maoBha0k Gjg2Nv9ZjTZteqMCEKrN6AaJjuPnB8JOdl381MamtifVdPx3fCm6rKUVWnOQk5J47ee1 RRNVLguP7HpXvjjKP2o2N2bwF1frTGW5C7DjUPQO5RqaKKG2AsHhMPJ/i/2VM+778LfE wrejLOwZlpHEbMlxXyyGYiotuC7xOYHPPpFyyR+IIFPJNzL1HPneqphIZEeUZ6fqH+Ln 3Fg9Es6G0em4/6FcxfPl4UQRptQh/Nj+9kA2M7EocfHZ0su3LAHfkSgMfZQeRW8G9b7J UMxg== X-Gm-Message-State: AKGB3mLaKFfbX8if1l0KtRaVQYiypZEufCIA18iZfDXg//r94eyY0nBr I+GmxiDQWSmOuo+2r+BsY+Oefg== X-Google-Smtp-Source: AGs4zMbei/oE2tPAjUMjdZfno5RsMiOHd76pCf2j/AMYHrsJxChh6kHr+xVvvxpBTvEEdyJgO08A8Q== X-Received: by 10.36.254.71 with SMTP id w68mr6395037ith.24.1512228350426; Sat, 02 Dec 2017 07:25:50 -0800 (PST) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id x124sm4178777iod.86.2017.12.02.07.25.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 02 Dec 2017 07:25:49 -0800 (PST) In-Reply-To: <87efoj3h91.fsf@passepartout.tim-landscheidt.de> (Tim Landscheidt's message of "Mon, 27 Nov 2017 14:53:30 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140625 Archived-At: Tim Landscheidt writes: > In newsticker tree view on a Linux console with black back- > ground (both KDE's konsole application and "native" console > (Alt-Ctrl-F2), all under Fedora), > (frame-parameter nil 'background-mode) returns 'light. This > also happens with Emacs' current master branch. > > After glancing at the manual, I'm unclear whether: > > 1. Emacs should set 'background-mode correctly by itself > (and thus there is an error in the detection mechanism), > > 2. it is my duty to explicitly set background-mode (via > initial-frame-alist?) when using Emacs on a console, or I'm pretty sure it's #1, the manual explains that background-mode nil should use automatic detection, and it sounds like that detection is going wrong. I don't see anything in lisp/term/linux.el that sets the background mode at all. What does running 'echo $TERM' in a shell give you? Looking at lisp/term/konsole.el, it looks like it uses the xterm functions for everything. Could you try stepping through/adding 'message' calls in terminal-init-xterm and see if/where it goes wrong?