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: Mon, 08 Dec 2014 17:33:36 +0200 Message-ID: <86d27uw3zj.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418054188 12900 80.91.229.3 (8 Dec 2014 15:56:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2014 15:56:28 +0000 (UTC) To: 19307@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 08 16:56:23 2014 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 1Xy0fe-0002nQ-Eu for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Dec 2014 16:56:22 +0100 Original-Received: from localhost ([::1]:34657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy0fe-0004ha-0C for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Dec 2014 10:56:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy0fR-0004Xj-Us for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 10:56:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xy0fL-00068U-KZ for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 10:56:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy0fL-000687-H7 for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 10:56:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xy0L0-0000Cu-St for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 10:35:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Dec 2014 15:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19307 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1418052841706 (code B ref -1); Mon, 08 Dec 2014 15:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Dec 2014 15:34:01 +0000 Original-Received: from localhost ([127.0.0.1]:57796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xy0K0-0000BC-Jh for submit@debbugs.gnu.org; Mon, 08 Dec 2014 10:34:01 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57997) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xy0Jy-0000B4-It for submit@debbugs.gnu.org; Mon, 08 Dec 2014 10:33:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xy0Jr-0005zd-QC for submit@debbugs.gnu.org; Mon, 08 Dec 2014 10:33:58 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy0Jr-0005zZ-Mp for submit@debbugs.gnu.org; Mon, 08 Dec 2014 10:33:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy0Jl-0005tJ-HV for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 10:33:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xy0Jf-0005vL-Hk for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 10:33:45 -0500 Original-Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:35620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy0Jf-0005vH-BK for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 10:33:39 -0500 Original-Received: by mail-wi0-f170.google.com with SMTP id bs8so7436089wib.5 for ; Mon, 08 Dec 2014 07:33:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=zcYIbMlobmyMxYY0z6mc3roy4nIDqp6rhs5JlXkNHKU=; b=pGsTWOl/qbfqGI4YpmhFJYi2xs0Dlhe67a1+hGPvS1amgNC/z1EHQKaRRfzITOg6/K RygDlF86tjpm0NcsCBSWFPGqAg34KSGYdO4wzCjoyYAKqbMValL82megTD4Sc/uONh8K s+tSLUnX9tUgYBoi1WrzeGNF+PRwmbZuDL/wD/5FsJaXxV2hwVOm9811ISc/yV/bPGSN RGyt1je99AE3n962C8Y7cMAjBBEH5x5Q/mGe54PViDPen7gjIP5pNPbTYR1n6e3EJ0nv aTcUBBS+RTE0Fj91MsvHNX5YhVQzOl1Bsng0eOUoM32LxW3CVwnCOBh29rq76tCLixBr EXZw== X-Received: by 10.194.191.227 with SMTP id hb3mr47456807wjc.79.1418052818634; Mon, 08 Dec 2014 07:33:38 -0800 (PST) Original-Received: from axl (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by mx.google.com with ESMTPSA id js5sm10200847wid.11.2014.12.08.07.33.37 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 08 Dec 2014 07:33:38 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:96995 Archived-At: In the example below, the `after-string' value is propertized with a face. But as long as there is ellipsis at its beginning, the after-string is rendered using the default face. (defun test () (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)))) And here's a somewhat related scenario, with a surprising result: (defun testt () (interactive) (ignore-errors (kill-buffer "testt")) (pop-to-buffer "testt") (add-to-invisibility-spec '(... . t)) (insert " ") (let ((ov (make-overlay (1- (point)) (point)))) (overlay-put ov 'invisible t) (overlay-put ov 'window (selected-window)) (overlay-put ov 'after-string (propertize "xxx" 'face 'highlight))) (insert (propertize "foo" 'invisible '...))) If I modify the scenario to make the overlay empty (and maybe omit inserting the space at the beginning, though this makes no difference), then "xxx" is displayed and even highlighted as expected. In GNU Emacs 24.4.51.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2014-11-28 on axl Repository revision: 6b765b8facbdbb03f28028007885236601652515 Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.1 LTS