From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Clemens Newsgroups: gmane.emacs.bugs Subject: bug#46177: 27.1; Display problem with minibuffer overlay when using display property Date: Sat, 30 Jan 2021 10:30:21 +0100 Message-ID: References: <453b0490-261a-9e80-5d0c-8b3e4ba6d9f0@posteo.de> <83mtwry4h3.fsf@gnu.org> <83czxmakzc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35423"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: 46177@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 30 10:31:16 2021 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 1l5mb5-00098m-Nw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jan 2021 10:31:15 +0100 Original-Received: from localhost ([::1]:57854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5mb4-0004Ci-MC for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jan 2021 04:31:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5mas-0004CU-PR for bug-gnu-emacs@gnu.org; Sat, 30 Jan 2021 04:31:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42107) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5mas-0007EP-IN for bug-gnu-emacs@gnu.org; Sat, 30 Jan 2021 04:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5mas-0001tF-Eq for bug-gnu-emacs@gnu.org; Sat, 30 Jan 2021 04:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Clemens Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Jan 2021 09:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46177 X-GNU-PR-Package: emacs Original-Received: via spool by 46177-submit@debbugs.gnu.org id=B46177.16119990337230 (code B ref 46177); Sat, 30 Jan 2021 09:31:02 +0000 Original-Received: (at 46177) by debbugs.gnu.org; 30 Jan 2021 09:30:33 +0000 Original-Received: from localhost ([127.0.0.1]:53653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5maP-0001sY-46 for submit@debbugs.gnu.org; Sat, 30 Jan 2021 04:30:33 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:55211) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5maL-0001sI-6S for 46177@debbugs.gnu.org; Sat, 30 Jan 2021 04:30:31 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 40C022400FC for <46177@debbugs.gnu.org>; Sat, 30 Jan 2021 10:30:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1611999022; bh=bIW5CLeT84UyS9gCZ0r1HtKo3wIF/t+iAi2nf732FRc=; h=Subject:To:Cc:From:Date:From; b=ZwN/odnEoUvzKJ09M/H6a4W6E6ScWW+2h29+KR6Oq8ooM+vx3s01I+6IWdLkjlNL7 m/6cMKShU/HPsKzwM7FSoTwNhlepQ2ze5lZTwvQ2QtInnmSG8C4cx3Z0MMurf5VUZd QHXlKpBLq0PQOqAkDHzuxeBUp390jlQsskk4/vFg5Vby7oohFTYGCO8QteM+BVHS8u KW23VmQU5pZSxHBL+3X3iBJAYWvavZ1f3Kpo6ZjMcTWH3lMZ7IgBoz22JIqDaVXqwu VBx+wJiZF868ZvRYsP9r0YjPoGDJWf0b4FwetVWiTS8MESuBzzNdfcAoDHxCRqpMc/ 7Q6uag2waB5aQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DSTT94vw6z9rxR; Sat, 30 Jan 2021 10:30:21 +0100 (CET) In-Reply-To: <83czxmakzc.fsf@gnu.org> Content-Language: en-US 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:198921 Archived-At: > Better in what sense? > > If you mean a way that prevents the background of the prompt from > being applied to the text you display via the overlay, I think the > best/only way is for the overlay string or display string to specify > the background color. Yes, I meant to avoid the issue that the minibuffer prompt face gets applied to strings defined in the display property. The code I posted simply removes any strings in the display spec and inlines them, which seems to work well, too. The problem is not only the background color it seems, I would need to completely undo the effects of the minibuffer prompt face and I don't know how to do that. But what I'm doing now works and if there isn't a better solution I'm fine with using it. I don't understand the reasons for the current behaviour but please check out the following which seems not appropriate to me: (set-face-attribute 'minibuffer-prompt nil :foreground "purple") (minibuffer-with-setup-hook (lambda () (overlay-put (make-overlay (point-max) (point-max) nil t t) 'after-string (concat " from" (propertize " world" 'display " minibuffer")))) (read-string "Hello")) Even with the " from" string between the string defined in the display property gets the prompt face applied.