all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "otadmor ." <otadmor@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Overlay after-string with cursor (Stefan Monnier)
Date: Tue, 13 Aug 2019 03:51:31 -0400	[thread overview]
Message-ID: <jwva7cd7bn8.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAJd1wGJ6vmG1YxQo6VO8Ubi=6bN9+AbR8ZgQo_WMLhdiMkGMVA@mail.gmail.com> (otadmor .'s message of "Mon, 12 Aug 2019 13:03:25 +0300")

> 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




  reply	other threads:[~2019-08-13  7:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-11 22:24 Overlay after-string with cursor (Stefan Monnier) otadmor .
2019-08-11 22:32 ` Stefan Monnier
2019-08-11 22:59   ` otadmor .
2019-08-12  9:25     ` Stefan Monnier
2019-08-12 10:03       ` otadmor .
2019-08-13  7:51         ` Stefan Monnier [this message]
2019-08-13 22:40           ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwva7cd7bn8.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    --cc=otadmor@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.