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

On Mon, Aug 12, 2019, 12:25 Stefan Monnier <monnier@iro.umontreal.ca> wrote:

> > Do I have to re-bind the key map of the overlay so it would accept the
> > arrow keys and change the 'cursor property accordingly?
>
> Something like that, most likely, yes.
>
> > more spaces it is harder to navigate inside the files diff. Using the
> > arrow keys makes the navigation easier. currently I have synchronized
> > both buffers (side A and side B, C and ancestor) to received the arrow
> > keys presses on the "ediff help buffer" (I have created a new
>
> Then you can set/change the `cursor` property as part of the
> synchronization.

Thanks

>
> The main problem you'll have is that he overlay's after-string will
> never be displayed such that only the "second half" is visible, so if
> it spans many lines scrolling will "jump" over those many lines.
>
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?

I am unaware whether some buffer text can be shown in only one window (the
inverse of hidden overlay with window property).
If so I would insert the newlines as real text and set save hook to remove
them before saving. I would have to fix gotoline and such, but these are of
my least concern now.
I could create a fake buffer with the data instead of comparing the
original file. This would fix some more issues as I'm using persp mode and
planing of a dedicated perspective for ediff.


>
>         Stefan
>
>


  reply	other threads:[~2019-08-12 10:03 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 . [this message]
2019-08-13  7:51         ` Stefan Monnier
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='CAJd1wGJ6vmG1YxQo6VO8Ubi=6bN9+AbR8ZgQo_WMLhdiMkGMVA@mail.gmail.com' \
    --to=otadmor@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.