From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Overlay after-string with cursor (Stefan Monnier) Date: Tue, 13 Aug 2019 03:51:31 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="253475"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: "otadmor ." Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 13 09:51:51 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hxRaw-0013gB-My for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Aug 2019 09:51:51 +0200 Original-Received: from localhost ([::1]:50000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hxRav-0001eR-OO for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Aug 2019 03:51:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37686) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hxRak-0001e9-Rp for help-gnu-emacs@gnu.org; Tue, 13 Aug 2019 03:51:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hxRaj-0007Wo-Qp for help-gnu-emacs@gnu.org; Tue, 13 Aug 2019 03:51:38 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:50948) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hxRaj-0007V7-KP for help-gnu-emacs@gnu.org; Tue, 13 Aug 2019 03:51:37 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id F084085AD3; Tue, 13 Aug 2019 03:51:35 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BC47580B63; Tue, 13 Aug 2019 03:51:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1565682694; bh=ZGW5wUR0qfudNQ3eHPmh67JXs8fujbj5YsjBQWBcN08=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=PDwimsSGcx0qjPSZ98k6/ijFnhyGsHMKT0BJSAJOk3PToxkRXnez5inad95Elvqzt 7AMPADt4YvO+smwu6KB9G3VbGK/sqWVlgTVdcs95RTX2Vtdc4dYPJHv13lJufKUX57 Xs38NNTJ6uHk07rhRxayqneRN+x1+FDxnPmdgL5x1SMsDjgyn8oCdKtvGuTOGKCyQ2 YkldhzE0cdyWv6rnPo100gSCr1KtXYve8g4e8Ru+n9DC31IZSF53fsc1CGo5Xh4L+K NwkA8hdChroXz2kyZu5rfhMc4dANTXyyWzsb3urJcW0/MFqL4JPud4lverDKWsD7Gn kXwf5SLSxmIJg== Original-Received: from alfajor (dyn.83-228-179-131.dsl.vtx.ch [83.228.179.131]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 056AE120C3F; Tue, 13 Aug 2019 03:51:33 -0400 (EDT) In-Reply-To: (otadmor .'s message of "Mon, 12 Aug 2019 13:03:25 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121337 Archived-At: > The jump is exactly what I have experienced and did not quite understood > what is hapenning there. Should it be possible to scroll by pixel into the > 'after-string? Yes, if you want to synchronize the scrolling between two windows, you can indeed do that (not that it's a separate issue from synchronizing the cursor). You can use `set-window-vscroll` for that. It can be fiddly as well, tho. > I am unaware whether some buffer text can be shown in only one window (the > inverse of hidden overlay with window property). Instead of inserting virtual newlines in only one window, you could take the opposite approach and really inserting the newlines in the buffer and then hiding those newlines in all other windows. Of course, that would still require taking care to remove those newlines before the buffer is saved (and things get even more delicate if you want to allow editing the buffer). > I could create a fake buffer with the data instead of comparing the > original file. That might be a much easier option. Stefan