From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0KhTBsC+aWG9NAEAgWs5BA (envelope-from ) for ; Fri, 15 Oct 2021 19:47:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MC0AAsC+aWGvbQAA1q6Kng (envelope-from ) for ; Fri, 15 Oct 2021 17:47:44 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A7B5963AD for ; Fri, 15 Oct 2021 19:47:43 +0200 (CEST) Received: from localhost ([::1]:34096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbRJ0-0005mM-Ot for larch@yhetil.org; Fri, 15 Oct 2021 13:47:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbRIO-0005m0-26 for emacs-orgmode@gnu.org; Fri, 15 Oct 2021 13:47:04 -0400 Received: from mail-yb1-xb35.google.com ([2607:f8b0:4864:20::b35]:42964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbRIM-0002FU-Bg for emacs-orgmode@gnu.org; Fri, 15 Oct 2021 13:47:03 -0400 Received: by mail-yb1-xb35.google.com with SMTP id u32so24518302ybd.9 for ; Fri, 15 Oct 2021 10:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Tki9zvjOQWDOTS9huka8PuHtjIhxByDkcx5TFtgw5BE=; b=lLd9hfwidJ8Sjk8wp/NATrR+wXd1tG7PAvenNrxQEBHCutBxYX2RuMoU5NhSxweaGI XlOGcZC0XCYCId7jDMG5mn6T/a2Dhw7ENRqk1meSy5bI6w+5HUo3XV1WfSnK2g26G9Fk Gq1iClxA0IEi77KZUmq/GxYGciPownhSOq59JcyUR2fz5Nj/wMVqtF1HKwf/EPKrCaF9 /GjHRbEsc8ZvYInVa0/DBdp5biZA8V4hUJNLCN1f0wxXXKS4nwbspLn5UPYTfazEGMeo kr+D2ocZcegn21DSjZud9FDpSSP4WN8mqATbLxxt8+H7Cz66PvowuXljwOVRqy1Do3RF aiSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Tki9zvjOQWDOTS9huka8PuHtjIhxByDkcx5TFtgw5BE=; b=qd5UGdDxOF16PBWxBAJkOOuryrovdadp31OVj30Ft2sqGh5G/aSzi16f/H7WJpzfCD GMp2gDI0K+2VocTfq0YTwVyxiGm+iSLrJbCBK3MespaOJFyPkcphmWy5SuLYQabBfmNQ d1+XxlUltt6JWuj6ECw2+WwIK7RP/9CgJfLS4z9zgK5GSHprpbmvvY6DDbVUZ9cPkJ2i GxgBMmfVVyjcDZnTL2T1rNnw+UC3m2dDEDaGJmZSCWNILs8ObkiailK0wd1eRqUnyfAC WVom78m6QbMjVoxCJLsrDT32kdjtRTe3rR1qEAYv30eaK3V0vyFB4g1eWPNyLEG3mrlC tHdA== X-Gm-Message-State: AOAM530Cn9NuMUwhm4Z0U1qlWX2P70GenXtCLD3oKVZx0hyzpzBVklGx 0aj2PwFLzzfXAdeFuUEE/VnfioGRhloO8iCfGXU= X-Google-Smtp-Source: ABdhPJwM9C2jAyPGkxR5Y+YAFigh0L7dtG7W6hj98iuOzlDOw0NTFaRzOiUS1zhw/woJpM4ySi8CHe87W6FtAJWc92U= X-Received: by 2002:a25:c006:: with SMTP id c6mr15228529ybf.480.1634320020915; Fri, 15 Oct 2021 10:47:00 -0700 (PDT) MIME-Version: 1.0 References: <87h7djf2c8.fsf@gmail.com> In-Reply-To: <87h7djf2c8.fsf@gmail.com> From: Bhavin Gandhi Date: Fri, 15 Oct 2021 23:16:23 +0530 Message-ID: Subject: Re: [BUG] Inline images cannot be displayed [9.5 (release_9.5-108-g93132c @ /tmp/org-mode/lisp/)] To: Liu Hui Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::b35; envelope-from=bhavin7392@gmail.com; helo=mail-yb1-xb35.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org, tecosaur@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634320063; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Tki9zvjOQWDOTS9huka8PuHtjIhxByDkcx5TFtgw5BE=; b=uMbsLlLUoQTP7Lrf4DhbvVtA9FnkKgzCuL/vrhcosydFC7wu1aMjXTy+guH10Y2+HpNeKV F4PloHjpWZ23PVaBiukm3dhXrR0NW4MQ1sYUH36UaqwTABAYs1d+ZB3b3pIUbQZK71DjEG GMVh8KT3Inkt4c2Wj+8umF4BGNqosU2Vk8i/ts0HRg4Ljla8HiDjefhfqmvvnUsHdsCzIc JEECKR0wiWadDY3VSMLDTLRNTZqItEQkfuEK9oVO7qUCo6QhoQTkZ7nTKSagFumLUQGI9I gCblXQA7xXZh47KFdMs7+azYZR7mSPm1jHrMUI9qe3KH2c++5+Ql5ZAdaNqC0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634320063; a=rsa-sha256; cv=none; b=auUXlDr7My9BCl6ogl/X1Ii0Mm6j3BxLtaZ4s6hIZopAfup/X4YcY4Xjis9LnbSAAVHyiU HZ3oFYaHzKryOT+Toh0Tb8HvLe7Y4dD8egnTztvH0dDU1bvCQDIsrnb1n8Y7Orc9F3CqY2 wz7t3rZC4oNfjBSeEZO+RoIsGa3/+DgIw6sykuD+7jBlb9NLix6apw98WmWGLu5s6e/jhz csX5JiY/Jqwo6texu2RVaHngI59PO8c6C7JxYWgR4MQMeLZih7iAVWAvUhWIUlZCy5Kt4y BEc655PTiqwEZlsE3g+NwzcQIpANjBfnU03llnOeZcBEMgh4eQiDuknXpgom9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=lLd9hfwi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -4.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=lLd9hfwi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: A7B5963AD X-Spam-Score: -4.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: CwPD2xmw06r5 Hello Liu, On Fri, 15 Oct 2021 at 19:49, Liu Hui wrote: > > Org mode cannot display inline images because of an error caused by > org-display-inline-image--width. It seems display-line-numbers-width > is regarded as a number unconditionally. > > Recipe: > > 1. emacs -Q > > 2. Make the following settings: > > (setq org-image-actual-width nil) > (setq org-startup-with-inline-images t) > > 3. Open some org-mode file containing image links, e.g. > > #+attr_org: :width 50% > [[file:~/test.jpg]] Confirmed I was able to reproduce this with the latest main branch. It works fine with attributes like this: #+attr_org: :width 500px And the 9.5 tag does not have this bug, so I think this might be related to recent changes to image width. Adding Timothy to CC who worked on those changes. -- Regards, Bhavin Gandhi (bhavin192) | https://geeksocket.in