all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alp Aker <alptekin.aker@gmail.com>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: Eli Zaretskii <eliz@gnu.org>, Emacs devel <emacs-devel@gnu.org>
Subject: Re: Alignment and images
Date: Thu, 1 Sep 2016 14:10:46 -0400	[thread overview]
Message-ID: <CACxch4r8_A+qz=9ix-YqaYqWFUduDS0kj7oVAOQBYPRJgfYUhQ@mail.gmail.com> (raw)
In-Reply-To: <m3a8i59p6q.fsf@gnus.org>

[-- Attachment #1: Type: text/plain, Size: 713 bytes --]

On Tue, Jun 28, 2016 at 1:51 PM, Lars Magne Ingebrigtsen <larsi@gnus.org>
wrote:
> So...  there is no easy way implement this in the current Emacs?  Using
> post-command-hook and keeping track of previous cursor positions seems
> kinda ... non-optimal.

If you put the spacing display property on an overlay's before- or
after-string, it doesn't create a new cursor position.   So would something
like the below create the effect you're looking for?

(progn
  (setq o (make-overlay 1 2)
        o2 (make-overlay 2 3))
  (overlay-put o 'display (create-image "~/rms.jpg"))
  (overlay-put o2 'before-string (propertize " " 'display '(space :align-to
(200))))
  (overlay-put o2 'display (create-image "~/rms.jpg")))

[-- Attachment #2: Type: text/html, Size: 1013 bytes --]

  parent reply	other threads:[~2016-09-01 18:10 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
2016-06-30 15:14             ` Ted Zlatanov
2016-06-30 15:40               ` Lars Magne Ingebrigtsen
2016-09-01 18:10             ` Alp Aker [this message]
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

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

  git send-email \
    --in-reply-to='CACxch4r8_A+qz=9ix-YqaYqWFUduDS0kj7oVAOQBYPRJgfYUhQ@mail.gmail.com' \
    --to=alptekin.aker@gmail.com \
    --cc=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 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.