From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kLPbAwETEWUq3AAAauVa8A:P1 (envelope-from ) for ; Mon, 25 Sep 2023 06:56:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kLPbAwETEWUq3AAAauVa8A (envelope-from ) for ; Mon, 25 Sep 2023 06:56:33 +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 5E12B5785E for ; Mon, 25 Sep 2023 06:56:32 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=breatheoutbreathe.in header.s=key1 header.b=Byox5cBU; 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"; dmarc=pass (policy=quarantine) header.from=breatheoutbreathe.in ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695617793; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=LDeWAzIsgznjCuaHEVw/38toaCRU/5lFZtJvF5wXadI=; b=kJNGrj/cysbSRQHqc2yK700x9qYXs+b5bwKXXN3hyQJLAYUXpCjhmhlsb6IcfZk9lctDGS ygEl2dENyWDHFtAGitX3XWGL3sJRRG0yl6S1+h9HApWip/xnsUwFToPtYWCYt7AMcq9kWw ljwtLTcm1EC7XQdQAaY3+8sgTiePCJTQPN+1GUE0xePiyFQoUrBGk+gjXcId/8x6yoo0QD nlWGt/m5UHOgn9bhlB/1y9VLiQqikUqWViHWxx1YiR9CEy0ulAAkhfyUwUerXMiQNUSs77 PMXItH7p3+9GbB2aAlryjQVRHUzSBFgFZnp91rnY+As7XZQ9Zbpa13vKB7hSHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=breatheoutbreathe.in header.s=key1 header.b=Byox5cBU; 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"; dmarc=pass (policy=quarantine) header.from=breatheoutbreathe.in ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695617793; a=rsa-sha256; cv=none; b=arxM2jIZbdRcTPl5SxNA1rLNitse+HoOXZVBU6C6pU06KPZI09sFPMe1yitG1rGaDR1607 MWuXDo8WlDiSVIHfDbnR/NXzC23p/vl102hzbOFmpC2soxqOIgkYe4dKoq/TnU0KAFB772 lMpPCZtlUjPrqQ9AdV4ebqbxL6hBqAOZ8AK9k0GCdFe+ktpDO2iYYXq/NtZZrfcgahsRjm 3YogE0PyJPrFTAbGIylyQbNElzZ2VreseKGUwZrRscyI3K1EVf369u0gdMu5x6VPn3vC8a Oh7K8O5DU5VWj2Sa5GPb8ifMnbUT5Xh6vnC/bgBZ8gHhloiBJzO0gJeHFA6UnA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qkddI-0000MS-15; Mon, 25 Sep 2023 00:55:44 -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 1qkddD-0000MC-Qj for emacs-orgmode@gnu.org; Mon, 25 Sep 2023 00:55:39 -0400 Received: from out-207.mta1.migadu.com ([95.215.58.207]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qkdd4-0003t2-Fu for emacs-orgmode@gnu.org; Mon, 25 Sep 2023 00:55:39 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1695617727; h=from:from: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; bh=LDeWAzIsgznjCuaHEVw/38toaCRU/5lFZtJvF5wXadI=; b=Byox5cBU7TjjSmaLbr0IvXgMzPapgZzk78j9Vp63h1jfclPExBWxuMiBkO5rlqa99zovyE lJXBFP5auoiTWDGbUbLpilfXz5PpPxNtTqS6TzUgVRjeoRNfkkHrTDcWmBKjPsiM2THUuh lXBk7iWEbGW1F3trAnc7vXzUC6k3jpY= From: Joseph Turner To: emacs-orgmode@gnu.org Cc: Adam Porter Subject: org-ctags-find-tag should not prompt inside org-open-at-point Date: Sun, 24 Sep 2023 21:28:00 -0700 Message-ID: <87a5tax35x.fsf@breatheoutbreathe.in> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=95.215.58.207; envelope-from=joseph@breatheoutbreathe.in; helo=out-207.mta1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: -8.88 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: 5E12B5785E X-Spam-Score: -8.88 X-TUID: MzXOHH9Ai5ZG Hello! When org-ctags-find-tag is a member of org-open-link-functions, fuzzy links and custom-id links are broken. Instead of following those links, Emacs prompts for a filename with "Visit tags table (default TAGS)". To reproduce this issue with emacs -Q: (require 'org-ctags) Then open an org-mode buffer with the following: --8<---------------cut here---------------start------------->8--- [[*header]] * Header --8<---------------cut here---------------end--------------->8--- Put point on the link and run org-open-at-point (C-c C-o). Instead of jumping to the header, Emacs opens a prompt. One potential solution is to avoid calling xref-find-definitions inside org-ctags-find-tag, since xref-find-definitions prompts when there=E2=80=99= s no identifier at point. I'm sure how org-ctags is getting required in my Emacs, but I think (require 'org-ctags) probably shouldn't call org-ctags-enable. Until this issue is fixed, a workaround for now is to set org-ctags-open-link-functions to nil so that org-ctags-find-tag is never added to org-open-link-functions. Add the following to init.el: (setopt org-ctags-open-link-functions nil) This may break some ctags functionality. Thanks! Joseph Turner