emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] org.el (org-display-inline-image--width): Small fix
@ 2021-10-23 12:18 Sébastien Miquel
  2021-11-03 16:25 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Sébastien Miquel @ 2021-10-23 12:18 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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

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

* Re: [PATCH] org.el (org-display-inline-image--width): Small fix
  2021-10-23 12:18 [PATCH] org.el (org-display-inline-image--width): Small fix Sébastien Miquel
@ 2021-11-03 16:25 ` Nicolas Goaziou
  2021-11-18 12:06   ` Timothy
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2021-11-03 16:25 UTC (permalink / raw)
  To: Sébastien Miquel; +Cc: emacs-orgmode

Hello,

Sébastien Miquel <sebastien.miquel@posteo.eu> writes:

> Subject: [PATCH] org.el (org-display-inline-image--width): Small fix

I expounded the commit message and applied your patch. Thank you.

Regards,
-- 
Nicolas Goaziou


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

* Re: [PATCH] org.el (org-display-inline-image--width): Small fix
  2021-11-03 16:25 ` Nicolas Goaziou
@ 2021-11-18 12:06   ` Timothy
  0 siblings, 0 replies; 3+ messages in thread
From: Timothy @ 2021-11-18 12:06 UTC (permalink / raw)
  To: emacs-orgmode


Just marking this patch as applied for updates.orgmode.org.

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Sébastien Miquel <sebastien.miquel@posteo.eu> writes:
>
>> Subject: [PATCH] org.el (org-display-inline-image--width): Small fix
>
> I expounded the commit message and applied your patch. Thank you.
>
> Regards,


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

end of thread, other threads:[~2021-11-18 12:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-23 12:18 [PATCH] org.el (org-display-inline-image--width): Small fix Sébastien Miquel
2021-11-03 16:25 ` Nicolas Goaziou
2021-11-18 12:06   ` Timothy

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).