* [BUG] org-string-width: Window is dedicated error [9.6-pre (release_9.5.5-1075-g3e010d)]
@ 2022-11-05 9:12 Bruno BARBIER
2022-11-05 9:40 ` Ihor Radchenko
0 siblings, 1 reply; 3+ messages in thread
From: Bruno BARBIER @ 2022-11-05 9:12 UTC (permalink / raw)
To: emacs-orgmode
Hi,
The function `org-string-width' fails if the selected window is strongly
dedicated.
Here is a way to reproduce this error:
#+begin_src elisp
(let ((old-dedicated (window-dedicated-p)))
(unwind-protect
(progn
(set-window-dedicated-p nil t)
(org-string-width "a string"))
(set-window-dedicated-p nil old-dedicated)))
#+end_src
Emacs : GNU Emacs 29.0.50 (x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0)
Package: Org mode version 9.6-pre (release_9.5.5-1075-g3e010d)
Bruno
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] org-string-width: Window is dedicated error [9.6-pre (release_9.5.5-1075-g3e010d)]
2022-11-05 9:12 [BUG] org-string-width: Window is dedicated error [9.6-pre (release_9.5.5-1075-g3e010d)] Bruno BARBIER
@ 2022-11-05 9:40 ` Ihor Radchenko
2022-11-05 16:05 ` Bruno Barbier
0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2022-11-05 9:40 UTC (permalink / raw)
To: Bruno BARBIER; +Cc: emacs-orgmode
Bruno BARBIER <brubar.cs@gmail.com> writes:
> The function `org-string-width' fails if the selected window is strongly
> dedicated.
>
> Here is a way to reproduce this error:
>
> #+begin_src elisp
> (let ((old-dedicated (window-dedicated-p)))
> (unwind-protect
> (progn
> (set-window-dedicated-p nil t)
> (org-string-width "a string"))
> (set-window-dedicated-p nil old-dedicated)))
> #+end_src
Thanks for reporting!
Fixed on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=946abeb49a73d7d04233a53fbb7fd422c7e294b6
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] org-string-width: Window is dedicated error [9.6-pre (release_9.5.5-1075-g3e010d)]
2022-11-05 9:40 ` Ihor Radchenko
@ 2022-11-05 16:05 ` Bruno Barbier
0 siblings, 0 replies; 3+ messages in thread
From: Bruno Barbier @ 2022-11-05 16:05 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: emacs-orgmode
Ihor Radchenko <yantar92@posteo.net> writes:
> Thanks for reporting!
> Fixed on main.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=946abeb49a73d7d04233a53fbb7fd422c7e294b6
It now works.
Thanks Ihor!
Bruno
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-05 16:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-05 9:12 [BUG] org-string-width: Window is dedicated error [9.6-pre (release_9.5.5-1075-g3e010d)] Bruno BARBIER
2022-11-05 9:40 ` Ihor Radchenko
2022-11-05 16:05 ` Bruno Barbier
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).