From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22323: Font fallback causes inconsistent stacking of faces in overlays with invisible property Date: Thu, 07 Jan 2016 20:22:44 +0200 Message-ID: <831t9t2qrv.fsf@gnu.org> References: <568E97E7.2030604@live.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1452191010 32518 80.91.229.3 (7 Jan 2016 18:23:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Jan 2016 18:23:30 +0000 (UTC) Cc: 22323@debbugs.gnu.org To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 07 19:23:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aHFDL-00033D-1e for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Jan 2016 19:23:11 +0100 Original-Received: from localhost ([::1]:60033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHFDK-0005ce-AH for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Jan 2016 13:23:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHFDF-0005cQ-Qw for bug-gnu-emacs@gnu.org; Thu, 07 Jan 2016 13:23:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHFDC-0000L6-L2 for bug-gnu-emacs@gnu.org; Thu, 07 Jan 2016 13:23:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHFDC-0000L1-H8 for bug-gnu-emacs@gnu.org; Thu, 07 Jan 2016 13:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aHFDC-0005mY-DD for bug-gnu-emacs@gnu.org; Thu, 07 Jan 2016 13:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Jan 2016 18:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22323-submit@debbugs.gnu.org id=B22323.145219096422186 (code B ref 22323); Thu, 07 Jan 2016 18:23:02 +0000 Original-Received: (at 22323) by debbugs.gnu.org; 7 Jan 2016 18:22:44 +0000 Original-Received: from localhost ([127.0.0.1]:41958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aHFCt-0005lm-OY for submit@debbugs.gnu.org; Thu, 07 Jan 2016 13:22:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36829) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aHFCr-0005lR-St for 22323@debbugs.gnu.org; Thu, 07 Jan 2016 13:22:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHFCj-0000A7-O5 for 22323@debbugs.gnu.org; Thu, 07 Jan 2016 13:22:36 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHFCj-0000A3-KE; Thu, 07 Jan 2016 13:22:33 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1881 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aHFCi-0002Te-Ln; Thu, 07 Jan 2016 13:22:33 -0500 In-reply-to: <568E97E7.2030604@live.com> (message from =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel on Thu, 7 Jan 2016 11:52:55 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111328 Archived-At: > From: Clément Pit--Claudel > Date: Thu, 7 Jan 2016 11:52:55 -0500 > > Font fallback seems to break face stacking for invisible overlays: > > This works fine: > > (with-current-buffer (get-buffer-create "No prettification: ellispis is highlighed") > (erase-buffer) > (fundamental-mode) > (add-to-invisibility-spec '(outline . t)) > (insert "abc!!def!!ghi") > (let ((ov (make-overlay 6 9))) > (overlay-put ov 'invisible 'outline)) > (let ((ov (make-overlay (point-min) (point-max)))) > (overlay-put ov 'face 'region)) > (pop-to-buffer (current-buffer))) > > This doesn't work (assuming that ℙ is not in your usual font): > > (with-current-buffer (get-buffer-create "No prettification: ellispis is highlighed") > (erase-buffer) > (fundamental-mode) > (add-to-invisibility-spec '(outline . t)) > (insert "abcℙℙdefℙℙghi") > (let ((ov (make-overlay 6 9))) > (overlay-put ov 'invisible 'outline)) > (let ((ov (make-overlay (point-min) (point-max)))) > (overlay-put ov 'face 'region)) > (pop-to-buffer (current-buffer))) This is indeed the same issue as bug#22320. Using a different font requires a different face, so you have here exactly the same situation as in #22320: the last visible character ℙ has a face that is different from the first invisible character d.