From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iMMFHcktHWewTgEAqHPOHw:P1 (envelope-from ) for ; Sat, 26 Oct 2024 17:58:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id iMMFHcktHWewTgEAqHPOHw (envelope-from ) for ; Sat, 26 Oct 2024 19:58:33 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=MgN7o+An; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729965513; a=rsa-sha256; cv=none; b=m5GOAqUvkys0ZlPFOI3udY8u5CyGaCmXfgqdhHMJquAlmR9foi66c6VoATbIZIar6rY/9X j5DQF7Q6p6+jXT3YiJVSqFKh7C7z9FftoZQgxs8zAjhHSH+CN0Sk1yKChfZ4wo8un01b7L 2AKnvnVH4s6Ogvas90emwRD5RRhOGKq5Jkt9S4HlVbWlbp1mFEDdt1EBEBjY5007Y8te9V ICo2xPpapBa2NoeXfCiZ10Zf/jRd6f8GdKbxvfNdr4L8r799jnKZqvIMoOWRruXR4G5KHZ nm3cBSurVeySzfDyIVdZtqiX8OTsTXbLAX0ZXKxWlKDxzVmcSGCWbjp0AJVypA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=MgN7o+An; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729965513; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=cKcH0jotD7FMuZUf19s7aWzGXf/MypaBSR1Mz/LmAIA=; b=rDJG885VRxJ2X9d3OTD+2ixjThC7ACiYy44i1tYZbi7XR6pfG9FdUBF/alkR5vBYt2h5C+ 4eHE/VWIX7F+cvT7AK1fPat4g7BSspHJJKshABzLbtsgwEWsRXtI87bhG2pJHvGok0deKy ZBublt1dGcY3JXXLlDX/7Chu7xGgAnqgv/R7KwEKEBxIgd7BAgaYfzY/TvorzlQSniPMi1 PDDyxaZ3t+6qwuruBsRZWLqpMhhAoFfZQodlpw6wCur2Dhq3X6Dbp5XXbNjZebclKWT0KP LxmPKqCvxExCCcmxS02Apw2MLm1z9gllkmFY3LmV+QX/7zip+75OYOKYX2TDRw== 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 157998452E for ; Sat, 26 Oct 2024 19:58:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t4l2q-0006i9-0m; Sat, 26 Oct 2024 13:57:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t4l2n-0006hk-Iq for emacs-orgmode@gnu.org; Sat, 26 Oct 2024 13:57:45 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t4l2l-0004GC-Jt for emacs-orgmode@gnu.org; Sat, 26 Oct 2024 13:57:45 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7054F240101 for ; Sat, 26 Oct 2024 19:57:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1729965459; bh=cKcH0jotD7FMuZUf19s7aWzGXf/MypaBSR1Mz/LmAIA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=MgN7o+An+FPdWImCfwJj1KVUXhorQ2j2B1Myyh2lKtBhbUimvjYpZWx7bKb3vzH/y vcwrqCD2defiWtpiqGD0jxsqUh5GvQLdK/DgtTStrJCOMQMRVoe+20j8d7/sDg+2ny dJghla9C1WejefgemaIi4UOqyR60lg7R5ALCIDp+GGhbTFYjQr+rXDI644K0VQhJX2 N/05rGJDyan2fGUq6eE1iW7Yr28l3PzdiB3VaseaFRauswKH6fQduNWOWCvoyG8U4r 1ha+PouF1o85blEgym8nU7q8wsIrzJKnyz10pNAkuuzp4+f1aPQdeadeEqZb6MiTxs cvZ+RokJEv5jw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XbS6T3cnsz6tvp; Sat, 26 Oct 2024 19:57:37 +0200 (CEST) From: Ihor Radchenko To: =?utf-8?Q?S=C3=A9bastien?= Lerique Cc: emacs-orgmode@gnu.org Subject: Re: An org-follow-mode following org/org-roam links In-Reply-To: <87a5ex1p3z.fsf@eauchat.org> References: <87a5ex1p3z.fsf@eauchat.org> Date: Sat, 26 Oct 2024 17:59:22 +0000 Message-ID: <87a5eqvj7p.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.10 X-Spam-Score: -1.10 X-Migadu-Queue-Id: 157998452E X-Migadu-Scanner: mx12.migadu.com X-TUID: /fo5LrIzXRGH S=C3=A9bastien Lerique writes: > ... > Now this obviously doesn't work, primarily because I have no > `org-marker` defined as no agenda line is selected. > > I then went over the "org-roam-ui-follow-mode" code, little of which I > could use for this as most of the follow-mode looks simpler, directly > using the network instead of having to manage windows. > > Would anyone have some advice to set this up? How to replace the use of > `marker` and read the current org position instead? You can do something like (save-excursion (org-back-to-heading t) (point-ma= rker)) This will move point back to the beginning of current heading, return marker corresponding to that point, and move back. Hope it helps. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at