From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CPpaFk1LhmES8gAAgWs5BA (envelope-from ) for ; Sat, 06 Nov 2021 10:30:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UPIeEk1LhmGzXwAA1q6Kng (envelope-from ) for ; Sat, 06 Nov 2021 09:30:53 +0000 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 8FA012D03F for ; Sat, 6 Nov 2021 10:30:52 +0100 (CET) Received: from localhost ([::1]:57752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjI2F-0006pl-9u for larch@yhetil.org; Sat, 06 Nov 2021 05:30:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjI1o-0006pJ-7Y for emacs-orgmode@gnu.org; Sat, 06 Nov 2021 05:30:24 -0400 Received: from larmee.jabatus.fr ([109.234.163.43]:58000) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjI1l-0001rK-Jc for emacs-orgmode@gnu.org; Sat, 06 Nov 2021 05:30:23 -0400 X-MailPropre-MailScanner-From: victor@svictor.net X-MailPropre-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.989, required 5, autolearn=disabled, RCVD_IN_DNSWL_HI 0.01, SPF_HELO_NONE 0.00, SPF_PASS -1.00) X-MailPropre-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-MailPropre-MailScanner-ID: 1120210057C.A55AC X-MailPropre-MailScanner-Information: Please contact the ISP for more information DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=svictor.net ; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=gatOp/FFZnEKLtOlv4lqZklULbe1eHrbv4d5O1FhMv8=; b=vSlkTtLOyX6N1eyivKllg/u3E7 kPtkAot1lNvCqnviNrEkswMiibTrAdJMog2TBNgN34OX7Wjb/Vs0N+AQIuAkIR6GYa8K285VBt39c QDmu7y9IRNwPC4OE8JJ0R+t2CHSKMQx/o/NiQlvQR4BxpLyXB+ewLomO4nPdCTf1vkCw=; From: "Victor A. Stoichita" To: emacs-orgmode@gnu.org Subject: org-tag-persistent-alist AND per-file dynamic tags Date: Sat, 06 Nov 2021 10:10:55 +0100 Message-ID: <87ilx5ws5j.fsf@svictor.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - pam.o2switch.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - svictor.net X-Get-Message-Sender-Via: pam.o2switch.net: authenticated_id: victor@svictor.net X-Authenticated-Sender: pam.o2switch.net: victor@svictor.net X-Source: X-Source-Args: X-Source-Dir: Received-SPF: pass client-ip=109.234.163.43; envelope-from=victor@svictor.net; helo=larmee.jabatus.fr 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, RCVD_IN_MSPIKE_H2=-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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636191052; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=gatOp/FFZnEKLtOlv4lqZklULbe1eHrbv4d5O1FhMv8=; b=d4L+ukv2BKBPJtQ/M5Obg+hnz5/m9+HLLyajpem/NBpZhpNVypi8iuj76k/rnbFMRi649U ztM3bwzMS9vKgplxxPrJLkd5DhLHwC35lmXBdaU25py70mQ1y/veObNDnSdfl4j0M8k5Jv 5LJaQSAFfSGZAzT99PoqVh16oR588yGIOK2BjDLQUIHS7GqCNncPqziCVZzOP4j0bpp9Z9 Q1FmdvdO0VRsLHXLTFZD+TydUGCB7kwPR5K9+6+jblv7EALzXcQy9D/voxGLPsO9E1Y89w /O7uxf+xuU7jC69TgRBa/WYyu0aLjEPyPugUexoGLIKbpDtIMrWORssfQpyRmQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636191052; a=rsa-sha256; cv=none; b=UShskTndhzm0eNtVIdOLoglFkKb7LSMAlvG2wAHMOIjTSwR6rJANRyEnVGSsYbvAYTTuGF sGSSppmsY78wf0txxpHI1/kAGODir1anbZBhVQAn7HGwsr32b0VL3h0jNODmqQVzYGvkDa P/4R9oM+o8Y9Z7MK7Q6TiJdKaj6fkDYpI/Uoi6E5j+LPPW8DQEx5KN7FnlsGMA2jFy5aTG Pt1gmv9FIPSuDqKWkIvOVq82nlDnQp84oEoTKipk44MMhhcYBhoJXOyQnR7JoEwEpAXrNX Ew3Hz47PiIA8W8krki+PP/wInQ9wEgRE6XgwiX2rk4M0CxmCD1lwkNyvPc0ZiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=svictor.net header.s=default header.b=vSlkTtLO; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=svictor.net header.s=default header.b=vSlkTtLO; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 8FA012D03F X-Spam-Score: -1.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: jJ+YVaatjJwk Greetings to all, Reading the manual about setting glopal/per-file tags [1], I wonder if it is possible to use org-tag-persistent-alist AND per-file dynamic tags. When using org-set-tags-command, I=E2=80=99d like to select from a list comprising both: 1. the list of predefined tags in org-tag-persistent-alist 2. the list of all the tags that are already in use in the current buffer (some of which might not be in the persistent alist). I don=E2=80= =99t want to use the #+TAGS keyword at file-level, just the list of tags already attached to some headline in the buffer. The manual says: > If you have globally defined your preferred set of tags using the > variable org-tag-alist, but would like to use a dynamic tag list in > a specific file, add an empty =E2=80=98TAGS=E2=80=99 keyword to that file And then it says: > If you have a preferred set of tags that you would like to use in every > file, in addition to those defined on a per-file basis by =E2=80=98TAGS= =E2=80=99 > keyword, then you may specify a list of tags with the variable > org-tag-persistent-alist. I tried to combine both behaviors by putting an empty =E2=80=99TAGS=E2=80= =99 keyword at the top of my file. But this still only gives me the tags in org-tag-persistent-alist. What would be the best way to add to it for completion the tags already used in the buffer? Regards, Victor Footnotes: [1] https://orgmode.org/manual/Setting-Tags.html