From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 eAy/AiCp6mLlLwAAbAwnHQ (envelope-from ) for ; Wed, 03 Aug 2022 18:58:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YO8IAiCp6mIjUgEAG6o9tA (envelope-from ) for ; Wed, 03 Aug 2022 18:58:08 +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 A7E332F870 for ; Wed, 3 Aug 2022 18:58:06 +0200 (CEST) Received: from localhost ([::1]:36144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJHh6-0000Ll-Jg for larch@yhetil.org; Wed, 03 Aug 2022 12:58:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJHgc-0000LJ-TB for emacs-orgmode@gnu.org; Wed, 03 Aug 2022 12:57:35 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.218]:44045) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJHgZ-0000b3-VJ for emacs-orgmode@gnu.org; Wed, 03 Aug 2022 12:57:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1659545848; s=strato-dkim-0002; d=kistbein.de; h=Subject:Message-ID:To:From:Date:Cc:Date:From:Subject:Sender; bh=3bBMaFltQQEhLB2W7GNZnhoUH6g3Uqx6RBOu3HPWkEI=; b=aVNK9zcIu0VqZCR8cB3393xLQxKSBXg2ryBMnMdu2E8IEzsBR5z3fP72MZql/nDSXJ a0EFnUq0GNx3okBe/tut7HOmCiGutJmxUcUTK6Y5kfV/NERY8srbCeW25F7kHLRV+SKx LNqnIee3wj92s5Y7TBjr3WUyBn8SxjxB3DN6elNFzi57JQGdQanC41ZuHS79GuNAKEKJ BLeUCbmiU2/GuUdseE0u5/WjvBrzRvYUhlrnaPD/7QpmmjRp1YNRm0bzSQh3nJAQEl0k hfSoz4H3V/rSF3Dkf2/dQ2EzLxY8H/fRlpwnhRH2H9Ur3bP9YYJgAUX6fasSwJURv94X lz9Q== X-RZG-AUTH: ":I34DSlSjW/SdaAH82tdwJyci2sM/G+7Z3+KFPSMs6s9CobjAuBSyO8QpOKGtWOq4kZw=" X-RZG-CLASS-ID: mo00 Received: from oxapp03-01.back.ox.d0m.de by smtp-ox.front (RZmta 47.47.0 AUTH) with ESMTPSA id u97a92y73GvSppy (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate) for ; Wed, 3 Aug 2022 18:57:28 +0200 (CEST) Date: Wed, 3 Aug 2022 18:57:28 +0200 (CEST) From: Tobias Kniep To: "emacs-orgmode@gnu.org" Message-ID: <553909075.107867.1659545848921@webmail.strato.de> Subject: [BUG] Clocktable hides agenda buffer due to window manipulation in org-string-width [9.6 (9.6-??-e9da29b6f @ /Users/tok/.emacs.d/.local/straight/build-28.1/org/)] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.6-Rev20 X-Originating-Client: open-xchange-appsuite Received-SPF: none client-ip=81.169.146.218; envelope-from=org_tk@kistbein.de; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NONE=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: , 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=1659545886; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3bBMaFltQQEhLB2W7GNZnhoUH6g3Uqx6RBOu3HPWkEI=; b=mRd7Ty0IAQV54bEUHK4VxA7+LeGBDzpLAVH5AOhNkJFwkNP3M3PcDBt8Ef9mqg8XmYPopB kIdqbXOUyP66GsRw6Pn/N+kH2V/kwy7T6uCWvzQCJSv6Ii5z7KxoxZXjal2jH3YrwO/HSm WOzhpv6JVlH4Cn1hcREkKrwJuXiuwLTHpIw4UsaK2d0HXs8RkXL6rWM/fURQNAkPFoRQl6 92ayqOYEaNvpwUuuJHkTw+t0pX2LouLktOC5DX+0fbLS4aeIoFiTua/VrN3UJTqPMeeKGE m0WJ5H5fjDKt02DkWQkQ0Pc1r1LzcTcPdxVUEEQ5Ily3MwTzb4YJqYcfO+EgaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659545886; a=rsa-sha256; cv=none; b=eI5LfjIw+d4B/YZpfW5Tlh2iXYZFVGlBztBWxOj/cSxdTmolVkZBVLVotkA/xi/7k2g0Ex xzn1fmRLsGjz7LMcVhZqHKPVY6AyaQ21G8CFHzDT7y4QjzFlTA1EIsBoPWZFhIWnkWbStx k9lZA4kzi7KyVfD/UNt8GRm51F7TGem5LTBjJWVXPEqPb8D2DJvEf1D4t383ckb18BK4nY 0FL+5kHtDQeFSLCaucMWBRvffOkpwDJgmSDnTxlLMGHO4cCnlDq8wB/E961d06oDGt1yxO SeDoEJyto8Xu9FwP+qfOvazFPnFiHT4aMFev+MhBxmEGgI+xe6MyWXaqqzqCjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kistbein.de header.s=strato-dkim-0002 header.b=aVNK9zcI; dmarc=none; 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.29 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kistbein.de header.s=strato-dkim-0002 header.b=aVNK9zcI; dmarc=none; 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: A7E332F870 X-Spam-Score: 2.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: R07HQgRwIrO+ Observation: When activating clocktable mode in agenda view (e.g. by pressing "R"), the current window switches to a previous buffer and thus hides the agenda. I can manually switch back to the agenda buffer and the clocktable is displayed. However, any redrawing of the agenda (e.g. when moving to another day) causes this issue to repeat, making dealing with the clocktable in the agenda quite cumbersome. Analysis: I'm not an Emacs hacker so please forgive my basis analysis. But I think that I have tracked the issue down to the way org-string-width uses a temporary buffer to determine text width. The way I understand this is that the call to set-window-buffer switches the current window (while still showing the agenda buffer) to the temp buffer for pixel measurement. After the with-temp-buffer block ends, the temp buffer gets killed and the window switches back to another buffer. However, instead of switch to the agenda buffer (which was visible before) it switches to the previous buffer (the one I had open when calling the agenda). The behaviour is new and I think it might be related to this change which was introduced recently: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/lisp/org-macs.el?id=d048c153dd67a118eaa21f04a7faef2800bba03a Best Tobias