From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.bugs Subject: bug#16760: Ellipses lose all decorative features when 'invisible' overlay starts at a point where underlying text changes its 'face' property. Date: Thu, 04 Feb 2016 22:05:28 +0100 Message-ID: <87si18b2zr.fsf@amu.edu.pl> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454619983 19428 80.91.229.3 (4 Feb 2016 21:06:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2016 21:06:23 +0000 (UTC) Cc: 16760@debbugs.gnu.org To: Pontus Michael Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 04 22:06:12 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 1aRR6R-0002Wa-Dg for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Feb 2016 22:06:11 +0100 Original-Received: from localhost ([::1]:44065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRR6Q-000464-LI for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Feb 2016 16:06:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRR6M-00045u-H5 for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 16:06:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRR6I-0001xR-FJ for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 16:06:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRR6I-0001xN-Bq for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 16:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aRR6I-00030y-6G for bug-gnu-emacs@gnu.org; Thu, 04 Feb 2016 16:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Marcin Borkowski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Feb 2016 21:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16760 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16760-submit@debbugs.gnu.org id=B16760.145461993411554 (code B ref 16760); Thu, 04 Feb 2016 21:06:02 +0000 Original-Received: (at 16760) by debbugs.gnu.org; 4 Feb 2016 21:05:34 +0000 Original-Received: from localhost ([127.0.0.1]:60700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aRR5q-00030I-Dm for submit@debbugs.gnu.org; Thu, 04 Feb 2016 16:05:34 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:43183) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aRR5o-000306-7s for 16760@debbugs.gnu.org; Thu, 04 Feb 2016 16:05:32 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id C26A69D2002; Thu, 4 Feb 2016 22:05:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lOqyTftfNr8y; Thu, 4 Feb 2016 22:05:29 +0100 (CET) Original-Received: from localhost (unknown [109.232.24.28]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 466789D2001; Thu, 4 Feb 2016 22:05:29 +0100 (CET) In-Reply-To: (Pontus Michael's message of "Sat, 15 Feb 2014 03:40:36 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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:112436 Archived-At: Hi all, I confirm that this is reproducible on GNU Emacs 25.1.50.1. (I also suspect that a similar problem exists with ellipsis in Org-mode, when scaling the text. One discussion on the ML suggests a problem with display tables.) Best, Marcin Borkowski On 2014-02-15, at 03:40, Pontus Michael wrote: > I am able to reproduce this issue running emacs -Q with "GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 3.6.3)". > I've wrote a snippet that will allow me to demonstrate this issue: > > (let ((str (concat (propertize "red" 'face '((:foreground "red"))) > (propertize "green" 'face '((:foreground "green"))) > (propertize "blue" 'face '((:foreground "blue"))))) > (printer (lambda (offset) > (let* ((pos1 (+ offset (point))) > (pos2 (+ 1 (length str) pos1))) > (insert str ?\s str ?\n) > (overlay-put (make-overlay pos1 (+ 3 pos1)) > 'face '((:inverse-video t))) > (overlay-put (make-overlay pos2 (+ 3 pos2)) > 'invisible 'outline))))) > (with-current-buffer (get-buffer-create "*test*") > (setq buffer-invisibility-spec '((outline . t))) > (text-scale-set 4) > (display-buffer (current-buffer)) > (erase-buffer) > (mapc printer '(2 3 4)))) > > After running this code you will be able to see, in a new buffer, 3 lines of 2 words, all words are the same, each line features three-letter long overlay over each of the words, > highlighting letters underneath them on left side, and hiding them behind ellipses on right side. > > Whenever an overlay spans from a point where there's a change to 'face' text-property, produced ellipsis doesn't adopt face decoration of neither side. Furthermore, ellipsis > part of the buffer appears to ignore current text-scale setting, which is being set to 4 for temporary buffer in my example. > > Thank you for your attention. > All corrections that may help me improve my further reports are welcomed.