From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wGfkNNqnEmXapgAAG6o9tA:P1 (envelope-from ) for ; Tue, 26 Sep 2023 11:43:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wGfkNNqnEmXapgAAG6o9tA (envelope-from ) for ; Tue, 26 Sep 2023 11:43:54 +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 CD80E5CCDF for ; Tue, 26 Sep 2023 11:43:54 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ql4aj-00016K-PD; Tue, 26 Sep 2023 05:42:53 -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 1ql4ad-00014S-1j for emacs-orgmode@gnu.org; Tue, 26 Sep 2023 05:42:47 -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 1ql4aa-0008Ok-Rm for emacs-orgmode@gnu.org; Tue, 26 Sep 2023 05:42:46 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 20728240104 for ; Tue, 26 Sep 2023 11:42:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695721362; bh=ulVBEFTAI1hdqR2UFoosrRce/SgPzGiCXW69Rp9T1ek=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=KzmVHRm+ZT19FPMx9ZYmGf2Y2i7zEcCvTxYPrGQjZ/6Rn5SZdJf756o3tNkDeu57N mwaXP0g4TCIBqQzSD6IIqwrTFyWGEkjwyIFFHzDjiCQcEyd/ddyGYOEsKnKO2M9eYl p7t5JFoczfN9dFfUzHYAXgCv0lsBI68rn2jW+2o4HI+SFMrLXfgUIXhG5IwL1UZznZ /lGqxW1RRPAmu1u24+4ElNQ+QFZIEaHIR0xpDOIUiqYRdNx8+Azb3vWtt/kdRWj41D D9QQ1ucaNDKp8hlIAFD4ygIf30LuBtzrOqN7EvdxP8ULmY264nOL5E/cD6xgxIMpcY TQ7Yxw3RhbjRg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rvvt90Z5hz9rxV; Tue, 26 Sep 2023 11:42:40 +0200 (CEST) From: Ihor Radchenko To: Joseph Turner Cc: emacs-orgmode@gnu.org, Adam Porter Subject: Re: org-ctags-find-tag should not prompt inside org-open-at-point In-Reply-To: <87a5tax35x.fsf@breatheoutbreathe.in> References: <87a5tax35x.fsf@breatheoutbreathe.in> Date: Tue, 26 Sep 2023 09:44:03 +0000 Message-ID: <87bkdp9sm4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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_H5=0.001, RCVD_IN_MSPIKE_WL=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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -4.00 X-Migadu-Spam-Score: -4.00 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Queue-Id: CD80E5CCDF X-TUID: Rnbl0dStoECz Joseph Turner writes: > 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)". This is expected. As per org-ctags documentation: ;; By default, with org-ctags loaded, org will first try and visit the tag ;; with the same name as the link; then, if unsuccessful, ask the user if ;; he/she wants to rebuild the 'TAGS' database and try again; then ask if ;; the user wishes to append 'tag' as a new toplevel heading at the end of ;; the buffer; and finally, defer to org's default behavior which is to ;; search the entire text of the current buffer for 'tag'. ;; ;; This behavior can be modified by changing the value of ;; ORG-CTAGS-OPEN-LINK-FUNCTIONS. > 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. Check out https://list.orgmode.org/orgmode/87o7omg4ie.fsf@alphaville.usersys.redhat.com/ We generally agree that (require 'org-ctags) should ideally not have side effects, but do not want to introduce too breaking changes either. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at