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#18285: 24.3.92; A combination of `display' on text and `invisible' and `before/after-string' leads to the before/after string being displayed twice Date: Sun, 24 Aug 2014 06:48:13 +0400 Message-ID: <53F9526D.90806@yandex.ru> References: <86d2bypwx1.fsf@yandex.ru> <83k365defw.fsf@gnu.org> <53F5FD0B.1070800@yandex.ru> <53F921F8.4080601@yandex.ru> <834mx2mwy8.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 1408848569 4930 80.91.229.3 (24 Aug 2014 02:49:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Aug 2014 02:49:29 +0000 (UTC) Cc: 18285@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 24 04:49:21 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 1XLNrt-0002p1-Du for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Aug 2014 04:49:21 +0200 Original-Received: from localhost ([::1]:42825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLNrt-0000R4-4W for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Aug 2014 22:49:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLNri-0000Pu-GK for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2014 22:49:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLNrb-0007LD-1I for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2014 22:49:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLNra-0007L9-Tc for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2014 22:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XLNra-0000fc-78 for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2014 22:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Aug 2014 02:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18285 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18285-submit@debbugs.gnu.org id=B18285.14088485052528 (code B ref 18285); Sun, 24 Aug 2014 02:49:02 +0000 Original-Received: (at 18285) by debbugs.gnu.org; 24 Aug 2014 02:48:25 +0000 Original-Received: from localhost ([127.0.0.1]:50550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XLNqz-0000ei-9g for submit@debbugs.gnu.org; Sat, 23 Aug 2014 22:48:25 -0400 Original-Received: from mail-la0-f48.google.com ([209.85.215.48]:52179) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XLNqw-0000eU-QM for 18285@debbugs.gnu.org; Sat, 23 Aug 2014 22:48:23 -0400 Original-Received: by mail-la0-f48.google.com with SMTP id gl10so11269353lab.21 for <18285@debbugs.gnu.org>; Sat, 23 Aug 2014 19:48:16 -0700 (PDT) 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=0ocBQiAqKYNzLlv8mlE8kAYB2RilRpBJVFuv3daPhVY=; b=wQeha0+2c31V9wY7xMIinRVrofPNOGHtVv1ngbv5bkcPWCP8nslkW5Jy4bK75dliic j7uZfC4gbG5fUMEFTnnoq+zNWmQyOueNx+OLISWsv6anNV/owVCH1aZIEdAq4YGLrwNq OuwzdNLpORav+wf98wAgpIBrtnfYDV8oM2nUbgGrvLHbSgyDgwj+Y2SEYJSSmrV0836o 08Z94FBorHJFnEwAieuex5gocRX4SiJoi1ZMpQOxETWCuYi7F9D1Q8lyTG/atRN92SeB 3/zWbEj7+F09dPduXOvbCKwHVyAlM+wy+Y2dwuKNni3yWnp/3i8lAi+H2du2563KNy63 m+rA== X-Received: by 10.112.57.195 with SMTP id k3mr11934896lbq.48.1408848496322; Sat, 23 Aug 2014 19:48:16 -0700 (PDT) Original-Received: from [192.168.1.3] ([178.252.98.87]) by mx.google.com with ESMTPSA id ue8sm21186195lac.31.2014.08.23.19.48.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Aug 2014 19:48:15 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <834mx2mwy8.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:92633 Archived-At: On 08/24/2014 06:40 AM, Eli Zaretskii wrote: >> And now I know why that was: `display' doesn't work on empty overlays, >> but `before-string' and `after-string' do. That means +1 workaround. > > Bu empty overlays don't need invisible at all, so I don't see a > problem. The only problem is, I now need to use `after-string' or `display', depending on the context. Which is a small one, as far as problems go. (if (/= (overlay-start ov) (overlay-end ov)) (overlay-put ov 'display disp) (overlay-put ov 'after-string disp))