emacs-devel
[Top][All Lists]
Advanced

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

Re: Alignment and images


From: Lars Magne Ingebrigtsen
Subject: Re: Alignment and images
Date: Tue, 28 Jun 2016 20:17:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

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...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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