From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Nicolas P. Rougier (inria)" Newsgroups: gmane.emacs.devel Subject: Inconsistent margin background color in minibuffer Date: Tue, 30 Jul 2024 16:55:17 +0200 Message-ID: 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="8953"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 30 16:56:16 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sYoGu-00024u-Jx for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Jul 2024 16:56:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sYoGA-0001jf-5o; Tue, 30 Jul 2024 10:55:30 -0400 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 1sYoG9-0001fg-0k for emacs-devel@gnu.org; Tue, 30 Jul 2024 10:55:29 -0400 Original-Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sYoG6-0001eK-1K for emacs-devel@gnu.org; Tue, 30 Jul 2024 10:55:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=udQlJLOsiVpfZ9H7kKNgWNfOCJez1DV2/EIP3A/4XqA=; b=UhVQOrikCZmTrbjkIybGUYG942GOwthCJPaxyq/9YahwxToWH9hM5V0u qTAQxOjZNqNP0drLdFtAiUdIdf0iQG5cpZ5YMzlePf5YRehKApFDYTB40 SKu4rVqYZda6Pr7SWnLf4e57d6wwSv0TUt8ALDSXp/ZjkA30qe5U3oto6 o=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=nicolas.rougier@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.09,248,1716242400"; d="scan'208";a="177533686" Original-Received: from 91-160-114-139.subs.proxad.net (HELO M-E7-NPR.local) ([91.160.114.139]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jul 2024 16:55:21 +0200 Received-SPF: pass client-ip=192.134.164.83; envelope-from=nicolas.rougier@inria.fr; helo=mail2-relais-roc.national.inria.fr 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_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322213 Archived-At: I'm experimenting with the minibuffer and I get some problem setting the margin (not fringe) background color. Here is a simple example: (defun setup-minibuffer () (setq-local truncate-lines t) (set-window-margins nil 10 10) (set-window-fringes nil 0 0) (goto-char (point-min)) (face-remap-set-base 'default '(:background "#cccccc"))) (add-hook 'minibuffer-setup-hook #'setup-minibuffer) (completing-read "Very long prompt: " nil nil nil "Very long line that should trigger truncation (hopefully), else, reduce= window width.") When the point is at the start of the prompt, margin background color is white (default bg color I guess) but when the point is at the end of the entry, margin background color is "#cccccc". Is that the expected behavior? If yes, how can I force the margin background color to use the remapped default face ? Nicolas --=20 Nicolas P. Rougier =E2=80=94=E2=80=94 www.labri.fr/perso/nrougier Institute of Neurodegenerative Diseases, Bordeaux