From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: semente Newsgroups: gmane.emacs.bugs Subject: bug#43891: 26.3; Wrong background-mode on gnome-terminal 3.38 Date: Fri, 09 Oct 2020 18:30:00 -0300 Message-ID: <875z7j9jfr.fsf@p50> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11222"; mail-complaints-to="usenet@ciao.gmane.io" To: 43891@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 09 23:31:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQzyo-0002nG-MG for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Oct 2020 23:31:11 +0200 Original-Received: from localhost ([::1]:60878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQzyn-00053C-KX for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Oct 2020 17:31:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQzyg-00052i-9A for bug-gnu-emacs@gnu.org; Fri, 09 Oct 2020 17:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53125) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQzyf-0000Sg-Ui for bug-gnu-emacs@gnu.org; Fri, 09 Oct 2020 17:31:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kQzyf-0001fm-Qe for bug-gnu-emacs@gnu.org; Fri, 09 Oct 2020 17:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: semente Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Oct 2020 21:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43891 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16022790456405 (code B ref -1); Fri, 09 Oct 2020 21:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Oct 2020 21:30:45 +0000 Original-Received: from localhost ([127.0.0.1]:36438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQzyP-0001fF-54 for submit@debbugs.gnu.org; Fri, 09 Oct 2020 17:30:45 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQzyL-0001f3-Cv for submit@debbugs.gnu.org; Fri, 09 Oct 2020 17:30:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQzyK-0004wW-8j for bug-gnu-emacs@gnu.org; Fri, 09 Oct 2020 17:30:40 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:34450) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQzyH-0000RH-W4 for bug-gnu-emacs@gnu.org; Fri, 09 Oct 2020 17:30:39 -0400 Original-Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4C7Lp106FszFt7Z for ; Fri, 9 Oct 2020 14:30:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1602279028; bh=f23aicOX/wEj0+IC4A5fu7VCsPDpC4BKGzyc+BRXdwU=; h=From:To:Subject:Date:From; b=KzAqMaTLWPoWZBaLvUkxLBYpVvcDrxr9+ZhthzdP5Afx2S7h8s1EAyYiLWEeCBKYP 5JBeKEqXcNT3wlVC9KoMqKMm3lohARj0NCL33vm5oomxl0Snbe/0+7v1Is5SdeTe9I aQUnuCEUQYzN0ANTEcUPg+GF8OFb1tBe/2B+AFW8= X-Riseup-User-ID: 40C5D934C25925426C261C8490BE13AE33B107AA879C0E7365FEF441D64ABC96 Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 4C7Lnz5gqlzJnxr for ; Fri, 9 Oct 2020 14:30:10 -0700 (PDT) Received-SPF: pass client-ip=198.252.153.129; envelope-from=semente@riseup.net; helo=mx1.riseup.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/09 17:30:31 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:190180 Archived-At: On gnome-terminal 3.38 (and possibly on 3.36, 3.34 and future versions as well) Emacs is setting the background-mode to light while I'm running a dark background. On xterm or ttys it works fine. The following snippet fix this issue: (setq frame-background-mode 'dark) (set-background-color "black") (set-foreground-color "white") This is the same bug reported in #29716[1], which was fixed for gnome-terminal 3.22. A solution made by Noam Postavsky is found on #29716 as well. Perhaps there is a way to fix this definetely for gnome-terminal, I believe it affects many users. Thank you! semente [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=%2329716 In GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20) of 2020-05-16, modified by Debian built on x86-csail-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12009000 System Description: Debian GNU/Linux bullseye/sid Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-mHAik2/emacs-26.3+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_MONETARY: pt_BR.UTF-8 value of $LC_NUMERIC: pt_BR.UTF-8 value of $LC_TIME: pt_BR.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix