From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 mLleExjVGmOBJQAAbAwnHQ (envelope-from ) for ; Fri, 09 Sep 2022 07:54:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SJFZExjVGmP5DgEAauVa8A (envelope-from ) for ; Fri, 09 Sep 2022 07:54:32 +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 A97FDFD96 for ; Fri, 9 Sep 2022 07:54:31 +0200 (CEST) Received: from localhost ([::1]:48998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWWyE-0007RJ-BL for larch@yhetil.org; Fri, 09 Sep 2022 01:54:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWWuE-00054C-H4 for emacs-orgmode@gnu.org; Fri, 09 Sep 2022 01:50:22 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:39637) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWWuC-0007e7-J2 for emacs-orgmode@gnu.org; Fri, 09 Sep 2022 01:50:21 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 6CEE45C00C7 for ; Fri, 9 Sep 2022 01:50:18 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute5.internal (MEProxy); Fri, 09 Sep 2022 01:50:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quanticle.net; h=cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t= 1662702618; x=1662789018; bh=1oreNvkMYzc9bko2IMooV/QqP0ppyubrupB J7W8DSGs=; b=oyLxqt7ZfaJ9tnAMaGj51yFJGXaWvhfPZdZKHa6j+EzA8tK56TB Aqb3Dx2qwrT5zWrFlwFUW9Sf/L2G+Po+D7sgH1llkcMziYl9Yh5uYuiJ8ctKNalx Q8P15mb/KQH6j21YizyhTQN+SCtlWvGC/hCpAdafW9y4F5Jd+AaoNTKHhONSSH0Q CLpUX7pvZFlBGd+sKhTuyk6tBgNxE5SlSNn2y3Ie/HGu0XdzWBBd8gCN9bKnwoFC k0sv6/D3wExif1tZmhSOjT9h9xbq1UV5mofJww9jWy7JZa56u1+kz3YH9FqlldMs WgHlejYiLV8auJEqMbmYQKSb0eqfWD/QtnA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1662702618; x= 1662789018; bh=1oreNvkMYzc9bko2IMooV/QqP0ppyubrupBJ7W8DSGs=; b=Q 21emvgwlc6rpDiYrY+5jzN6UQcVidBiBErr1iLro8f+iqocHYTVviYpXBap7Gh+B mZpXAA8GqAIgAysKCcP7xoQXtwLaXYWemJO9dAyPuo6jQ2XsyHoDy1cFycA5yRwk kMo7c+TPjnHNgraAHZFioOhY4A++gDMm4672fgQBXE9QTGTiEwi7Jm3YY103HO25 X94IzUDANoqSiv0JL8sOa/PvhIDHY6c/GMaVcR0w7BF3JOgsUIovFMWz9VO8mTJ/ imw9w9MbIY5KiZoSaOqP415qIXjOvZvp2HvthV2+KajwYDVHCm9a4lqGRTd2LT5n W1BeSIADTyv0xnxw1mzkg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedtgedguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtre dtreertdenucfhrhhomhepfdftohhhihhtucfrrghtnhgrihhkfdcuoehquhgrnhhtihgt lhgvsehquhgrnhhtihgtlhgvrdhnvghtqeenucggtffrrghtthgvrhhnpeehudeludelke ekhfdvieegteelhfeghfetvdefkedvvedvfeeftdfhhfegvefgteenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehquhgrnhhtihgtlhgvsehquh grnhhtihgtlhgvrdhnvght X-ME-Proxy: Feedback-ID: i0db1457f:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 374A736A0073; Fri, 9 Sep 2022 01:50:18 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-927-gf4c98c8499-fm-20220826.002-gf4c98c84 Mime-Version: 1.0 Message-Id: Date: Fri, 09 Sep 2022 00:49:56 -0500 From: "Rohit Patnaik" To: emacs-orgmode@gnu.org Subject: Why do org-agenda-switch-to and org-agenda-goto put the point in different spots in the target buffer? Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.28; envelope-from=quanticle@quanticle.net; helo=out4-smtp.messagingengine.com 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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: , 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=1662702872; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1oreNvkMYzc9bko2IMooV/QqP0ppyubrupBJ7W8DSGs=; b=MlW1EjK1zqqxAEm8TBjYzgvoBgesJCd38gW/2XHdOusXesqCGGM207P81CYCgjf/pEJSA8 M8HqpcVfdYu0ppGdYa3DCw7Mj8dPQila4mcZYB+Rli+faDIB3JINiG7nsPTx7TzaeaTxxA 0CfOZo0W35JOLsSvmrfal14OUZTjjcn+GiPkGzywA2X83HcKN/uwOEp1/232m/CXrjptBo MYud40bqdZ20kptCrU0wIciOYPFJCkp61iq3/ZcDTzzz06gxPPoLaG05CkiNZ9VIq4NgaS CdpCUSKKXo0P+Padj4mYqmj1GxSAg6NRdGou7NwiY3JBG3+CeuKa+SM0TZmEMg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662702872; a=rsa-sha256; cv=none; b=X8jzJ1cwSGYcB1YLTn/yQgg7l+ZwWsuI1X5x5gaySSw8XGenDR27UW3czjeQKGq8XiRUJh yLCm/sXrXMLhkSp4HnBRFXsjv3ykMnpPDIOKa6Lzte+kVxZNRAm7y8KIa15fe190jW6+fN DW4wqeU/hMRShoIjA82I0FbThwVdfQzPRI6c6gW9acJJlaejXWceAzYbEKxd9verPw0Xba rMDApPxwPrG9380z4vKuuAtZj0Rwqpbsy+t1TX7NWLrJ9am0N8i+Y+jiPY7geMFhL2MPrM Or6+Sdb/7VO9XPWsGGM+Ym341AcUpETNCa/HuEGnQOR3jWAtumByxmj/dmO3vQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=quanticle.net header.s=fm2 header.b=oyLxqt7Z; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b="Q 21emvg"; 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: 3.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=quanticle.net header.s=fm2 header.b=oyLxqt7Z; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b="Q 21emvg"; 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: A97FDFD96 X-Spam-Score: 3.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: HQsw8M0J8ITe I've gotten back into using org-agenda to manage my todos, and I noticed an odd discrepancy in behavior. When I hit RET in the agenda buffer to go to the TODO entry in the original org file, I see that the point is on the DEADLINE line. However, when I hit TAB, I find that the point is placed at the beginning of the heading. Looking at the source of org-agenda.el, I find that TAB is bound to `org-agenda-goto', which does the following: (recenter (/ (window-height) 2)) (org-back-to-heading t) RET, on the other hand, is bound to `org-agenda-switch-to', which does not have these lines, and thus does not place the point on the heading. Is there a reason for this discrepancy between the two functions? I'm asking because I prefer the point placement behavior of `org-agenda-goto', but I use `org-agenda-switch-to' because switches to the target org file in the current window rather than opening a new window. Would there be any issues with me taking the recentering and point placement behavior from `org-agenda-goto' and adding it to `org-agenda-switch-to`? Thanks, Rohit