GNU bug report logs - #16974
24.3.50; [Wishlist] Feature to automatically adjust foreground/background colours when contrast below some threshold

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: nljlistbox2@HIDDEN (N. Jackson); dated Sun, 9 Mar 2014 15:38:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 16974 <at> debbugs.gnu.org:


Received: (at 16974) by debbugs.gnu.org; 10 Mar 2014 02:52:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 09 22:52:34 2014
Received: from localhost ([127.0.0.1]:58563 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WMqKP-0000wy-NI
	for submit <at> debbugs.gnu.org; Sun, 09 Mar 2014 22:52:34 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:31213)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1WMqKM-0000wn-SS
 for 16974 <at> debbugs.gnu.org; Sun, 09 Mar 2014 22:52:31 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av8EABK/CFFMCppy/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0BwsUGA2IQgbBLZEKA6R6gV6DEw
X-IPAS-Result: Av8EABK/CFFMCppy/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0BwsUGA2IQgbBLZEKA6R6gV6DEw
X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="50962564"
Received: from 76-10-154-114.dsl.teksavvy.com (HELO ceviche.home)
 ([76.10.154.114])
 by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
 09 Mar 2014 22:52:29 -0400
Received: by ceviche.home (Postfix, from userid 20848)
 id 7A168660A5; Sun,  9 Mar 2014 22:52:29 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: nljlistbox2@HIDDEN (N. Jackson)
Subject: Re: bug#16974: 24.3.50;
 [Wishlist] Feature to automatically adjust foreground/background
 colours when contrast below some threshold
Message-ID: <jwv7g82davw.fsf-monnier+emacsbugs@HIDDEN>
References: <8761nnl6yd.fsf@HIDDEN>
Date: Sun, 09 Mar 2014 22:52:29 -0400
In-Reply-To: <8761nnl6yd.fsf@HIDDEN> (N. Jackson's message of
 "Sun, 09 Mar 2014 12:36:42 -0300")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 16974
Cc: 16974 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

> Such a feature was proposed (and, IIUC, prototyped) in the discussion of
> the bizarrely named :distant-foreground face attribute on the
> emacs-devel list around the 7th of January (2014). There it met with the
> objection that nothing should ever override any of a user's
> settings. However, if the user wants their settings overridden in certain
> circumcstances, then it seems unreasonable to deny them that.

Agreed.  I think the way to fix this is:
- Add some hook in the C code that "realizes" faces so that Lisp code
  can tweak the result.
- Write a new package which uses this hook to get the above result.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16974; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Mar 2014 15:37:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 09 11:37:14 2014
Received: from localhost ([127.0.0.1]:58291 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WMfmr-0005Xl-Vz
	for submit <at> debbugs.gnu.org; Sun, 09 Mar 2014 11:37:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41145)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WMfmp-0005Xc-6X
 for submit <at> debbugs.gnu.org; Sun, 09 Mar 2014 11:37:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WMfmg-0003nb-8F
 for submit <at> debbugs.gnu.org; Sun, 09 Mar 2014 11:37:10 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:38303)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WMfmg-0003nW-56
 for submit <at> debbugs.gnu.org; Sun, 09 Mar 2014 11:37:02 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42812)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WMfmX-0004Ef-Nj
 for bug-gnu-emacs@HIDDEN; Sun, 09 Mar 2014 11:37:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WMfmP-0003lS-Bu
 for bug-gnu-emacs@HIDDEN; Sun, 09 Mar 2014 11:36:53 -0400
Received: from mail-qg0-x22b.google.com ([2607:f8b0:400d:c04::22b]:50912)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <nljlistbox2@HIDDEN>) id 1WMfmP-0003lE-70
 for bug-gnu-emacs@HIDDEN; Sun, 09 Mar 2014 11:36:45 -0400
Received: by mail-qg0-f43.google.com with SMTP id f51so1527032qge.2
 for <bug-gnu-emacs@HIDDEN>; Sun, 09 Mar 2014 08:36:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:date:message-id:mime-version:content-type;
 bh=KM1Q1ZFfyMzs8n2txYZrYj0aVl+N42isePhy9U6miNg=;
 b=nkRLXsJovp2HLXRSJjj6edUerCE8E2J+wV69Ss2SBoOtczxgnD0AN+wVO8hJ/E9+KP
 MF9j+Sb/sV/wSGOt+ePwIY8Uepppd9wtAZflNXGAb6cRqmg3LSdlpFbt3WecGwSRskTo
 2EKtYj+FzNq7VZK5caDEYwM5fLyovTQMJ4pTHUOljoduTchP5HeX2y7NdvSy+G88d30i
 wj6gH6CTZvepKfFW5uHj2lq/tiDeqjfC5DVtWTE5g3WuY/zB4O4WLmrwgSlcVMHI66qO
 qgSXBZNC812xCOUE9XQb4QcwYqLyXXsgmH1dcZItA0MOmqSnB6xSEQ5BNEXFDTPQlj/7
 tDZg==
X-Received: by 10.140.31.247 with SMTP id f110mr33082079qgf.58.1394379404564; 
 Sun, 09 Mar 2014 08:36:44 -0700 (PDT)
Received: from moondust.localdomain.nodomain.none (T8731.WPA.Dal.Ca.
 [134.190.135.49])
 by mx.google.com with ESMTPSA id b16sm49327645qag.14.2014.03.09.08.36.43
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 09 Mar 2014 08:36:44 -0700 (PDT)
From: nljlistbox2@HIDDEN (N. Jackson)
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50;
 [Wishlist] Feature to automatically adjust foreground/background
 colours when contrast below some threshold
Date: Sun, 09 Mar 2014 12:36:42 -0300
Message-ID: <8761nnl6yd.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.8 (---)

Wishlist: It would be very useful to have a feature that automatically
adjusts the foreground and background colours when the contrast between
them is below some threshold value (in some reasonably meaningful units
-- perhaps a percentage), while keeping the colours as close as possible
to their unadjusted values.

Such a feature was proposed (and, IIUC, prototyped) in the discussion of
the bizarrely named :distant-foreground face attribute on the
emacs-devel list around the 7th of January (2014). There it met with the
objection that nothing should ever override any of a user's
settings. However, if the user wants their settings overridden in certain
circumcstances, then it seems unreasonable to deny them that.

Presumably there would be two variables: a Boolean `auto-adjust-contrast' and
a numeric `auto-adjust-contrast-threshold' (or names to that effect). The first
variable could be eliminated with the convention that the feature be
disabled when the threshold variable is set to zero.





Acknowledgement sent to nljlistbox2@HIDDEN (N. Jackson):
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#16974; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.