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: Fri, 22 Aug 2014 15:41:51 +0400 Message-ID: <53F72C7F.7050108@yandex.ru> References: <86d2bypwx1.fsf@yandex.ru> <83k365defw.fsf@gnu.org> <53F5FD0B.1070800@yandex.ru> <83ppftc2kv.fsf@gnu.org> <53F6130A.5090102@yandex.ru> <83mwaxbze5.fsf@gnu.org> <53F695CF.1040606@yandex.ru> <83bnrdauwa.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 1408707816 26882 80.91.229.3 (22 Aug 2014 11:43:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2014 11:43:36 +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 Fri Aug 22 13:43:26 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 1XKnFb-00061D-5F for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Aug 2014 13:43:23 +0200 Original-Received: from localhost ([::1]:36443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKnFa-00012C-R5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Aug 2014 07:43:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKnFQ-0000ye-9V for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2014 07:43:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKnFH-0002FB-76 for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2014 07:43:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKnFH-0002Ez-2k for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2014 07:43:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XKnFG-0006RY-Er for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2014 07:43: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: Fri, 22 Aug 2014 11:43: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.140870772424695 (code B ref 18285); Fri, 22 Aug 2014 11:43:02 +0000 Original-Received: (at 18285) by debbugs.gnu.org; 22 Aug 2014 11:42:04 +0000 Original-Received: from localhost ([127.0.0.1]:49348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XKnEJ-0006QE-IV for submit@debbugs.gnu.org; Fri, 22 Aug 2014 07:42:03 -0400 Original-Received: from mail-lb0-f174.google.com ([209.85.217.174]:35820) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XKnEG-0006Pg-G1 for 18285@debbugs.gnu.org; Fri, 22 Aug 2014 07:42:01 -0400 Original-Received: by mail-lb0-f174.google.com with SMTP id c11so9446024lbj.33 for <18285@debbugs.gnu.org>; Fri, 22 Aug 2014 04:41:54 -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=5Xkax9w6LmFx+szKAgkVnBsvqmCP5CeSGJnZ1fwNJtg=; b=FyX40zMdbNo6c7LoiDlByvkRnDx4npHGOOr3+oDtKV7t27dannG2IC4l8TP5bJzceZ C3qGs61LvhqbIXxh6EaYHzE8WAR88VDWAI2umu+Mt0z+Nd7JraldkZ/37Yn7BQoB7V/T nFs+3CthXm5UlQ4pvuvU/ptCtWNpn6WdmJvRIKFM6Qag5Y1P6Je+rlx3Hrkdm2UshlSO 8bU9t/emX+Q776TkHKZFEIErYH+M8W/RaZtEm+1kECXWkMR6K7J1LQRrX967lTpOWcaq q46frAeKx4WhEc/FwRpY6i4gDSYkfrJ6py7xN2FiZwXWZRHUo6y1eW2GybMKtoTzrYZU lamg== X-Received: by 10.152.120.38 with SMTP id kz6mr4401086lab.8.1408707714233; Fri, 22 Aug 2014 04:41:54 -0700 (PDT) Original-Received: from [192.168.1.3] ([178.252.98.87]) by mx.google.com with ESMTPSA id q2sm3001701laq.24.2014.08.22.04.41.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Aug 2014 04:41:53 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <83bnrdauwa.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:92594 Archived-At: On 08/22/2014 10:41 AM, Eli Zaretskii wrote: > I have no idea how rare it will be. FWIW, for the past year, all the > display-related bugs are for pretty rare cases. What does that tell > you about user expectations? I dunno. Something's changing? For example, I've encountered this specific bug now because the `report-emacs-bug' buffer uses `display' in Emacs 24.4, but 24.3 used `intangible' there. (And only after I've fixed another `display'-related bug in Company popup rendering.) >> Anyway, how about the other way around? I'll like this less, but why not >> make `invisible' inactive when `display' is set? > > That's what Emacs does already. The only place where invisible still > matters in this situation is when deciding how and where to display > overlay strings. I thought I explained that earlier in this thread. So, why not make it matter less? "If display is set, don't interpret invisible" should be a straightforward piece of logic. If `display' takes priority over `invisible', I would expect (let ((pt (point))) (insert (propertize "a" 'display "bbb")) (let ((o (make-overlay pt (point)))) (overlay-put o 'after-string "foo\nbar"))) and (let ((pt (point))) (insert (propertize "a" 'display "bbb")) (let ((o (make-overlay pt (point)))) (overlay-put o 'invisible t) (overlay-put o 'after-string "foo\nbar"))) to be rendered the same. > My opinion is that users and Lisp programmers should not enter these > dark corners. Yeah, maybe.