From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25246: 25.1.90; Buffer not responsible with overlay at buffer end. Date: Thu, 22 Dec 2016 08:55:41 -0500 Message-ID: <87zijo9ig2.fsf@users.sourceforge.net> References: <20161222091305.GC5148@seven> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1482414926 28338 195.159.176.226 (22 Dec 2016 13:55:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2016 13:55:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 25246@debbugs.gnu.org To: "Stefan-W. Hahn" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 22 14:55:22 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cK3py-0005rW-91 for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Dec 2016 14:55:14 +0100 Original-Received: from localhost ([::1]:34348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cK3q2-0003sH-G2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Dec 2016 08:55:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cK3pr-0003pn-7k for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 08:55:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cK3pn-0002eg-DP for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 08:55:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35607) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cK3pn-0002eW-9Y for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 08:55:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cK3pn-00035k-3Y for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 08:55:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Dec 2016 13:55:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25246 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 25246-submit@debbugs.gnu.org id=B25246.148241490211873 (code B ref 25246); Thu, 22 Dec 2016 13:55:03 +0000 Original-Received: (at 25246) by debbugs.gnu.org; 22 Dec 2016 13:55:02 +0000 Original-Received: from localhost ([127.0.0.1]:51004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cK3pg-000351-1Y for submit@debbugs.gnu.org; Thu, 22 Dec 2016 08:55:00 -0500 Original-Received: from mail-io0-f171.google.com ([209.85.223.171]:35141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cK3pW-00034a-Ae; Thu, 22 Dec 2016 08:54:46 -0500 Original-Received: by mail-io0-f171.google.com with SMTP id 15so48451570iom.2; Thu, 22 Dec 2016 05:54:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=waJQ1Ohr3dPELHiFz3PQqTu/SnmyMofH6AryW5/X45M=; b=N6tK6ipoSetGECtcRsGF40UmFNE2FHScvafVZyxPJ5Kd56+q8QdcR4K4Lfati5aArQ qQjT99OFGnxGONq4QtJCzKwc06gpXUBNNtFx4QHXrZ7z/TDBX3tVhGXsLZZwel3xBR1d Jqf/GVmoFKQTD2MtUqM5OE53ercPaN2Fk9duqLEMolGjqR7XWExs3ITvBrBL2laiEnq7 ffTuBQRpcLFo7TJmpJiEgMlMYLWMcny5YezWTgeVi0G5VBLugOFiTXoRtm2ScwmtqSSe Q+StJOZomNBM0W+oqnJi+SFDwV5TCNNmLrMiGnNr3DOWKz+bjPq+k+TUVf3c/3SV97lT UPXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=waJQ1Ohr3dPELHiFz3PQqTu/SnmyMofH6AryW5/X45M=; b=GlWYwfKgtr8jP4pjumzUQSCy825U3ajuHidxzY4RuwGNklStJgh7LzaF9zbl4LcigU Z0/rHjr5Nv4hwGfYkoQfc4GlxE13r3J2tvT+sZc6Szlbb4594M65WAj83NUSIxPrwHdU niA9AsnhmXnmvWU1mnz2ja/RKW2SihAGdHoGBVL8pMf3l0L/cMbyFRHycDI88odZqW5R lb3SS/dG919A2ejcld7CKyg3dcRX9A57oEcba0Pq5Pcbi6kwSFXBrU2FNhynDf9cJ2ec IudFffgWZY66tVv40WnZftVxXWA4E7M8jvy9dp4TxzM+NoBhn8quvXVsvOI9SklxIFKW yD5g== X-Gm-Message-State: AIkVDXIKkZG6aNEEclQp42OaxU0ZJhFSf0M3OTk3vEh7HGxJzoi7SXKSDXeon51GJjmoGA== X-Received: by 10.107.21.2 with SMTP id 2mr9310316iov.179.1482414880623; Thu, 22 Dec 2016 05:54:40 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id b196sm13986487ioe.16.2016.12.22.05.54.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Dec 2016 05:54:39 -0800 (PST) In-Reply-To: <20161222091305.GC5148@seven> (Stefan-W. Hahn's message of "Thu, 22 Dec 2016 10:13:05 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:127323 Archived-At: tags 25246 confirmed quit "Stefan-W. Hahn" writes: > > I have the following problem: > > For showing some information in compile buffer I have a function which > uses the hooks compilation-start-hook and compilation-filter-hook to > scan the compile buffer while compiling and adding an overlay together > with information of the compilation at the end of the compile buffer. > > The compile buffer has > truncate-lines t > > And the function to add the overlay is like: > > (defun xx () > (interactive) > (let ((text (propertize > (concat > (format "Already done %d test (%d positive, %d negative, %d undecided).\n" > 0 0 0 0)) > 'face 'highlight)) > (ov (make-overlay (point-min) (point-min) nil 'front-advance))) > (overlay-put ov 'after-string text) > (goto-char (point-max)) > (move-overlay ov (point-at-bol) (point-at-eol)))) > > Together with an content of a buffer like: > > --- snipp > xxxx xxxxxx xxxxxx `xxxxxxxx_xxxxx_xxxx.xxx'. > ./../../xxxxx/xxxxxx xxxxxxxxxxxxx.xxx xxxxxxx.xxx xxxxxxx.xxx xxxxxxxxx.xxx xxxxx.xxx xxxxxxxxxxxx.xxx xxxxxxxxx.xxx xxxxxxxxxx.xxx xxx_xxxx.xxx xxxxxxxxx.xxx xxxxxxxxxx.xxx xxxxxxxxxx.xxxxxxxxxxxxx.xxxxxxxxxxxxx.xxxxxxxxxxxxx.xxxxxxxxxxxx > --- snipp > > The last line is longer then the screen width, so truncated. > > If running the above defined funtion xx in this buffer (with emacs -Q), the > buffer is not responsible any more afterwards. > > If truncate-lines is nil, it works. I think this is a similar case to #24633 "highlight-region func using (window-hscroll) in :align-to spec can cause inf loop". If you try your recipe in the master branch, Emacs won't freeze, although the overlay you put blinks in and out of visibility on every redisplay (trigged by cursor blinking).