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 ms0.migadu.com with LMTPS id AEjOL0UQFWK8XQAAgWs5BA (envelope-from ) for ; Tue, 22 Feb 2022 17:33:09 +0100 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 ILY0LEUQFWIDoQAAauVa8A (envelope-from ) for ; Tue, 22 Feb 2022 17:33:09 +0100 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 DF71B1FBD0 for ; Tue, 22 Feb 2022 17:33:08 +0100 (CET) Received: from localhost ([::1]:35976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMY67-0003iM-Pv for larch@yhetil.org; Tue, 22 Feb 2022 11:33:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMXeL-0002kP-7j for emacs-orgmode@gnu.org; Tue, 22 Feb 2022 11:04:25 -0500 Received: from mout02.posteo.de ([185.67.36.66]:37611) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMXeE-0003MG-SI for emacs-orgmode@gnu.org; Tue, 22 Feb 2022 11:04:23 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 23C14240101 for ; Tue, 22 Feb 2022 17:04:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1645545857; bh=kccwbDdQrUnvoOEnH2OaK7bfqk5SjiKc/S8U5Fg5tgM=; h=From:To:Subject:Date:From; b=dUSWqRO/POpPqrzaNz5Tewq+2kfIUX7b4KmurR8fl8SsH8nOfP6YkyPhQ4GwfMRoX OZYkxjXUhqUtSP15EC7HGZRQCvtuzkIvX58RZoCBGjZS13oIiHfYHpw2v3KZx6Qa3I EpKgKK/vMp6K1HWhFMta28vLziT7pDb9EvHnPlWZBHbjzlMUjsuG8o2z+XDm2Ge3qv QTckOXoMzxCNeKWZ9+Qutpq9pYDI4mKs1mbqsYaA21jx0AI9OF3rukMB2tHij0sB2c 1gfwFBkxGAk18eR2DaLWH5K7rxkyfaUj92jndI97Yv72eyCJqi64njFNaALHluzPhQ m16Z9zdXHgl+Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4K33rc4HGmz9rxD for ; Tue, 22 Feb 2022 17:04:16 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: Open a footnote definition outside a narrowed subtree (workaround) Date: Tue, 22 Feb 2022 16:04:13 +0000 Message-ID: <878ru23n2a.fsf@posteo.net> 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=maciaschain@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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645547589; 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=rr5Bvc1+JXj36nU4SpXpn+mubFw9WAMA6CnfCM3ifZM=; b=XkcQEFz3H3PKXoPominjVVm0hdQH8yGDEHAGBcCeGQOwGq6LJTZ95l3tSf259G7MGfLJXa /jG4oZSzTB69C0fVrkoxHJ7eSRyFcViY21BlY5ElvNIU6TKo858LFdzg2QcqGstv+l4e1C 0RD36j9jxnSMBL682B/7TdbijLKSEASs7uPggDeiaD4q5QzuFV7rRMyIOp0+BODCsSqDyy krRJewZhCq2t1MtAnK6kAMcZnc7tLQDl3Nz4E+afRzoLVcoIWmKSyZwaUbghilolxIJfwB rJb2IExHVfhNdPs5gkT56m12XvYVQqUCOx5IeCf1M1aVceTot5lfsteuvIYQHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645547589; a=rsa-sha256; cv=none; b=uZrrPBDmmEhbdMiACvSIi+qDBfIhZ3PVygE/5gd/OXiR74es6Rz9SGg7qo8j0p1Vt/Fb1V n9Yv1NrA4Q3Yp2+jpbKoxd42mI3f5Na4zYKNlPbYnZAzESvdDS4TWu0nmFw5GI9LYk5MYD zyuF8f3v0trXqxHoGbXuMHA2nBamLitwjiqksWZnDW1Z1KGjQX3fcyoPzJlZRu9ZUqTMJL i3dV6w3yVpJlQIbWG9A4DdVW0Suh/lTa8b3BfwXlVpZ/ffrmDnzqofIHw6Ts5wetXVbpKz Z5cxzSrasQBbEUTcbThwaeoQr3/3wYe2TrQv3xcTvm3yX5egWbri2Sbgi8yw9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="dUSWqRO/"; 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" X-Migadu-Spam-Score: -4.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="dUSWqRO/"; 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" X-Migadu-Queue-Id: DF71B1FBD0 X-Spam-Score: -4.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: Pg+YZDG+bEEZ Hi all, When I am working on a narrowed subtree and want to open a footnote for editing (`C-c C-o': `org-open-at-point'), I get the message: "Definition is outside narrowed part of buffer". I don't know if there is a "standard" solution for that (aside from cloning the buffer and/or removing the restrictions)... I=E2=80=99ve written this simple and quick workaround, and then remapped `C-c C-o' so that: `C-u C-c C-o' my function `C-c C-o' `org-open-at-point' =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (defun my-org-open-fn-indirect-buffer () =E2=94=82 (interactive) =E2=94=82 (if (not (equal (org-element-type (org-element-context)) 'footn= ote-reference)) =E2=94=82 (error "Not in a footnote reference!") =E2=94=82 (let* ((el (org-element-context)) =E2=94=82 (label (org-element-property :label el)) =E2=94=82 (buf (buffer-name)) =E2=94=82 (format (format "%s | Note %s" buf label))) =E2=94=82 (when (get-buffer format) =E2=94=82 (kill-buffer format)) =E2=94=82 (clone-indirect-buffer format t) =E2=94=82 (setq header-line-format (format "NOTE %s" label)) =E2=94=82 (widen) =E2=94=82 (org-open-at-point) =E2=94=82 (recenter 0)))) =E2=94=82=20 =E2=94=82 (defun my-org-open-at-point () =E2=94=82 (interactive) =E2=94=82 (if (equal current-prefix-arg nil) =E2=94=82 (org-open-at-point) =E2=94=82 (my-org-open-fn-indirect-buffer))) =E2=94=82=20 =E2=94=82 (with-eval-after-load 'org =E2=94=82 (define-key org-mode-map (kbd "C-c C-o") nil) =E2=94=82 (define-key org-mode-map (kbd "C-c C-o") 'my-org-open-at-point)) =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Best regards, Juan Manuel