emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Canonical way of getting all Org tags?
@ 2020-01-06 20:41 Eric Abrahamsen
  0 siblings, 0 replies; only message in thread
From: Eric Abrahamsen @ 2020-01-06 20:41 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-06 20:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-06 20:41 Canonical way of getting all Org tags? Eric Abrahamsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).