From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EL3sE7kvZmOihQEAbAwnHQ (envelope-from ) for ; Sat, 05 Nov 2022 10:41:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mHUWE7kvZmPFDAAAG6o9tA (envelope-from ) for ; Sat, 05 Nov 2022 10:41:13 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 07E14D225 for ; Sat, 5 Nov 2022 10:41:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orFf4-0007Rp-6B; Sat, 05 Nov 2022 05:40:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orFez-0007Rc-Qu for emacs-orgmode@gnu.org; Sat, 05 Nov 2022 05:40:18 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orFey-0003o2-3d for emacs-orgmode@gnu.org; Sat, 05 Nov 2022 05:40:17 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0BE1C240026 for ; Sat, 5 Nov 2022 10:40:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667641214; bh=gE2nxCQXg6zd50zXB17THolpY4A1xNEX9WA4jQw4SJk=; h=From:To:Cc:Subject:Date:From; b=hKqGw30QLb6jpk7iT80pYKILI0/VHqp+tQoW+Q50aXCz1JKDZA1VGpyTa4D/vg6Xe EOWaCnu6IrQziCLHD4WBcl56UEBG1dBiAWlyoImKC8f6mEOBVg3N4nfU1pGWgbxwOH wwBhDSk2/BvW82q+zPNmG70sxOIwTW/sLFpjE7cYs0u2H8eWNFcyOvOUbVfokEP+iJ raArm0IPHMwGPStPoTMGaXFPwB8B6enozdEjvyHX2FMCQPTPpjDD3Hje1xLQp7fDbn UtPMhA0440EiBCyceTrR2URy9oCPOOhUb9gN9DnOSnmGwo5Sms82WfV0Foz+18FEGj rgVUQ8TDtreaw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N4CCJ35C9z9rxH; Sat, 5 Nov 2022 10:40:12 +0100 (CET) From: Ihor Radchenko To: Bruno BARBIER Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-string-width: Window is dedicated error [9.6-pre (release_9.5.5-1075-g3e010d)] In-Reply-To: <63662793.5d0a0220.62647.3003@mx.google.com> References: <63662793.5d0a0220.62647.3003@mx.google.com> Date: Sat, 05 Nov 2022 09:40:52 +0000 Message-ID: <87v8ntkacb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667641273; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=WebDj/wZjMcEEq7iUqJ/jWA59nGAlf53XiSeiYLKoV4=; b=tk6pijK/xXZbFAsKKpWT4I09FXxmSoZ24k6se9QvL1SboGLAtcntDO1HiW20bTMi7MzcKi jqoymkFDXZC+00EThKnK1fTfym52f8c2w50C+x4yVwIfGbjrJsDFTxomW8+JOFHyVi1K/o gTuf79mEGmZH+C+qnxqPmFBy4MBFu9kJhX6gDNrVO2PAfXLaWg4a7TAvAN9T12wjMprLCr kaBLYMudvYoo0s6Zyy1ET9ijrpX+uEjfuVlS/7G2TacnK3eMR2X1YzZHv0b/o6OC10wymh 8a7um6DJ51XKclaGfpJtqSu1Efm1igXbCjmn/aWhcgzuR5hwSjinqgNo7D/nOA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667641273; a=rsa-sha256; cv=none; b=LEdJKysKP6/+uFfPqBzSI7rTary8O99rX4G4Zm9sbeMHOkCcG6q4lyKWPa/BvqD4tZ3sqS SMUZ5rdEajmsfbwuN4M2wUc6xsn3uiKs7ft2I4cQwg9Z4kUYaOSmh9KWl9ZqaQNsy36/Dm sYv1H6WADja3TO67EIO0ND9P4aECZamNgGZ/N2jKE/U6b+3+0ANHqE35KocbyXhl1Up1pc 74Rq+PYqCDZ9WsN8rFZ2qj4b2vcba93TmJ5MrUQE8kcsmcFK8Tu8J0YIi+xrSUGxh8tZON SBmzLkkJolovgDSP9GC8K7py73u+DVNg1eiwyNYSOekuE2zUodKFT8YIOPpsSQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hKqGw30Q; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hKqGw30Q; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 07E14D225 X-Spam-Score: -2.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: OBY9Faqe+HiX Bruno BARBIER 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 . Support Org development at , or support my work at