From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aGaqNrSFX2JGWgEAbAwnHQ (envelope-from ) for ; Wed, 20 Apr 2022 06:01:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qCW6NrSFX2Kq/gAA9RJhRA (envelope-from ) for ; Wed, 20 Apr 2022 06:01:56 +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 8FB461C0D5 for ; Wed, 20 Apr 2022 06:01:55 +0200 (CEST) Received: from localhost ([::1]:44894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nh1XN-0004Wf-KN for larch@yhetil.org; Wed, 20 Apr 2022 00:01:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nh1Wa-0004WQ-AR for emacs-orgmode@gnu.org; Wed, 20 Apr 2022 00:01:04 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:38452) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nh1WY-0004pm-JK for emacs-orgmode@gnu.org; Wed, 20 Apr 2022 00:01:04 -0400 Received: by mail-pl1-x62f.google.com with SMTP id n18so658604plg.5 for ; Tue, 19 Apr 2022 21:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=WPZg9UtRI6lQIQv3t8E7nTet0gdoxR8/bKd9T8c8sYY=; b=Q2c1qopESm+o5IC3jIdtczRqo3KGrpOUCMDn4CXkYk2w/dQKSsdlqzj5xfPvVNaYbp pnkLZEpcPpOPHPXPunphSxZ1p/ZlO+jRn6MVM2PLzyN1wX698ed9tCYaEUdmSZ3qigIX c5j9QZZ6d/8fnUEYkatBDeyD6OI7AgxmtbHIM2gf1lLKJrY0zKOqV9El9f/+FRy4rGPB yTecl7RprZ6AVy8Fauo/L+Mba37GhORZtT5CHBldo24z/BrnLDNZrXUD5hp3SXvvDuUa KynvjBWcjRV5+Abd5vJLH6l5qiFvFl3tZVqX5Hr5Use6GUNqy42aAyoVnpEHfU6Wfuiz WDEQ== 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:in-reply-to:references:date :message-id:mime-version; bh=WPZg9UtRI6lQIQv3t8E7nTet0gdoxR8/bKd9T8c8sYY=; b=t0wWPoyh/Y8EIB/WIrCKcl+63A+iCh9W89+c96GBcsJOI+QtsmOZ2OZurHBT9XsoC8 R8eAdygPkVikicNwvDkRGdQygordZjSXrndBGHZdrr/c75O/t4C7DszqOvdw7ly/OEaT d/LrXMyus8MdbV/xXbpf71LUhhokY7GaOFaTyx3GZ16xstMf8qkISRGxIdIVm9l2PrSw Diq7+Y1Nb53nyAQHu7vS6qQq0SkwplwAA3e1sBPjwFkYvogaZmVvCJNQTBisp/GC/mlc FpCLGeGMpvLD4mjUdQnSQDAhQD4tZTMUfXNQOu0vdC5tCFZCIFrJcoWsw2sNJZMxEQbV qFhg== X-Gm-Message-State: AOAM530ftieqa+6XpF5cXzKUOsbWQAsostGj9qBmg8/pPy1IFtAMIaya 2s7915h5ggKGid1SxsB1FOk= X-Google-Smtp-Source: ABdhPJyhOOxjl8tIpngbyFLFf47FXPE5kt2z5exVqV6sXv2NADRF5JDFsPJgCIrUFzQjk7VQ6KXZ1A== X-Received: by 2002:a17:90b:1c01:b0:1d2:add6:805f with SMTP id oc1-20020a17090b1c0100b001d2add6805fmr2125896pjb.29.1650427257900; Tue, 19 Apr 2022 21:00:57 -0700 (PDT) Received: from localhost ([64.32.23.62]) by smtp.gmail.com with ESMTPSA id v34-20020a634662000000b0039d3ce2e465sm17221275pgk.93.2022.04.19.21.00.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 21:00:57 -0700 (PDT) From: Ihor Radchenko To: "N. Jackson" Subject: Re: [BUG] Off-by-one error in width of Agenda window? In-Reply-To: <87czhdqi9p.fsf_-_@moondust.localdomain> References: <874k2qwn92.fsf@moondust.localdomain> <87ee1ubje8.fsf@localhost> <87o80yqkhi.fsf@moondust.localdomain> <874k2ppxth.fsf@localhost> <87czhdqi9p.fsf_-_@moondust.localdomain> Date: Wed, 20 Apr 2022 12:01:49 +0800 Message-ID: <87o80wz9le.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62f.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=1650427315; 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=WPZg9UtRI6lQIQv3t8E7nTet0gdoxR8/bKd9T8c8sYY=; b=L3Fjhst/fo15ajNsHIZitd+NlH4mKJA2l4VR6V6A9ZPa9ZjaBofM+xNRLJorDgdnqif/Iu rFunZ98DH+UyikAAbguxLo2tuITevz2zMQW5W3T/2H8dzUtNJrKQWzuQGPm3C/R5fwDipu CTrJs9+pGduG7PNlYYQv+gyollPdjwOd/Fyk/Nje0HjTGGSSeUyrZCCClKLGMeLSoNVqba zIC6hzNr9OTt2apXOejstoZF7sRzABYJSWb8YwBPmSd6h8J7hmdrEyAIGjRBtJuJt7hMMo gREOqeQ0VzwCN6AyWP/Ldo9NghV6RDII7WeKZ7vM1jq6dEjZn13p9kmcQGBsnw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650427315; a=rsa-sha256; cv=none; b=FN7QdFKZN4mphM7N1iHafENgFK32Uku4k8c1v/N+pgyWeqP1Ey4pwT3Nzw7Af986pDDDj2 4TIl5zWv0oMuB1hEtOY7q5AN4ND5DlDZ9457kSAVUCwqtEPAxdCNn3Vi7byoVXSl+44/eZ oLnSR2PrC908eUkDtGYDCNQ5pS6kXnjDZb1DBRc+1r4g6bxOn2AYUV07grO7o0JVPUWGCp TrZjXft6amwUly0GBcoKX+uhP/mgCdTo9CaSt02bYFfbqyAYdR2q3rCDBzg9y/Fx/O4jf7 o61k7SM8YupPlE3w9S3ufukcYZ613bA3oP/05deTP7J+UmSjOOJEoWTRLQdzxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Q2c1qopE; 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: -1.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Q2c1qopE; 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: 8FB461C0D5 X-Spam-Score: -1.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7kR4amlmb1zQ "N. Jackson" writes: > 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. Thanks a lot for the detailed analysis! > 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.] Could you elaborate why window-max-chars-per-line cannot be used instead of window-width by Org? It appears to be strictly more accurate. Best, Ihor