From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GIchCBrDXmIq1QAAbAwnHQ (envelope-from ) for ; Tue, 19 Apr 2022 16:11:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iG4vBxrDXmJNSgAAG6o9tA (envelope-from ) for ; Tue, 19 Apr 2022 16:11:38 +0200 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 98B2A9BA9 for ; Tue, 19 Apr 2022 16:07:47 +0200 (CEST) Received: from localhost ([::1]:56540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngoWA-0004GR-8y for larch@yhetil.org; Tue, 19 Apr 2022 10:07:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngoVT-0004G3-Bi for emacs-orgmode@gnu.org; Tue, 19 Apr 2022 10:07:03 -0400 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]:34359) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngoVR-0000Hw-Lm for emacs-orgmode@gnu.org; Tue, 19 Apr 2022 10:07:03 -0400 Received: by mail-qk1-x72a.google.com with SMTP id j9so6080670qkg.1 for ; Tue, 19 Apr 2022 07:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Ok1rf8BBQVZaFBGGH+wHzxbrBG8R2LIcYwsI/aELmE4=; b=QO7cw8isT74Fbt6xyXOmlEg8pb5XOREPD1gYtQxf6drkPU9c8/vbzrEqRoArkDT0Xl tGknVSvwJFVVBe2Gy15t7A0YiYzOuMjvlnp7DAShAFBfUtYUGOUFf1H26HOdRQC+Zsca 91kyMx7WvfQ/ZqpiD9hU9xAp5zWi79i4wKH9xaFz4Xjnc8f3lQhTF/3BKHx3YzpCnPTQ 25TdMRXsEMuALGN/4t9dp37eH+BdiqrcZg4IdNo9SJxUbKgL73P2zrcSq4Ug3RZNQFOz qBxzpM+/Je/g2WnPBqsscAkFDQmVQPfX5Zjwk4tbq+s35q/GhwyFxbE5SBmiH7vjODN2 M+HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Ok1rf8BBQVZaFBGGH+wHzxbrBG8R2LIcYwsI/aELmE4=; b=RN81repJqoIQaALGETPomaynCd5moC0tacIkxFdp1UMblbSUl6tF4EKElSTEX5dyAr 3tSAJ+eMpcwDljttqHz2FBeTuj3OdRsU5IAcjX8BWLaSHhnDCeLokT0ateexEYp6UA2B /kZZeGfp29wmoJJQKQqqq+py+o1q2l/MXj5KSaqWNUX9NvK45JFL1or+SFkoZdM4AYL4 A0lvQrNWlYr2t2nNCntgw7TPf334korEFV0NHfuDX3TQTjPhm+/tr9LL3oGyleFm6vjc 4YLwF63uqDpTc1yRbI315eFEyA8esr/uUcGyVnIoYl2husieenr1rWZ31mTa9uWncHl9 mCqQ== X-Gm-Message-State: AOAM531iePySTM1WaQcqLSWqKrj32IPUJ11X1+FNELD5dEDyxFvCbGjw MxshFFsQaXq0CK/cxC2RjaUAPbahACw= X-Google-Smtp-Source: ABdhPJwyWi1pUFATdJKosAq51pJNzemItDawsR0WgbS7LWvBhFHTER0qGQdBlv3KwgBhDALpB7icvA== X-Received: by 2002:a37:9e47:0:b0:69e:a534:24b5 with SMTP id h68-20020a379e47000000b0069ea53424b5mr4831292qke.510.1650377219869; Tue, 19 Apr 2022 07:06:59 -0700 (PDT) Received: from moondust.localdomain.nodomain.none (bras-base-toroon474qw-grc-79-174-92-60-96.dsl.bell.ca. [174.92.60.96]) by smtp.gmail.com with ESMTPSA id 2-20020a05620a06c200b0069ea498aec7sm59789qky.16.2022.04.19.07.06.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 07:06:59 -0700 (PDT) From: "N. Jackson" To: Ihor Radchenko Subject: Re: [BUG] Off-by-one error in width of Agenda window? References: <874k2qwn92.fsf@moondust.localdomain> <87ee1ubje8.fsf@localhost> <87o80yqkhi.fsf@moondust.localdomain> <874k2ppxth.fsf@localhost> Date: Tue, 19 Apr 2022 10:06:58 -0400 In-Reply-To: <874k2ppxth.fsf@localhost> (Ihor Radchenko's message of "Tue, 19 Apr 2022 11:16:26 +0800") Message-ID: <87czhdqi9p.fsf_-_@moondust.localdomain> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::72a; envelope-from=nljlistbox2@gmail.com; helo=mail-qk1-x72a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650377267; 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=Ok1rf8BBQVZaFBGGH+wHzxbrBG8R2LIcYwsI/aELmE4=; b=sC+j94YipJxWUAHCE9Sms7ESLC63a7CAGqs3G8DfeP1Y/SyQNxWykxVwO/kkTkNC2iF8Rw Bok0Bmvh2oF91GU7pxxwCbFAELzUkdK+wd9XW6qhQHYpXrloQmAPr5cxvpZF9s8P6jpyS+ WZdFoQzFH5D6c0s3/KLe43G+sQ1LJgHotP3LWruW0KrfsXNFdwukhgpYe68ataP5LY8lTs FiOIH+js+rclpihreIUWAb3McOQqS1B7V46Pl0hN6TGua0Jm9BcsidcV+Rcz5NnpyZtOCy rdz1gGQW8RlqYxJSAkZhrBHBBbVFmXYsfB3WpVD11hjAUsejjX0K6RExqHIt4Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650377267; a=rsa-sha256; cv=none; b=uA01zPViK+T/zqlwZ/X8hdyxOcOsr9Y2xnYyM7uyAQ0ru80DhDGG/8Ltpfwk0A4mRORRaM tziofgKVWt4EqJCZzCRWJEF/C12+P4aZsHYnxOXbB//rSnThZFMQcHH8Q4QvLnKC0Q2++y jiKmijLL3/yn2CiMhlCG4oRYH9EtmyHLBPmIbqmkNRZh7VnRnlXNdpvSN+OsrLPDmNWqjh vljcZXGYU1mSn7FjW2RLJoeDvPyradw0dO+PDhzTal8KXg97BhU/CdbYyjycHrq2ewXc+G Vk/vWIlPW9Tm9cPGB54LSHwJPyXpLlg0tICAmqhtT3b61t8dqk9NSjXjEhE8uQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QO7cw8is; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QO7cw8is; dmarc=pass (policy=none) header.from=gmail.com; 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: 98B2A9BA9 X-Spam-Score: -3.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: f7gLPZDE8wc8 At 11:16 +0800 on Tuesday 2022-04-19, Ihor Radchenko wrote: > > Thanks! I was able to reproduce the problem. > > I believe that it is not Org's fault. Org is trusting (window-width) > return value to calculate the width of the separator line. However, with > you settings, (window-width) apparently returns a wrong value. You can > see it yourself by running (insert (make-string (window-width) ?=)) in > scratch buffer with and without your fringe settings. > > Probably, you should report this as Emacs bug. It turns out there is already an Emacs bug for this (Bug 19395: Setting left fringe to 0 messes up window-width (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19395)). My understanding of the discussion is that the bug is caused by window-width including in its return value the width of the column reserved for the continuation glyph (which column exists when one or both of the fringes is/are turned off), so window-width over-reports the available width of the window in this case. The bug hasn't been closed, but IIUC it has been "fixed" by changing the documentation of window-width to indicate the limitation. The latter part of the bug thread is a discussion and development of the function window-max-chars-per-line. It seems that Org maybe should be using window-max-chars-per-line rather than window-width. [Unfortunately w-m-c-p-l is not a drop in replacement for window-width; it doesn't just fix the continuation glyph column "bug", but it also adds additional functionality and has a different signature.] Regards, N. P.S. I learnt in my reading that turning off one of my fringes gains me nothing because Emacs then turns around an puts an empty column on the right side of my window to potentially display a continuation glyph. So, to work around this Agenda bug temporarily I have turned on both fringes.