unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: Alignment and images
Date: Tue, 28 Jun 2016 21:23:23 +0300	[thread overview]
Message-ID: <83inwtw4tg.fsf@gnu.org> (raw)
In-Reply-To: <m3wpl989gj.fsf@gnus.org> (message from Lars Magne Ingebrigtsen on Tue, 28 Jun 2016 20:17:00 +0200)

> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> Cc: emacs-devel@gnu.org
> Date: Tue, 28 Jun 2016 20:17:00 +0200
> 
> Eli Zaretskii <eliz@gnu.org> 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	other threads:[~2016-06-28 18:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-28 13:32 Alignment and images Lars Magne Ingebrigtsen
2016-06-28 16:24 ` Eli Zaretskii
2016-06-28 16:28   ` Lars Magne Ingebrigtsen
2016-06-28 16:39     ` Eli Zaretskii
2016-06-28 16:50       ` Lars Magne Ingebrigtsen
2016-06-28 17:43         ` Eli Zaretskii
2016-06-28 17:51           ` Lars Magne Ingebrigtsen
2016-06-28 18:12             ` Eli Zaretskii
2016-06-28 18:17               ` Lars Magne Ingebrigtsen
2016-06-28 18:23                 ` Eli Zaretskii [this message]
2016-06-30 15:14             ` Ted Zlatanov
2016-06-30 15:40               ` Lars Magne Ingebrigtsen
2016-09-01 18:10             ` Alp Aker
2016-06-28 17:44 ` Eli Zaretskii
2016-06-28 17:53   ` Lars Magne Ingebrigtsen
2016-06-28 21:17 ` Glenn Morris
2016-06-28 22:00   ` Lars Magne Ingebrigtsen
2016-08-30 13:01     ` Mathias Dahl
2016-09-01 15:43       ` Lars Ingebrigtsen
2016-09-01 16:18         ` Drew Adams

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83inwtw4tg.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).