From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Canonical way of getting all Org tags? Date: Mon, 06 Jan 2020 12:41:28 -0800 Message-ID: <87h818xqpz.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51787) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioZC2-00087Z-BY for emacs-orgmode@gnu.org; Mon, 06 Jan 2020 15:41:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioZC1-0004QE-10 for emacs-orgmode@gnu.org; Mon, 06 Jan 2020 15:41:42 -0500 Received: from blaine.gmane.org ([195.159.176.226]:47464) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ioZC0-0004Op-R0 for emacs-orgmode@gnu.org; Mon, 06 Jan 2020 15:41:40 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1ioZBy-000zjE-Db for emacs-orgmode@gnu.org; Mon, 06 Jan 2020 21:41:38 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi all, I've got a "tags" field for contacts in EBDB (a contact management package) where I'd like to offer completion on Org tags, so users can tag any of their contacts using their Org tags. Previously I was providing completion using the `org-global-tags-completion-table' function, which Worked For Me™ because I define my tags via use in agenda files, not using `org-tag-alist' or `org-tag-persistent-alist'. I didn't realize that that function didn't consult those options. What's the canonical way of getting a table of all the user's tags, whether defined manually or used in the agenda files? I guess I could do: (org--tag-add-to-alist (org--tag-add-to-alist (org-global-tags-completion-table) org-tag-alist) org-tag-persistent-alist) But that is ugly, and uses a double-dash interior function. Any recommendations? TIA, Eric