From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Alignment and images Date: Tue, 28 Jun 2016 20:43:47 +0300 Message-ID: <83por1w6ng.fsf@gnu.org> References: <831t3hxowt.fsf@gnu.org> <83twgdw9n7.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1467138057 28897 80.91.229.3 (28 Jun 2016 18:20:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2016 18:20:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 28 20:20:56 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bHxd1-000594-Ai for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2016 20:20:55 +0200 Original-Received: from localhost ([::1]:38674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHxd0-0001O5-H0 for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2016 14:20:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHx3n-0004UP-4n for emacs-devel@gnu.org; Tue, 28 Jun 2016 13:44:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHx3i-00059E-8d for emacs-devel@gnu.org; Tue, 28 Jun 2016 13:44:30 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHx3i-000595-5D; Tue, 28 Jun 2016 13:44:26 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4481 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bHx3e-0001f7-A4; Tue, 28 Jun 2016 13:44:24 -0400 In-reply-to: (message from Lars Magne Ingebrigtsen on Tue, 28 Jun 2016 18:50:06 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204881 Archived-At: > From: Lars Magne Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Tue, 28 Jun 2016 18:50:06 +0200 > > (progn > (insert-image (create-image "~/rms.jpg") " ") > (insert (propertize " " 'display > `(space :align-to (200)) > 'intangible t)) > (insert-image (create-image "~/rms.jpg") " ")) Thanks. Intangible doesn't work because we deprecated it, and set inhibit-point-motion-hooks to t; set it to nil, and it will work (but you really should use the newer replacements). However, this won't solve your problem, since the cursor position before the stretch will always be visited, as intangible doesn't affect it. We have on the C level a flag to avoid positioning cursor on a stretch glyph (we use it for line-prefix and wrap-prefix), but we don't expose it to Lisp.