From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EN6XAaycG2MQSQAAbAwnHQ (envelope-from ) for ; Fri, 09 Sep 2022 22:06:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GJdyAaycG2O0fQAAauVa8A (envelope-from ) for ; Fri, 09 Sep 2022 22:06:04 +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 388383EE36 for ; Fri, 9 Sep 2022 22:06:03 +0200 (CEST) Received: from localhost ([::1]:34128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWkGH-0000MM-V1 for larch@yhetil.org; Fri, 09 Sep 2022 16:06:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWkCu-000855-88 for emacs-orgmode@gnu.org; Fri, 09 Sep 2022 16:02:32 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:33939) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWkCs-0004hP-FC for emacs-orgmode@gnu.org; Fri, 09 Sep 2022 16:02:31 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B46EB5C0032; Fri, 9 Sep 2022 16:02:29 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute5.internal (MEProxy); Fri, 09 Sep 2022 16:02:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quanticle.net; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1662753749; x=1662840149; bh=f/ Sj6rywai1sPHtRUUF3UK3LQzBIuSo2gL9SIIdEjH0=; b=jkjTfEmyupb/Dj8HI5 L0Zmyk4S7kli5SuD+jYKgXP8TG3oOaFRbIY+qU0yPLJk8kwKE1vhjeCsaGzGPFKk 2RI95EeTyJqx8WV8evIE+AJ8hQ3NLY0siyAfjfbwhM6mA7s7w9HuxzxWn9rrrOLQ 5zWzI7OHv42b7i6rsLFeGv6CQCNAOkjLltvdCWJX8BY4d6NjFr9410ERUUH2cKWT VE0mAqqY6C1E7dq1Lph6Pv30NWkWyWgEXVHNVTyVF3hCtqCvbrBVV4jwI5rrYOCU eDuduN25P4Yj9Gw1M3l9zsVsNlMpeER8AAnWpEL2PqBPIem8ZoecGfGQ93pC09h/ dT/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references: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=1662753749; x=1662840149; bh=f/Sj6rywai1sPHtRUUF3UK3LQzBI uSo2gL9SIIdEjH0=; b=m6PncDpQ9f0E8t34JFzZ71EPC8tg0OZZU043UovM3GS2 FYUG+dZuFjRnMT8CKMnZJQdVKHgr3O1SCNUjlc/nMqhkI4YoLYkgGbCMfX2M+NwL V+x5PInHYnaSZ1l5DJdU7a4zpXqJjEZuUthH4hauUtlYYtMY4nrDkmsur7bZf32N jeV/1kAuXlbKAT9uMDRhc3JpjA+G5X8pa3jfuMcZRMf4t6xJWSiyF3VWEBjmkyNj edoYzXbG3YcuD+gOClJlM/BSU3Sg5eSi0+OrEDLkRI2x0CO1q8LFgjjCZ/3ShS88 cVWgNRebIKUAuRilXXZjZhUUoUSGb2Je/sNBEFB9Vg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedthedgudegkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvfevufgtse hmtderreerredtnecuhfhrohhmpedftfhohhhithcurfgrthhnrghikhdfuceoqhhurghn thhitghlvgesqhhurghnthhitghlvgdrnhgvtheqnecuggftrfgrthhtvghrnhephfehle duhfeitdeffeefheffgfdtveehhfdtveevffeijeevgfdvudffheefvedvnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepqhhurghnthhitghlvg esqhhurghnthhitghlvgdrnhgvth X-ME-Proxy: Feedback-ID: i0db1457f:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 817F836A0073; Fri, 9 Sep 2022 16:02:29 -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: In-Reply-To: <87y1usdeu0.fsf@localhost> References: <87y1usdeu0.fsf@localhost> Date: Fri, 09 Sep 2022 15:00:37 -0500 From: "Rohit Patnaik" To: "Ihor Radchenko" Cc: emacs-orgmode@gnu.org Subject: Re: Why do org-agenda-switch-to and org-agenda-goto put the point in different spots in the target buffer? Content-Type: multipart/mixed; boundary=e4d39b21b54d44df8915e3d2adcebb30 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=1662753963; 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=f/Sj6rywai1sPHtRUUF3UK3LQzBIuSo2gL9SIIdEjH0=; b=GSCtS7MXeDs9xVjgV2v01b7bYDDvxADZ1b5oZKe+UkOcCGIUBgnIIYvk7oyPQNhHLr/bES yk4TFso0YAgrKlfwkDI9OXFvByjkVGP+H2ODkwh94752ZEdt9xMkVet0/kaxaE+o6Jl6hk d1j/6+st92+Gt5yK6/ctXmSRmxTWCON7Om/Bs0Nt+oGpqP5OTMMBqDlxu4VW68Wyybtlew v4b+4SmdS/9ov1XTgKuaj/L7WCFzVQ9PVL9AY6XRUN8yOxI2UQw3qFFJzO90QhHzLe/jjD XzlqrIlMyzbm9+O9Yzvd+HEtET//YQJnL1C5XNJ1hCB7nQqpmpVuAi1nkdDzwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662753963; a=rsa-sha256; cv=none; b=azXWUPvml8VNabf93a3xMseWmhR6I6zDEiR7aop31Iu7d5oLQlik6/3NWWaJW58kOLRHn8 nYR8agl2+mVEu+UKIXrAmjJAl8YHQ5mkSI7cOMSUTelNdb9BnpkhSc7pGT4fZ1XX0p9gZJ 93h0OwjljYt6LNIAmoQYcB63TMgYn4K2+OkRLybkcj85nuta/NJXQLwE04I1WHBxsaxG4B whq/QE4nJX1GmOvsmRZitp+8mj/KhtWWZ22BCKnJalf3eu0qDHpd6KXrcQ92AYMthCvotY B+grlPjWpnJz3N1ZT9dPshPTwKr+h+OWkgaffu/O4XsiNpkU+ZZkPIpVaSGjXg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=quanticle.net header.s=fm2 header.b=jkjTfEmy; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=m6PncDpQ; 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.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=quanticle.net header.s=fm2 header.b=jkjTfEmy; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=m6PncDpQ; 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: 388383EE36 X-Spam-Score: 3.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: zH/L1hky2vN3 --e4d39b21b54d44df8915e3d2adcebb30 Content-Type: text/plain > org-agenda-switch-to jumps to the actual agenda match (usually a timestamp). > It may or may not be close to the headline (think of active timestamp inside > notes). Such behaviour, albeit undocumented, may be useful for some users. I'd > rather not change it. Okay, that makes sense. > Recentering is purely a visual thing. It should be safe to add. I've added the recentering behavior in the attached patch. The recentering part was more important for me than the point jumping to the heading, because sometimes the match would appear at the very top of the screen and I'd have to scroll up manually to see the heading. If the screen is centered on the match, then it's likely that the heading will also be visible in the window. Thanks, Rohit --e4d39b21b54d44df8915e3d2adcebb30 Content-Disposition: attachment;filename="0001-org-agenda.el-Make-org-agenda-switch-to-recenter-on-.patch" Content-Type: application/octet-stream; name="0001-org-agenda.el-Make-org-agenda-switch-to-recenter-on-.patch" Content-Transfer-Encoding: BASE64 RnJvbSBjOTI5MTdmMDllYjFiMWVmMDQzZGQ5MmM5MTRiZDg4ZmE3MmU3OWQ5IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBSb2hpdCBQYXRuYWlrIDxxdWFudGljbGVAcXVhbnRp Y2xlLm5ldD4KRGF0ZTogRnJpLCA5IFNlcCAyMDIyIDE0OjU1OjA0IC0wNTAwClN1YmplY3Q6 IFtQQVRDSF0gb3JnLWFnZW5kYS5lbDogTWFrZSBgb3JnLWFnZW5kYS1zd2l0Y2gtdG8nIHJl Y2VudGVyIG9uIHRoZQogbWF0Y2gKCiogb3JnLWFnZW5kYS5lbCAob3JnLWFnZW5kYS1zd2l0 Y2gtdG8pOiBQb3J0IHRoZSByZWNlbnRlcmluZyBiZWhhdmlvciBmcm9tCmBvcmctYWdlbmRh LWdvdG8nIHRvIGBvcmctYWdlbmRhLXN3aXRjaC10bycuCgpUaGlzIGNoYW5nZSBjZW50ZXJz IHRoZSBzY3JlZW4gb24gdGhlIG1hdGNoIHRoYXQgYG9yZy1hZ2VuZGEtc3dpdGNoLXRvJyBq dW1wcyB0bwp3aGVuIHRoZSB1c2VyIGhpdHMgUkVUIGluIHRoZSBhZ2VuZGEgYnVmZmVyLiAg VGhpcyBwcmV2ZW50cyB0aGUgbWF0Y2ggZnJvbQphcHBlYXJpbmcgYXQgdGhlIHZlcnkgdG9w IG9yIHZlcnkgYm90dG9tIG9mIHRoZSBzY3JlZW4sIGFsbG93aW5nIHRoZSB1c2VyIHRvIHNl Z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