From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EHiQBahvkGDI8AAAgWs5BA (envelope-from ) for ; Mon, 03 May 2021 23:48:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aJ8pAahvkGBnagAAB5/wlQ (envelope-from ) for ; Mon, 03 May 2021 21:48:24 +0000 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 C967625A16 for ; Mon, 3 May 2021 23:48:22 +0200 (CEST) Received: from localhost ([::1]:58920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldgQP-00054u-I5 for larch@yhetil.org; Mon, 03 May 2021 17:48:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldgPW-00052p-FA for emacs-orgmode@gnu.org; Mon, 03 May 2021 17:47:26 -0400 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]:35713) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldgPQ-0002Xh-Tv; Mon, 03 May 2021 17:47:26 -0400 Received: by mail-qk1-x730.google.com with SMTP id x8so6702096qkl.2; Mon, 03 May 2021 14:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:references:user-agent:from:to:cc:subject:in-reply-to :message-id:date:mime-version; bh=oi9sVo73JMDvR/rZCZ513tNGEgllUoZO49STXWAHY0Y=; b=Tx5Pj0mA+fd84AybEhgetWGzOZUe59aDwhq1TkBLknGO1M233lXovlv3FdGNh0KVOt m7bb84QbyrvG1OVEyxPMEpSbNj/foHX/slw5Bxqk0F2MgkgkVcs41dizaPRfatpb3ckI MJRxmbSaYPRrXsC3+Xz2A3RjjZjIDq1j07QvrRdPl56RiUdwhwMDeP8+kqCNwgq7m8PF VdBfXvKAM8MyTEvlFgmZw9nnPC6QA+6b6whPkhAhQJBcOO4tvpKQSlH2PI53XY8TvSDJ H1cvvlzpq484aPtlDMjZsJm/nd7Ci4No44zQT2jc9pgdkWEP+J8aRceqDOwzKS3cUO9A o25w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=oi9sVo73JMDvR/rZCZ513tNGEgllUoZO49STXWAHY0Y=; b=E880RJFN42VZipv64hYWRy47AOWqtzK89vy5fMyDnNgij/u5VZ6YDt8r5eAVN99kaX Z1LjwMYT89NxXa5qL0QBPvGFMlnCWkJ2npSypAkk8QOgwJHNYnofYlRPON91lHYfgq9P vVmLkFUNk6G2sHa4Dienxm5e03xXE+7Pbsf4Z2GD3m3ATZ5QqZ14Ssn9+ow4cyfl5WTd iySAWjN8whm4wz4QTEZYCBLy7/scKYDCyZ/628hzZ147+0jvTu1Ezvc1GwIF/BRXq5FW XFIWgTpvXgeThrp3j/1l2z3w15btpQQvKPT2MDSzRyFw6XQ0VbuL3y6ePQgcstGSr9hY cv4A== X-Gm-Message-State: AOAM531ZFGUocZP9PqYMBeCRUKGmP0YSHIDbXqBctmumarLOT16rn5v2 Cz0j1jnod7oIKQTXqpPjQgnFksm8EkmoGw== X-Google-Smtp-Source: ABdhPJwMigqdYwr7vnx36gXfxdbhzgu2QmgxXrXIT5+7hbjLKuy6ITSjAmHF/W6+hwHD+icoYGARqA== X-Received: by 2002:a37:7d84:: with SMTP id y126mr21046062qkc.155.1620078438279; Mon, 03 May 2021 14:47:18 -0700 (PDT) Received: from gusbrs-laptop ([143.244.34.239]) by smtp.gmail.com with ESMTPSA id n19sm865029qtp.72.2021.05.03.14.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 14:47:17 -0700 (PDT) References: <87lfh2hk4k.fsf@gmail.com> <87mttbimpf.fsf@gnu.org> User-agent: mu4e 1.4.15; emacs 27.2 From: Gustavo Barros To: Bastien Subject: Re: Bug: org-agenda-later scrolls buffer unnecessarily [9.4 (9.4-7-g3eccc5-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200921/)] In-reply-to: <87mttbimpf.fsf@gnu.org> Message-ID: <87pmy7fq1q.fsf@gmail.com> Date: Mon, 03 May 2021 18:47:14 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::730; envelope-from=gusbrs.2016@gmail.com; helo=mail-qk1-x730.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620078502; 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=oi9sVo73JMDvR/rZCZ513tNGEgllUoZO49STXWAHY0Y=; b=Pq4bxs1i5oi+qAP4cTy1DPHd310rzLil2wo48aTFzo3RnoBDfRcSrmPgSrvZR2AHa8TSU+ KYATqxb3xBxaqYEEeO1l2MksYeFkEkM+P5H1BhvJxLA7QcunuxkC1XvlLlc9/ONJMa02hp rsPGj3y4aPoKAtTbo60E8/hONe4m/iXxWAojF/UJnxHMDKKGLX5CUv1snnHfz3BEmc5sSc MEJGaPt32g2bGUhYomZWW/3its6l90yM43wZTk4VGFY6ewQGtqZvwrJHkMD8TGiuTmb2TG zahbjxpUv8DnNbbEKoh/xQlV2yrgffXac1VTI29rISFH/Yqe43NyujZDRL2bNQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620078502; a=rsa-sha256; cv=none; b=LAmIwDjOe6Ta8NR3BDNxpVzYZLk0Z2/rjL9/GPqHb9bKyZo8ROzDC5IXWDECTgI1r+KKcX o65qdJPgHoerMYVcPT7n2ZqlCu846rMhOhSOgVHDxAw690UE4y8gsPqQ2Axjh4eXRaBhGY neKo5DWe6CHFnTElklmVezigsRSsFFrV8DVMHdEsfV4mBiG4X1jPw8NJrkh+ceXXH38nhy iN7tajSKe3uZq/3yt4+2IkTt7ibhoUNpf1qHyab8CcotqTcv4SF21qC/4NxJgE7RJrPVKW xbRl+I42OHLEFWPT7eg+vhnRX1s2AoEyGsfz2ys8ycMx091YyLBcDhVNI1b7HQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=Tx5Pj0mA; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=Tx5Pj0mA; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: C967625A16 X-Spam-Score: -1.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: NvhS0Hpn09JL Hi Bastien, On Mon, 03 May 2021 at 17:31, Bastien wrote: > Hi Gustavo, > > Gustavo Barros writes: > >> since some time I've been facing a small annoyance in the agenda, as >> when I move point in my weekly agenda to a day which is not the first >> one display and then hit "f" (`org-agenda-later') the agenda buffer >> is >> scrolled up, hiding the top of the buffer, even though there is no >> lack >> of space in the frame to fit the whole window. > > Fixed in maint, thanks. Thank you for looking into this. But I think the commit, though indeed avoids the reported undue scrolling, brings other undesired side effects. Usually, `org-agenda-later' will carry over the current day of the week to the next week. If we call it on Thursday, point will be placed on the same week day of the next week. Just calling `(set-window-start nil 1)' there breaks this regularity. It is easy to generate a case where this happens. Just squeeze the height of your window on a "populated" agenda, and choose a day for which that day next week won't fit in the window if position 1 is shown, and call it from there. Perhaps doing so before the call to `org-agenda-find-same-or-today-or-agenda' would be a possibility? (untested) Best, Gustavo.