From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-string-display throws on image display property [9.1.9 (release_9.1.9-65-g5e4542 @ /home/blc/.local/share/emacs/27.0.50/lisp/org/)] Date: Thu, 25 Oct 2018 15:43:45 +0200 Message-ID: <878t2mw38u.fsf@nicolasgoaziou.fr> References: <874lf8hhel.fsf@tcd.ie> <87d0tutxch.fsf@nicolasgoaziou.fr> <87zhwyttpr.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFfvV-00022x-H5 for emacs-orgmode@gnu.org; Thu, 25 Oct 2018 09:43:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFfvR-0006qB-Vu for emacs-orgmode@gnu.org; Thu, 25 Oct 2018 09:43:53 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:47887) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gFfvR-0006mr-LE for emacs-orgmode@gnu.org; Thu, 25 Oct 2018 09:43:49 -0400 In-Reply-To: <87zhwyttpr.fsf@tcd.ie> (Basil L. Contovounesios's message of "Mon, 03 Sep 2018 17:46:08 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Basil L. Contovounesios" Cc: emacs-orgmode@gnu.org Hello, "Basil L. Contovounesios" writes: > I realise that the 'display' property is a pretty complicated beast, so > it may be impractical for 'org-string-width' to do this, but I think > more accurate/useful behaviour would be to calculate the displayed width > of the image via 'image-size' or 'image-display-size', rather than > signalling an error. Fixed. `org-string-width' has now a limited support for images. Thank you. Regards, -- Nicolas Goaziou