From mboxrd@z Thu Jan 1 00:00:00 1970 From: 'Ihor Radchenko' Subject: Bug: Inaccurate doc-string for org-image-actual-width [9.2.3 (9.2.3-17-g4df705-elpaplus @ /home/yantar92/.emacs.d/elpa/org-plus-contrib-20190513/)] Date: Wed, 05 Jun 2019 17:13:16 +0800 Message-ID: <877ea02y4z.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:58094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYRzx-0006BS-7n for emacs-orgmode@gnu.org; Wed, 05 Jun 2019 05:14:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYRzv-0001oI-5D for emacs-orgmode@gnu.org; Wed, 05 Jun 2019 05:14:21 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:45504) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hYRzu-0001aR-P7 for emacs-orgmode@gnu.org; Wed, 05 Jun 2019 05:14:19 -0400 Received: by mail-pg1-x52e.google.com with SMTP id w34so12032437pga.12 for ; Wed, 05 Jun 2019 02:14:16 -0700 (PDT) Received: from localhost ([85.203.47.124]) by smtp.gmail.com with ESMTPSA id j23sm10361087pgb.63.2019.06.05.02.14.13 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 05 Jun 2019 02:14:14 -0700 (PDT) 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: emacs-orgmode@gnu.org The doc-string for org-image-actual-width states that image width can be set using #+ATTR.* keyword (note that it is all capital letters). However, org-display-inline-images only looks for lower-case #+attr_: (re-search-forward "^[ \t]*#\\+attr_.*?: +.*?:width +\\(\\S-+\\)" (org-element-property :post-affiliated paragraph) t) If case-fold-search is set to 't, and the value of org-image-actual-width is set to a list, #+ATTR_ORG: :width specifications are always ignored, while they should not. Best, Ihor Emacs : GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit) of 2019-04-29 Package: Org mode version 9.2.3 (9.2.3-17-g4df705-elpaplus @ /home/yantar92/.emacs.d/elpa/org-plus-contrib-20190513/) -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg