emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Miquel" <sebastien.miquel@posteo.eu>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: [PATCH] org.el (org-display-inline-image--width): Small fix
Date: Sat, 23 Oct 2021 12:18:37 +0000	[thread overview]
Message-ID: <2542fa84-f808-99ba-5728-a0e0cb261a5c@posteo.eu> (raw)

[-- Attachment #1: Type: text/plain, Size: 97 bytes --]

Hi,

The variable display-line-numbers-width is nil by default.

Regards,

-- 
Sébastien Miquel

[-- Attachment #2: 0001-org.el-org-display-inline-image-width-Small-fix.patch --]
[-- Type: text/x-patch, Size: 1014 bytes --]

From 2e306750caff0474aa9a6443c7d7eb68e3aca83b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Miquel?= <sebastien.miquel@posteo.eu>
Date: Sat, 23 Oct 2021 13:28:59 +0200
Subject: [PATCH] org.el (org-display-inline-image--width): Small fix

---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 474171b55..3140c4d1f 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16867,7 +16867,7 @@ buffer boundaries with possible narrowing."
                     (/ (or (and (bound-and-true-p visual-fill-column-mode)
                                 (or visual-fill-column-width auto-fill-function))
                            (when auto-fill-function fill-column)
-                           (- (window-text-width) display-line-numbers-width))
+                           (- (window-text-width) (or display-line-numbers-width 0)))
                        (float (window-total-width)))))
         width)))
    ((numberp org-image-actual-width)
-- 
2.33.1

             reply	other threads:[~2021-10-23 12:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-23 12:18 Sébastien Miquel [this message]
2021-11-03 16:25 ` [PATCH] org.el (org-display-inline-image--width): Small fix Nicolas Goaziou
2021-11-18 12:06   ` Timothy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2542fa84-f808-99ba-5728-a0e0cb261a5c@posteo.eu \
    --to=sebastien.miquel@posteo.eu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).