From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#69271: 30.0.50; Strange interaction between :inverse-video overlay face and calendar today face Date: Mon, 19 Feb 2024 12:14:28 +0000 Message-ID: <875xykfy6z.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31209"; mail-complaints-to="usenet@ciao.gmane.io" To: 69271@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 19 13:12:08 2024 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 1rc2VD-0007uD-5E for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Feb 2024 13:12:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rc2Uu-0000Rv-Tc; Mon, 19 Feb 2024 07:11:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rc2Uo-0000RV-TV for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 07:11:42 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rc2Un-00009Z-Ta for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 07:11:42 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rc2V8-0006Mr-Lm for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 07:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Feb 2024 12:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69271 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.170834467724423 (code B ref -1); Mon, 19 Feb 2024 12:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Feb 2024 12:11:17 +0000 Original-Received: from localhost ([127.0.0.1]:40515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rc2UP-0006Lq-27 for submit@debbugs.gnu.org; Mon, 19 Feb 2024 07:11:17 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:56626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rc2UL-0006Lh-Dr for submit@debbugs.gnu.org; Mon, 19 Feb 2024 07:11:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rc2Tz-0000Gc-R2 for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 07:10:51 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rc2Tw-0008Tx-NT for bug-gnu-emacs@gnu.org; Mon, 19 Feb 2024 07:10:51 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0DAA6240029 for ; Mon, 19 Feb 2024 13:10:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708344645; bh=mO2BH+tUq+xsKLeHTSqybiRsmUEflc79vA3t95QFJIg=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=oD3/lQv7w8azJCIUa8Jzcae1hq99rS0XFBqZpQ1xNnoNcCCLweQpaXUiPuhdHmrCU CVTsjFpM5taYxXPfZJaVOIUnlV1fz6ZvPPBLMem2lAemOBDpT/hcDFoIK6LFq2Onv0 Qs5aCY6AtRXsKqHNqzYkCcXDuDNWy5u+j0KgwppLq27IKxzsh/15uJvquXhsery3+R /xt9nBhHPCb8LHqvc0i1FDaAG4p8Gt5mTMVoq6OIO1p68sxrwLvwItjALbgHLuL7B1 9rPHcMy9fTx1olFC2gi0ZfdGRkXnBX3opYy0pRc3/ieCnt/jM2WJIYqxaSzQO4uumI 9pdz/gUcqfv6w== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TdhFc30Rdz9rxN for ; Mon, 19 Feb 2024 13:10:43 +0100 (CET) Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280246 Archived-At: Originally reported in https://list.orgmode.org/orgmode/CALEYq09=JKfzRY26fohLPYz7_2mnvhg_LGsjnQwQKov5SbqkYg@mail.gmail.com/ Steps to reproduce: 1. emacs -Q 2. Insert the following code into *scratch* buffer (defface yant/test '((t :foreground "red" :weight bold)) "") (defface yant/test-inv '((t :foreground "red" :inverse-video t)) "") (require 'calendar) ;; (dotimes (_ 5) ;; (let* ((mark-calendar ;; (lambda () ;; (calendar-mark-visible-date ;; (read (format-time-string "(%m %d %Y)")) ;; 'yant/test))) ;; (calendar-today-visible-hook)) ;; (add-hook 'calendar-today-visible-hook mark-calendar) ;; (calendar) ;; (setq cursor-type nil) ;; (let ((ov (make-overlay (1- (point)) (1+ (point))))) ;; (overlay-put ov 'face 'yant/test-inv))) ;; (read-char "Observe overlay obeying inverse-video. Press any key") ;; (kill-buffer calendar-buffer)) (dotimes (_ 50) (let* ((mark-calendar (lambda () (calendar-mark-visible-date (read (format-time-string "(%m %d %Y)")) (list :foreground "red" :weight 'bold)))) (calendar-today-visible-hook)) (add-hook 'calendar-today-visible-hook mark-calendar) (calendar) (setq cursor-type nil) (let ((ov (make-overlay (1- (point)) (1+ (point))))) (overlay-put ov 'face 'yant/test-inv))) (read-char "Observe overlay sometimes *not* obeying inverse-video. Press any key") (kill-buffer calendar-buffer)) 3. M-x eval-buffer 4. Observe today date in the calendar fontified inconsistently as the code is executed multiple times. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-02-18 built on localhost Repository revision: 951379a0983ea66b1396d07628bb726f033ea24b Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101011 System Description: Gentoo Linux Configured using: 'configure JAVAC=/etc/java-config-2/current-system-vm/bin/javac' -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at