From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Christopher Dimech <dimech@gmx.com>
Newsgroups: gmane.emacs.bugs
Subject: bug#44708: Background Colour on State, bleeds into Headline Numbering
Date: Tue, 17 Nov 2020 17:37:45 +0100
Message-ID: <trinity-e62c6f85-73d9-4b27-bc7c-ad4726df9959-1605631065424@3c-app-mailcom-bs03>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="15914"; mail-complaints-to="usenet@ciao.gmane.io"
To: 44708@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 17 17:38:37 2020
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1kf404-00042n-Oo
	for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Nov 2020 17:38:36 +0100
Original-Received: from localhost ([::1]:48912 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1kf403-0000KR-EN
	for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Nov 2020 11:38:35 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39816)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1kf3zW-0000Jx-C0
 for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2020 11:38:02 -0500
Original-Received: from debbugs.gnu.org ([209.51.188.43]:49449)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1kf3zW-0001pC-2o
 for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2020 11:38:02 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1kf3zW-00063J-0f
 for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2020 11:38:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Christopher Dimech <dimech@gmx.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Tue, 17 Nov 2020 16:38:01 +0000
Resent-Message-ID: <handler.44708.B.160563107523246@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 44708
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.160563107523246
 (code B ref -1); Tue, 17 Nov 2020 16:38:01 +0000
Original-Received: (at submit) by debbugs.gnu.org; 17 Nov 2020 16:37:55 +0000
Original-Received: from localhost ([127.0.0.1]:60995 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1kf3zP-00062r-5v
 for submit@debbugs.gnu.org; Tue, 17 Nov 2020 11:37:55 -0500
Original-Received: from lists.gnu.org ([209.51.188.17]:37666)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dimech@gmx.com>) id 1kf3zL-00062i-RH
 for submit@debbugs.gnu.org; Tue, 17 Nov 2020 11:37:53 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39792)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dimech@gmx.com>) id 1kf3zL-0000JB-Kf
 for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2020 11:37:51 -0500
Original-Received: from mout.gmx.net ([212.227.15.15]:36253)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dimech@gmx.com>) id 1kf3zI-0001iY-1R
 for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2020 11:37:51 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1605631065;
 bh=JOQmeH+dhWtyIgl8v05VlS8qDgQJ0ZSyJPRbzQGWKiI=;
 h=X-UI-Sender-Class:From:To:Subject:Date;
 b=EQmrp2oaqYH6utO0UVoMPJURe20QWlLYHQphcodFijt9RAjWO219xznXLFpquYd/X
 6himuW1FZtscBJFkkiQ7Fe0fej7g2Ooo2aLy9ViA33mD0ztkqX+IDPzpihkrRdhjuT
 wyAttzio0ihjYe5PfL+A4BA9eiYdSKTh6FiBK7Bs=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net
 (3c-app-mailcom-bs03.server.lan [172.19.170.169]) (via HTTP); Tue, 17 Nov
 2020 17:37:45 +0100
Importance: normal
Sensitivity: Normal
X-Priority: 3
X-Provags-ID: V03:K1:DzBwlziYdhYq+4xs3YTsIZrk46Vx1SfbOyACGpJEAEiHmNXxxPDGrtAzl/HvFK6NYHMas
 RouylYt6R/je5guMhf5yDH1+FHZRt/8B58wSxdVCqODE1Cr6yyD6wPSxKniJwVXKfQYkToJfVyU3
 pY/vPImP1o9pFHGMYZM+2RsQNWlobsE952dzqLofIbRilZv0JtJpgJsJIfigIaE4VsbYDS4JyQkW
 9n/4mVoqKn40KYw0F8XH76dMcZ2nGqwkJgJiIMP2+ql1EBxmf8zWvKtfG1Qkjc2v3Qp2Vk/Q//se
 J4=
X-UI-Out-Filterresults: notjunk:1;V03:K0:aMaMskcZu/A=:gL41J2em3jxeIW8MxBtDIA
 NDSPTl269Ihhhpgq6VySVdFK4HRzxDF6c5Y670BcpDf62es8FYeywu+KnEr36rFlZSg0GLjL4
 b374pOXNGb1I+Q743iJGZsDUbKC9oIk63B+WEebeqxcTsiH4F/iom0trB1RRLjd5HtenOwMEz
 1vF1Eb812PSKAJtJOJu5R8MEGQEiSAIKzEH74h5EPe22o7hymQlw28uYNsw06zbbJb34HNWGk
 vZiMsQpr9VZwvcmAezPkPKuUaFOb7BhwjMi43mrzm/NpQ2S7mRQ1sQphA98F6rXfi950Noq9+
 KZ1G65R23lvc8a0gJ0L0H6gWeWWqrxLznJI4EC0875n4aLx+eO/+x2FgwkARgoCCFLLRGiZWa
 sk/h06ki2IlX30H+5O9wGp8Ai+JBxThAYcZVQzcxmJRPeNirgBkBj1LiQBX1OTvJPmMwNvr1y
 LwtWqxgNzmId4uVBJstpUiH/0yf9cCEBIV3JYX6vYFifVB7GpvhNurNQtCP2SIY59XYN7YuAP
 757xIxQmvKLK2DXU7OXlscQMwwM3cFXVxbhW6FDeWV2UUZV0FB8KUItbwzMy98nVigfqemUPX
 RrTrYg2z+CuOo=
Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com;
 helo=mout.gmx.net
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/17 11:37:45
X-ACL-Warn: Detected OS   = Linux 2.2.x-3.x [generic] [fuzzy]
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.bugs:193556
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/193556>

I have set headline numbering and added org-todo-keywords
with background highlighting using org-todo-keyword-faces.

;; Number Headlines
(setq org-startup-numerated t)

;; Sets Todo Keywords and Colour

(setq org-todo-keywords
   '( (seqeunce "TODO" "STARTED" "WAITING" "FINALISE" "|" "DONE")
      (sequence "CRITICAL" "CR-STARTED" "CR-WAITING" "CR-FINALISE"
                "|" "CR-DONE")  ))

(setq org-todo-keyword-faces
   '( ("TODO" . (:background "black" :foreground "red" :weight bold))
      ("STARTED" . (:background "black" :foreground "magenta" :weight bold=
))
      ("WAITING" . (:background "magenta" :foreground "black" :weight bold=
))
      ("FINALISE" . (:background "magenta" :foreground "black" :weight bol=
d))
      ("DONE" . (:background "orange" :foreground "black" :weight bold))
      ("CRITICAL" . (:background "blak" :foreground "red" :weight bold))
      ("CR-STARTED" . (:background "red" :foreground "black" :weight bold)=
)
      ("CR-WAITING" . (:background "red" :foreground "black" :weight bold)=
)
      ("CR-FINALISE" . (:background "red" :foreground "black" :weight bold=
))
      ("CR-DONE" . (:background "orange" :foreground "black" :weight bold)=
) ))

I then write a headline with a state

* 1 Test

** 1.1 [DONE] Task

The problem is that Emacs will use the background colour for DONE to set
the background colour for the Headline Numbering as well, not to the
state DONE only.

=2D--------------------
Christopher Dimech
General Administrator - Naiad Informatics - GNU Project (Geocomputation)
- Geophysical Simulation
- Geological Subsurface Mapping
- Disaster Preparedness and Mitigation
- Natural Resource Exploration and Production
- Free Software Advocacy