emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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/)]
@ 2019-06-05  9:13 'Ihor Radchenko'
  2019-06-05 20:50 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: 'Ihor Radchenko' @ 2019-06-05  9:13 UTC (permalink / raw)
  To: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-05 20:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-05  9:13 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/)] 'Ihor Radchenko'
2019-06-05 20:50 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).