From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii 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 16:31:13 +0300 Message-ID: <83sikomz1a.fsf@gnu.org> 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> <53F72C7F.7050108@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1408714506 16710 80.91.229.3 (22 Aug 2014 13:35:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2014 13:35:06 +0000 (UTC) Cc: 18285@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 22 15:34:58 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 1XKozS-0000WQ-An for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Aug 2014 15:34:50 +0200 Original-Received: from localhost ([::1]:37161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKozR-0003Qm-TD for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Aug 2014 09:34:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKowr-0007ER-7O for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2014 09:32:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKowl-0004kQ-F2 for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2014 09:32:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKowl-0004kM-Bp for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2014 09:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XKowk-0000cQ-Il for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2014 09:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Aug 2014 13:32: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.14087142872334 (code B ref 18285); Fri, 22 Aug 2014 13:32:02 +0000 Original-Received: (at 18285) by debbugs.gnu.org; 22 Aug 2014 13:31:27 +0000 Original-Received: from localhost ([127.0.0.1]:49368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XKowA-0000bZ-9n for submit@debbugs.gnu.org; Fri, 22 Aug 2014 09:31:27 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:37413) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XKow3-0000aT-Az for 18285@debbugs.gnu.org; Fri, 22 Aug 2014 09:31:22 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NAP00400MLD3K00@mtaout26.012.net.il> for 18285@debbugs.gnu.org; Fri, 22 Aug 2014 16:29:35 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NAP003MXMTB7K10@mtaout26.012.net.il>; Fri, 22 Aug 2014 16:29:35 +0300 (IDT) In-reply-to: <53F72C7F.7050108@yandex.ru> X-012-Sender: halo1@inter.net.il 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:92599 Archived-At: > Date: Fri, 22 Aug 2014 15:41:51 +0400 > From: Dmitry Gutov > CC: 18285@debbugs.gnu.org > > >> 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 that's what people want, it's an easy change. But the question is, won't that cause overlay strings not to be displayed in some cases? > 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. The question is what would you expect from the second example, if it used before-string there? Should the before-string be displayed or shouldn't it? Since invisible makes the beginning of the overlay disappear, under your suggestion it won't be displayed.