all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "otadmor ." <otadmor@gmail.com>
To: help-gnu-emacs@gnu.org, monnier@iro.umontreal.ca
Subject: Re: Overlay after-string with cursor (Stefan Monnier)
Date: Mon, 12 Aug 2019 01:24:19 +0300	[thread overview]
Message-ID: <CAJd1wG+xmmZk_rNGp8zmnqgnP40puXv_wAtdiYc5FhAkZKNO5A@mail.gmail.com> (raw)

1.
> You can control where the cursor is displayed in the after-string, with
> the `cursor` property.  Doing in it such a way that it gives the
> illusion that you can put the cursor "wherever you want" can be a bit
> fiddly
As I understand, setting the cursor property allows me to put the
cursor only in one position inside my overlay.
I want the user to be able to move the cursor inside the overlay when
using the after-string property.
> so I think it's worth clarifying why exactly you want something
> like that, so as to be better decide how to attack the problem.
Im trying to implement something visually similar to what vimdiff has,
as in this URL:
https://www.thegeekstuff.com/2010/06/vimdiff-file-diff-tool/
In there, you can see the lines filled with "....................."
where there is no content in the line of the first file and there is
content in the matching line in the second file.
Hope this makes it clearer and that I managed to reply this thread correctly.

-- 
Gretz,
Ofir Tadmor

ICQ: 77685691
Mail: otadmor@gmail.com



             reply	other threads:[~2019-08-11 22:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-11 22:24 otadmor . [this message]
2019-08-11 22:32 ` Overlay after-string with cursor (Stefan Monnier) 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
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=CAJd1wG+xmmZk_rNGp8zmnqgnP40puXv_wAtdiYc5FhAkZKNO5A@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.