From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#19307: 24.4.51; Ellipsis created with `invisible' removes highlighting from overlay after-string after it Date: Tue, 03 Feb 2015 05:33:02 +0200 Message-ID: <54D0416E.7090507@yandex.ru> References: <86d27uw3zj.fsf@yandex.ru> <54CEF33F.3030704@yandex.ru> <83k300gtuk.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1422934457 20729 80.91.229.3 (3 Feb 2015 03:34:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2015 03:34:17 +0000 (UTC) Cc: 19307@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 03 04:34:13 2015 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 1YIUFe-0000FD-Ho for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Feb 2015 04:34:10 +0100 Original-Received: from localhost ([::1]:57621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIUFd-0003tN-Ki for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Feb 2015 22:34:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIUFZ-0003su-Mp for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 22:34:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIUFW-0002JP-Gk for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 22:34:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIUFW-0002JL-Ca for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 22:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YIUFW-0008RV-1d for bug-gnu-emacs@gnu.org; Mon, 02 Feb 2015 22:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Feb 2015 03:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19307 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19307-submit@debbugs.gnu.org id=B19307.142293439332401 (code B ref 19307); Tue, 03 Feb 2015 03:34:01 +0000 Original-Received: (at 19307) by debbugs.gnu.org; 3 Feb 2015 03:33:13 +0000 Original-Received: from localhost ([127.0.0.1]:60850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIUEj-0008QX-8U for submit@debbugs.gnu.org; Mon, 02 Feb 2015 22:33:13 -0500 Original-Received: from mail-wg0-f53.google.com ([74.125.82.53]:40152) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YIUEg-0008QI-D2 for 19307@debbugs.gnu.org; Mon, 02 Feb 2015 22:33:10 -0500 Original-Received: by mail-wg0-f53.google.com with SMTP id a1so42150686wgh.12 for <19307@debbugs.gnu.org>; Mon, 02 Feb 2015 19:33:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=HziWrnjn5Bc6QdJEdi4ZZTXEaJFS/ZvGdWrusTjrMlE=; b=mJ6A6Wjqx6AW9v76AZ/Oz89aXhJrZGanEJmdY+tfCFNE08kiEcw2ZQOmUgb82BiXWJ 0wDltwNJMEpzneXvo2CQagod6QBtWR26RytUN7O4VxztG/FrXtQ0pmQK2rsPtCgSUhbs GWqA8AwERgnjhg1uyv35jEEhyI1iP28P8/4pmeDi3VZIIFYvgP/jLdFe9e9mp9KXsWUi M1fW60/yFoNt9eH8fqcKKyX/EXA9sgqTrWkr6CN4ddJ7dYa9KbUwFsMtQwYj3d8lkyHq 2TpcS3nIE33HGiZcQgC+fploWs3w30aHZhFMXyZM/gNhQ+KVkaL+t4fOGWmYYf4XAzHJ sxEg== X-Received: by 10.194.185.15 with SMTP id ey15mr49765949wjc.3.1422934384644; Mon, 02 Feb 2015 19:33:04 -0800 (PST) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id cx3sm22548485wib.10.2015.02.02.19.33.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Feb 2015 19:33:04 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Thunderbird/33.0 In-Reply-To: <83k300gtuk.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:99007 Archived-At: On 02/02/2015 06:29 PM, Eli Zaretskii wrote: > This bug was introduced in Emacs 23, 10 years(!) ago. Don't know your feelings on this subject, but I'm kinda proud. :) > Now fixed in > commit 27e11c0 on the emacs-24 branch. Thanks, but it introduced a regression. Insert some text at the end, and "xxx" will get displayed twice: (defun test2 () (interactive) (ignore-errors (kill-buffer "test")) (pop-to-buffer "test") (add-to-invisibility-spec '(... . t)) (insert (propertize "foo" 'invisible '...)) (let ((ov (make-overlay (point) (point)))) (overlay-put ov 'invisible t) (overlay-put ov 'window (selected-window)) (overlay-put ov 'after-string (propertize "xxx" 'face 'highlight))) (insert " ")) >> And here's a somewhat related scenario, with a surprising result: >> ... > This is unrelated, AFAICT, and is not a bug: what you have here is 2 > chunks of invisible text, one after another. The display engine skips > all of that, and never examines any additional properties or overlays > in the middle of the invisible text. Emacs always worked like that. I see. Well, that unfortunate. I can only say that it goes against my expectations. > Is there some important real-life use case that bumped into this > surprise? If so, please describe it. Not into the second one, so far. But the first example caused the Company tooltip lose color when displayed after an outline. Not to diminish your efforts, but I've noticed that the fix for each display problem I've reported lately involved move added lines than removed ones. Which looks like adding more special cases. That's worrying.