From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25246: 25.1.90; Buffer not responsible with overlay at buffer end. Date: Thu, 22 Dec 2016 19:04:37 +0200 Message-ID: <83bmw328uy.fsf@gnu.org> References: <20161222091305.GC5148@seven> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1482426385 13187 195.159.176.226 (22 Dec 2016 17:06:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2016 17:06:25 +0000 (UTC) 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 18:06:17 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 1cK6on-000236-3f for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Dec 2016 18:06:13 +0100 Original-Received: from localhost ([::1]:35318 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cK6or-0007Tk-EP for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Dec 2016 12:06:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cK6oi-0007S6-BK for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 12:06:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cK6oc-0007dx-Nu for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 12:06:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36365) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cK6oc-0007dd-KC for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 12:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cK6oc-0001N2-AW for bug-gnu-emacs@gnu.org; Thu, 22 Dec 2016 12:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Dec 2016 17:06:02 +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.14824263345229 (code B ref 25246); Thu, 22 Dec 2016 17:06:02 +0000 Original-Received: (at 25246) by debbugs.gnu.org; 22 Dec 2016 17:05:34 +0000 Original-Received: from localhost ([127.0.0.1]:51764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cK6o2-0001M9-Mg for submit@debbugs.gnu.org; Thu, 22 Dec 2016 12:05:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cK6o1-0001Lv-AW for 25246@debbugs.gnu.org; Thu, 22 Dec 2016 12:05:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cK6nr-0007AK-2D for 25246@debbugs.gnu.org; Thu, 22 Dec 2016 12:05:20 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cK6nq-0007AC-Ud; Thu, 22 Dec 2016 12:05:14 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1095 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cK6no-0002l1-F4; Thu, 22 Dec 2016 12:05:14 -0500 In-reply-to: <20161222091305.GC5148@seven> (stefan.hahn@s-hahn.de) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:127329 Archived-At: > Date: Thu, 22 Dec 2016 10:13:05 +0100 > From: "Stefan-W. Hahn" > > 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. Could you please show a complete recipe, starting from "emacs -Q"? I'm afraid I don't understand from your description how to reproduce the problem, in order to debug it. It should be enough to provide some text to serve as buffer contents, and a Lisp function to put the overlay on that text, such that Emacs stops responding. Thanks.