[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alignment and images

From: Eli Zaretskii
Subject: Re: Alignment and images
Date: Tue, 28 Jun 2016 21:23:23 +0300

> From: Lars Magne Ingebrigtsen <address@hidden>
> Cc: address@hidden
> Date: Tue, 28 Jun 2016 20:17:00 +0200
> Eli Zaretskii <address@hidden> writes:
> >> So...  there is no easy way implement this in the current Emacs?
> >
> > I don't think so, but maybe someone else will come up with some
> > rabbit-out-of-the-hat.
> Using the :align-to specs judiciously (i.e., only inserting them where
> they are needed), as well as a post-command-hook looking like
> (defun meme--fix-point ()
>   (let ((column (current-column)))
>     (when (get-text-property (point) 'meme-intangible)
>       (if (> column meme-column)
>         (forward-char 1)
>       (backward-char 1))
>       (setq column (current-column)))
>     (setq meme-column column)))
> seems to make all movement commands work as expected.  It's unfortunate
> that this is needed, though...

It shouldn't be hard to add the no-cursor condition, once its Lisp
form is defined.  It's just a flag in the glyph structure that needs
to be set, all the rest already works.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]