From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 EGpEGZITYWIjuAAAbAwnHQ (envelope-from ) for ; Thu, 21 Apr 2022 10:19:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wFhQGZITYWLx2wAA9RJhRA (envelope-from ) for ; Thu, 21 Apr 2022 10:19:30 +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 24A52BD07 for ; Thu, 21 Apr 2022 10:19:30 +0200 (CEST) Received: from localhost ([::1]:60688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhS2D-0007fF-7L for larch@yhetil.org; Thu, 21 Apr 2022 04:19:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhRg5-0006DD-39 for emacs-orgmode@gnu.org; Thu, 21 Apr 2022 03:56:37 -0400 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:34553) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhRg2-0002Vb-La for emacs-orgmode@gnu.org; Thu, 21 Apr 2022 03:56:36 -0400 Received: by mail-qt1-x82a.google.com with SMTP id f14so2722258qtq.1 for ; Thu, 21 Apr 2022 00:56:34 -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=q9xux+lwXVObu5VlBDsG85dSOWFqNTOF4VkPvuqOnIM=; b=KQp6lLh4P4EeQcOSXjaXPvuNsR0wdlVRDivXtCOGhzWT9Xc53SaXHSm3YcGZtkgUdv 1+tAIdIo7+01EbJ1uUB+XwkuUCJc+njowvp4yRM+IKuX1GoEbpegczgxUBcz6EqhY9ma Kq4Kptor11tXmGP5wrzzVO3G5HiHGuFYBUna4507ViT2lYAKyLjCXyiDE3/IgzyvP3AU yuUrflc9Ry20T20/R3RP4p7deJhBITKzGYMHXQqWIKqItUAtI88szJYEP0lCYYL9waq/ EBWn+ELVcclSjksO62xb7Z4O9l0krdH28uRuuWkxSoVjw6v0omSRAF4y/ZW5yxQhTaBu QMlQ== 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=q9xux+lwXVObu5VlBDsG85dSOWFqNTOF4VkPvuqOnIM=; b=lep6Zq1/QRBcKGoiApbegxzgjsY4sI7ciKMZBsbchJq7VwXQEDt9vsG7K+3GlCz6tP brBc4kaTo3vxCi6g284ZYkqpflERAVAJggTcqp8Nv6iOdM7KOpOpUXeV4JpWFgEDRbIM KnA0hDiUNFaR+e94oK/dYKYYgub6XQyB2rJyQns+n0bD5qLmvIZsTUoYW4VtfYEOt+JA CotV1g+MuqCy9RTml8Z3SqEAzYZ4L/DaUtFd4jXzGt4BOr5fvG2stbETyJFRjUMTdQwa 83NIzmtd0Wq2D/YHZdWRO4phq6ZfAxNxkQJDkIxVV/aHP9frwLPNgFmrcfyVHPRFw7Ct mE3g== X-Gm-Message-State: AOAM533PIXYZBZFh1MVmIVdOLbgGu4K8NQhKFKv6UaoXluHJVoOsxXqE 8EealxdJsYIjX+g3jesMYoifVmU39DQ= X-Google-Smtp-Source: ABdhPJweiF//LyhRr0/fMZaKjVZww1F9w/zYdyY/grMzKgGjJYAtrzPKcNERZCJ/GW2vON6KPFYxjQ== X-Received: by 2002:a05:622a:15c1:b0:2f1:f8ec:496c with SMTP id d1-20020a05622a15c100b002f1f8ec496cmr14698146qty.73.1650527793494; Thu, 21 Apr 2022 00:56:33 -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 m9-20020a05622a118900b002f1fc51135dsm3172031qtk.57.2022.04.21.00.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 00:56:32 -0700 (PDT) From: "N. Jackson" To: Ihor Radchenko Subject: Re: [PATCH] org-agenda: Use `window-max-chars-per-line' instead of `window-width' References: <874k2qwn92.fsf@moondust.localdomain> <87ee1ubje8.fsf@localhost> <87o80yqkhi.fsf@moondust.localdomain> <874k2ppxth.fsf@localhost> <87czhdqi9p.fsf_-_@moondust.localdomain> <87o80wz9le.fsf@localhost> <87ee1sjcf9.fsf@moondust.localdomain> <87wnfj3t4x.fsf@localhost> <87a6cekitg.fsf@moondust.localdomain> Date: Thu, 21 Apr 2022 03:56:32 -0400 In-Reply-To: <87a6cekitg.fsf@moondust.localdomain> (N. Jackson's message of "Thu, 21 Apr 2022 03:16:11 -0400") Message-ID: <875yn2vphr.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::82a; envelope-from=nljlistbox2@gmail.com; helo=mail-qt1-x82a.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=1650529170; 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=q9xux+lwXVObu5VlBDsG85dSOWFqNTOF4VkPvuqOnIM=; b=bm2AzQEJ0WVF+NCwz9wM8DMoJ+BAXIkqU/KnLcjkXVBMUMzodZ6ixwK0QmJRWJEHvK0+FD ClWenrFFfhvnrCAhmtUnSnE35YC9NgoAkx1HkWQEkmfVbUGd7hQpXa3OOYPnOhs8IUmLZb hi5pb2GwxTYj9495ccLM7kPNxuJwL/4j20Hh+1RAELqGES5TLkL9M2u/e+PFxdoAZ0sdHX +PDot9zLqpR7irJ9UZqPkwuuFs16x7L2B2Az/uXeznctQXtlocuUbZLsNZGhcSTFJAAO4m J7E544V90E0e9XZ0hJXoOgfxxAv8kbyk3Bsg9hhV6u5wr8gAjzl/5iLtMBjUGA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650529170; a=rsa-sha256; cv=none; b=cj4+I69DyiPT2TJYKCcX1ikbcxWhSvIGuTGdmdF2bdR4YUOllxcw7xUiSBFboImSG6o413 qSco70FO2TttPD8LzCMbwxGTbjj9CrzkictWkfRzgIXR4L35w5YSH72vfKb2BBPM5OwyYB gq5O5bw7D4Ik5hA05tjZH3fr/IO4wAhszvGB2tFWbLdKYSOefU/yC+R1+x3d7B/rQ8ot9W 6LNuAcjYYZMLyDXIEsG0LM+AwNRX1u9ekvAi+4TpuWqhlh6X/KTc4REhj36lYv5e5LUAbN +Bq3Qg7ZlIxoy5nT0uw0nOKzi8bhpueV5cj/odYfq1c55RCBwkWJnOufjaTubA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KQp6lLh4; 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: -2.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KQp6lLh4; 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: 24A52BD07 X-Spam-Score: -2.54 X-Migadu-Scanner: scn1.migadu.com X-TUID: Z84clw1Iu8Sg Hello Ihor, At 03:16 -0400 on Thursday 2022-04-21, N. Jackson wrote: > > However, the problem with the tags wrapping in Agenda (instead of > being right aligned) remains. I believe the problem with the wrapping of the Agenda tags is here: (defun org-agenda-align-tags (&optional line) "Align all tags in agenda items to `org-agenda-tags-column'. When optional argument LINE is non-nil, align tags only on the current line." (let ((inhibit-read-only t) (org-agenda-tags-column (if (eq 'auto org-agenda-tags-column) (- (window-text-width)) ^^^^^^^^^^^^^^^^^ org-agenda-tags-column)) (end (and line (line-end-position))) l c) ... Changing window-text-width to window-max-chars-per-line fixes the problem here and seems like the right thing to do. Regards, N.