emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 27f26f7: org-display-inline-image--width: Fix synta


From: ELPA Syncer
Subject: [elpa] externals/org 27f26f7: org-display-inline-image--width: Fix syntax error from last commit
Date: Mon, 22 Nov 2021 23:57:27 -0500 (EST)

branch: externals/org
commit 27f26f782978db2a94c87b1cabf37bb0d75d77d7
Author: Kyle Meyer <kyle@kyleam.com>
Commit: Kyle Meyer <kyle@kyleam.com>

    org-display-inline-image--width: Fix syntax error from last commit
    
    * lisp/org.el (org-display-inline-image--width): Fix unbalanced
    parentheses and reference to free variable introduced in last commit.
---
 lisp/org.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 52e9088..736b743 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16860,7 +16860,8 @@ buffer boundaries with possible narrowing."
             (when (and par (org-with-point-at
                                (org-element-property :begin par)
                              (re-search-forward attr-re par-end t)))
-              (match-string 1))))
+              (match-string 1)))
+           (width
             (cond
              ;; Treat :width t as if `org-image-actual-width' were t.
              ((string= attr-width "t") nil)
@@ -16871,7 +16872,7 @@ buffer boundaries with possible narrowing."
              ;; Convert numeric widths to numbers, converting percentages.
              ((string-match-p "\\`[0-9.]+%" attr-width)
               (/ (string-to-number attr-width) 100.0))
-             (t (string-to-number attr-width))))
+             (t (string-to-number attr-width)))))
       (if (and (floatp width) (<= 0.0 width 2.0))
           ;; A float in [0,2] should be interpereted as this portion of
           ;; the text width in the window.  This works well with cases like



reply via email to

[Prev in Thread] Current Thread [Next in Thread]