From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: automatic completion of file tags Date: Mon, 27 Jan 2020 12:12:20 +0100 Message-ID: <87mua9gnl7.fsf@gnu.org> References: <87lfpyv9hl.fsf@polytechnique.org> <878slucfo3.fsf@gnu.org> <87zheaqd2h.fsf@polytechnique.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49393) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iw2Jc-0001yu-MV for emacs-orgmode@gnu.org; Mon, 27 Jan 2020 06:12:25 -0500 In-Reply-To: <87zheaqd2h.fsf@polytechnique.org> (Alan Schmitt's message of "Sun, 26 Jan 2020 19:37:10 +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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Alan Schmitt Cc: emacs-orgmode Hi Alan, Alan Schmitt writes: > There are no headlines in the file (it's a small note). I want to tag > the file itself (or its content). It's mostly to help with full-text > search (I prefix my tags with '#' so they don't occur otherwise). I > think the notion of file tag does not really exist in org mode, but as > there is a '+#FILETAGS:' cookie (?), I=C2=A0was wondering if there was > infrastructure to help me enter the tags there. Thanks - I now understand better. You may want to hack something together based on this: #+begin_src emacs-lisp (replace-regexp-in-string "::+" ":" (mapconcat (lambda(s) (if (stringp (car= s)) (car s))) org-tag-alist ":")) #+end_src --=20 Bastien