From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Display text property problem Date: Thu, 14 Jun 2007 12:00:18 +0200 Message-ID: <87vedqq2j1.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181815270 11715 80.91.229.12 (14 Jun 2007 10:01:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Jun 2007 10:01:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 14 12:01:09 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hym8X-0002Qm-QV for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jun 2007 12:01:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hym8X-0005id-Gp for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jun 2007 06:01:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hym8H-0005iV-HG for help-gnu-emacs@gnu.org; Thu, 14 Jun 2007 06:00:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hym8F-0005hy-V6 for help-gnu-emacs@gnu.org; Thu, 14 Jun 2007 06:00:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hym8F-0005hv-Qy for help-gnu-emacs@gnu.org; Thu, 14 Jun 2007 06:00:47 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hym8F-0003YT-C6 for help-gnu-emacs@gnu.org; Thu, 14 Jun 2007 06:00:47 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hym81-0006W6-U3 for help-gnu-emacs@gnu.org; Thu, 14 Jun 2007 12:00:33 +0200 Original-Received: from i577bd0ae.versanet.de ([87.123.208.174]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jun 2007 12:00:33 +0200 Original-Received: from Stephen.Berman by i577bd0ae.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Jun 2007 12:00:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 61 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: i577bd0ae.versanet.de User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45034 Archived-At: I would be very interested to know whether anybody here can reproduce the following in Emacs 22.1 or CVS Emacs from the trunk. (I also see something similar in Emacs 21.3, though there the behavior is somewhat different, due I think to additional bugs that have been fixed in Emacs 22.) And I would be especially interested in, and grateful for, suggestions about how to debug this. Thanks, Steve Berman ______________________________________________________________________ 1. emacs -Q 2. Type "test " 17 times, i.e., enough to make the line of text longer than fill-column. 3. Put the cursor on column 70 and type `M-: (put-text-property (1- (point)) (point) 'display " \n ")' (the display string here is one space + a newline + five spaces, but it is only important that it contain a newline and a following character). Now the buffer displays the following, where `|' marks the left fringe, and the cursor is still on column 70, indicated by `^': |test test test test test test test test test test test test test test | test test test ^ 4. Type M-: (scroll-up 1); now the buffer displays the following, where again `|' marks the left fringe, and the cursor is still on column 70, indicated by `^': |test test test ^ A variant of this bug is seen by doing steps 1-3 and then reducing the frame height (e.g. by dragging the mouse) one line at a time until the window contains just one line (plus the mode line and the minibuffer), at which point the text is displayed as in step 4. Another example: a. emacs -Q b. Type " " (i.e., space) c. Type M-: (put-text-property (1- (point)) (point) 'display "\n***"), so that the buffer displays this: | |*** ^ d. Now typing M-: (scroll-up 1) yields an "End of buffer" error, but clicking the down arrow in the scroll bar (at least with the GTK+ toolkit) once makes the "***" disappear and the cursor get vertically centered in the window. (If you put the cursor after "***" and then click the down arrow in the scroll bar, "***" still vanishes but the cursor is now at the top of the window.) The first example can also be reproduced with emacs -nw -Q, however, the resulting display after step 4 is different: |t test