From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 26 22:05:41 2014 Received: (at submit) by debbugs.gnu.org; 27 Nov 2014 03:05:41 +0000 Received: from localhost ([127.0.0.1]:46793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XtpOn-0005wK-5h for submit@debbugs.gnu.org; Wed, 26 Nov 2014 22:05:41 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34840) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XtpOi-0005w8-Cj for submit@debbugs.gnu.org; Wed, 26 Nov 2014 22:05:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtpOd-0003lr-6Q for submit@debbugs.gnu.org; Wed, 26 Nov 2014 22:05:35 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:60273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtpOd-0003lj-2r for submit@debbugs.gnu.org; Wed, 26 Nov 2014 22:05:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtpOY-0008UZ-2P for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 22:05:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtpOT-0003hx-9U for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 22:05:25 -0500 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:49511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtpOT-0003hj-3Q for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 22:05:21 -0500 Received: by mail-wi0-f171.google.com with SMTP id bs8so14411022wib.4 for ; Wed, 26 Nov 2014 19:05:20 -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=MVZdB171MuQ/MFnL/yu3G2lKkTyAdHJWcbxE1Z2wJRs=; b=SgRu3LGTiEarIcILHDGSi2uUInnJFopRC2NoGoosFTmSBaw+/gbIaGIZxu1Map/ajl Stzcj1Yw1jJpuYkjqVr0J7octEPmzXpWRzpWj1YQWgTKrviTTQVEvJhjG5CNa7Hdulyv S1LuWWAFM50oHyF8GHLOD2HtfaCs6N4A2vEnxaSOXSQWDy6KgVS1LAq99cU511paQmjQ /mp3SDror892ZcSDjckjxSEsatOM/FU3Qcq5mVYCt8rn9WEUCiBHbLhF1Y8vU4tJAmCw OQW5MFGC8irj6Mk6/m4RWdBYCYUipU8HM7nkZHzqbi1UAfp2UeLaCm/1bpF4Moz6wvnM skLg== X-Received: by 10.194.94.132 with SMTP id dc4mr55841008wjb.56.1417057519959; Wed, 26 Nov 2014 19:05:19 -0800 (PST) Received: from axl (93-12-230.netrun.cytanet.com.cy. [93.109.12.230]) by mx.google.com with ESMTPSA id i3sm23352399wix.0.2014.11.26.19.05.18 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Nov 2014 19:05:19 -0800 (PST) From: Dmitry Gutov To: bug-gnu-emacs@gnu.org Subject: 24.4.51; Faulty interaction between overlays with display-related properties in TTY Date: Thu, 27 Nov 2014 05:05:16 +0200 Message-ID: <868uixbaxf.fsf@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Calling the command defined below results in different behaviors between a graphical frame and a text terminal. (defun display-test () (interactive) (pop-to-buffer (get-buffer-create "display-test")) (insert "aaa\nbbb\nccc\nddd\neee") (goto-char 14) (let ((ias (make-overlay 4 16)) (bsf (make-overlay 1 4))) (overlay-put ias 'invisible t) (overlay-put ias 'after-string "\nxxx\nyyy\nzzz") (overlay-put bsf 'before-string (propertize "!" 'display (list 'left-fringe 'question-mark 'warning))))) Evaluate this, then type `M-x display-test'. In graphical mode, I see what I'd expect: aaa xxx yyy zzz eee (with a fringe indicator on the first line), whereas when trying this in terminal, I see: aaa eee Originally reported in https://github.com/flycheck/flycheck/issues/526. In GNU Emacs 24.4.51.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2014-11-16 on axl Repository revision: c613f4d6c12ad7a8ebbc88dcef48949c6a775996 Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.1 LTS From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 27 11:41:36 2014 Received: (at 19201) by debbugs.gnu.org; 27 Nov 2014 16:41:36 +0000 Received: from localhost ([127.0.0.1]:47788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xu28N-0004Qo-Vj for submit@debbugs.gnu.org; Thu, 27 Nov 2014 11:41:36 -0500 Received: from mtaout28.012.net.il ([80.179.55.184]:37299) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xu28M-0004Qd-A3 for 19201@debbugs.gnu.org; Thu, 27 Nov 2014 11:41:35 -0500 Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NFP00400HU31Y00@mtaout28.012.net.il> for 19201@debbugs.gnu.org; Thu, 27 Nov 2014 18:39:02 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NFP0016KI92L540@mtaout28.012.net.il>; Thu, 27 Nov 2014 18:39:02 +0200 (IST) Date: Thu, 27 Nov 2014 18:41:51 +0200 From: Eli Zaretskii Subject: Re: bug#19201: 24.4.51; Faulty interaction between overlays with display-related properties in TTY In-reply-to: <868uixbaxf.fsf@yandex.ru> X-012-Sender: halo1@inter.net.il To: Dmitry Gutov Message-id: <83bnnsoasw.fsf@gnu.org> References: <868uixbaxf.fsf@yandex.ru> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 19201 Cc: 19201@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Dmitry Gutov > Date: Thu, 27 Nov 2014 05:05:16 +0200 > > Calling the command defined below results in different behaviors between > a graphical frame and a text terminal. > > (defun display-test () > (interactive) > (pop-to-buffer (get-buffer-create "display-test")) > (insert "aaa\nbbb\nccc\nddd\neee") > (goto-char 14) > (let ((ias (make-overlay 4 16)) > (bsf (make-overlay 1 4))) > (overlay-put ias 'invisible t) > (overlay-put ias 'after-string "\nxxx\nyyy\nzzz") > (overlay-put bsf 'before-string > (propertize "!" > 'display > (list 'left-fringe > 'question-mark > 'warning))))) > > Evaluate this, then type `M-x display-test'. > > In graphical mode, I see what I'd expect: > > aaa > xxx > yyy > zzz > eee > > (with a fringe indicator on the first line), > > whereas when trying this in terminal, I see: > > aaa > eee For the record, this has nothing to do with TTY vs GUI frames. You can have the same problem on a GUI frame if you use a bogus symbol for the fringe bitmap, like 'foobar instead of 'question-mark. Evidently, the Founding Fathers never meant for us to use display properties on after-strings that specify display on the fringe. Emacs 22 and 23 infloop if you try your recipe on a TTY there. Emacs 24.1 is the first release that doesn't, and it already has this bug. Fixed in 6b765b8 on the emacs-24 branch. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 27 19:02:59 2014 Received: (at 19201-done) by debbugs.gnu.org; 28 Nov 2014 00:02:59 +0000 Received: from localhost ([127.0.0.1]:47978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xu91W-0001vu-R7 for submit@debbugs.gnu.org; Thu, 27 Nov 2014 19:02:59 -0500 Received: from mail-wg0-f44.google.com ([74.125.82.44]:40668) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xu91V-0001vm-6G for 19201-done@debbugs.gnu.org; Thu, 27 Nov 2014 19:02:57 -0500 Received: by mail-wg0-f44.google.com with SMTP id b13so7577450wgh.17 for <19201-done@debbugs.gnu.org>; Thu, 27 Nov 2014 16:02:56 -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=jFBL8m33HJMN1X8rLrbCo5tuJ4QOavuhyjQrTfM4nfA=; b=skYtQ365uKnKNwNNsZXjSqtvThSYJyBUt7iPuyaxFhEr6vADKySCrjmsMrjtoWmOym GeLxPPxnwU79Vmz66Mgct4jJ/50KmpnAN0SOA6tzp3+B1hivIp0f2M+zgs9KASTp5u2q aRzHycfW1vYbn31aMZr+6ZPJ/ELaQwpdDYM3qiq1VKTuK0Cx9kq/OXS0fzlfWBhJu6Jh 4zMYVlWJ3HV1mH7GkXzsQvxze+KxtmskXH8wrjMK0mZmhaqJlEuzJ9Q/iYgi+Qw1gbmw VGgC/tb1sEPfbEV/BSlpj0fxbFI3KTTX6KBAlvtNELcTOTXNbqyB5PdBWfwJA70pwBhD DG+g== X-Received: by 10.194.187.164 with SMTP id ft4mr62747390wjc.76.1417132976540; Thu, 27 Nov 2014 16:02:56 -0800 (PST) Received: from [192.168.10.25] (93-12-230.netrun.cytanet.com.cy. [93.109.12.230]) by mx.google.com with ESMTPSA id td9sm13633003wic.15.2014.11.27.16.02.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Nov 2014 16:02:56 -0800 (PST) Message-ID: <5477BBAE.1090405@yandex.ru> Date: Fri, 28 Nov 2014 02:02:54 +0200 From: Dmitry Gutov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#19201: 24.4.51; Faulty interaction between overlays with display-related properties in TTY References: <868uixbaxf.fsf@yandex.ru> <83bnnsoasw.fsf@gnu.org> In-Reply-To: <83bnnsoasw.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 19201-done Cc: 19201-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 11/27/2014 06:41 PM, Eli Zaretskii wrote: > For the record, this has nothing to do with TTY vs GUI frames. You > can have the same problem on a GUI frame if you use a bogus symbol for > the fringe bitmap, like 'foobar instead of 'question-mark. Makes sense. > Evidently, the Founding Fathers never meant for us to use display > properties on after-strings that specify display on the fringe. Emacs > 22 and 23 infloop if you try your recipe on a TTY there. Emacs 24.1 > is the first release that doesn't, and it already has this bug. The given example uses before-string, but I guess you mean both. That's odd, though, because when used with overlays, before- and after-strings are the most flexible for this and similar use cases. > Fixed in 6b765b8 on the emacs-24 branch. Works fine. Thanks! From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 28 03:19:21 2014 Received: (at 19201) by debbugs.gnu.org; 28 Nov 2014 08:19:21 +0000 Received: from localhost ([127.0.0.1]:48090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XuGls-0007jo-GF for submit@debbugs.gnu.org; Fri, 28 Nov 2014 03:19:20 -0500 Received: from mtaout26.012.net.il ([80.179.55.182]:59804) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XuGlp-0007jf-VJ for 19201@debbugs.gnu.org; Fri, 28 Nov 2014 03:19:19 -0500 Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NFQ00N00PIVTP00@mtaout26.012.net.il> for 19201@debbugs.gnu.org; Fri, 28 Nov 2014 10:17:02 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NFQ00MG4POEY310@mtaout26.012.net.il>; Fri, 28 Nov 2014 10:17:02 +0200 (IST) Date: Fri, 28 Nov 2014 10:18:20 +0200 From: Eli Zaretskii Subject: Re: bug#19201: 24.4.51; Faulty interaction between overlays with display-related properties in TTY In-reply-to: <5477BBAE.1090405@yandex.ru> X-012-Sender: halo1@inter.net.il To: Dmitry Gutov Message-id: <83sih3n3g3.fsf@gnu.org> References: <868uixbaxf.fsf@yandex.ru> <83bnnsoasw.fsf@gnu.org> <5477BBAE.1090405@yandex.ru> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 19201 Cc: 19201@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Fri, 28 Nov 2014 02:02:54 +0200 > From: Dmitry Gutov > CC: 19201-done@debbugs.gnu.org > > On 11/27/2014 06:41 PM, Eli Zaretskii wrote: > > > Evidently, the Founding Fathers never meant for us to use display > > properties on after-strings that specify display on the fringe. Emacs > > 22 and 23 infloop if you try your recipe on a TTY there. Emacs 24.1 > > is the first release that doesn't, and it already has this bug. > > The given example uses before-string, but I guess you mean both. > > That's odd, though, because when used with overlays, before- and > after-strings are the most flexible for this and similar use cases. When looked upon from a user POV, I agree. But from the implementation POV, I'm telling you: it's a nightmare. The state machine in handle_stop alone is bad enough. That stuff is in sore need of refactoring, but I'm too coward^H^H^H^H^H^Hbusy to do that myself. From unknown Sat Jun 21 05:09:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 26 Dec 2014 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator