From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cPZZJrlYi2A35QAAgWs5BA (envelope-from ) for ; Fri, 30 Apr 2021 03:09:13 +0200 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 4MoUIrlYi2AdDQAA1q6Kng (envelope-from ) for ; Fri, 30 Apr 2021 01:09:13 +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 0EB88F2D4 for ; Fri, 30 Apr 2021 03:09:13 +0200 (CEST) Received: from localhost ([::1]:57338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcHeZ-00019U-Vh for larch@yhetil.org; Thu, 29 Apr 2021 21:09:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcHeE-00019M-Ro for emacs-orgmode@gnu.org; Thu, 29 Apr 2021 21:08:50 -0400 Received: from ciao.gmane.io ([116.202.254.214]:55402) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcHeD-0003JH-Jp for emacs-orgmode@gnu.org; Thu, 29 Apr 2021 21:08:50 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lcHeA-00044u-5i for emacs-orgmode@gnu.org; Fri, 30 Apr 2021 03:08:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Nick Dokos Subject: Re: Programmatically set TODO labels per file? Date: Thu, 29 Apr 2021 21:08:41 -0400 Message-ID: <875z04lgti.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:LvjXX5iHHtl6e0BgP0D+2s+eTCs= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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=1619744953; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=5uHiBX9x9HAvfhiLOhNbKjIiAo8PD6Nk5DaWzVD6tOc=; b=IOuTEiBAOgCmFVYev8CEpGQLLpkQiCFag1Awf8DAsphagQxzngeS0dbrsi3CgN02s8hVTX jVTRD1m9hxil3H5bk7YpTeMLiCil9UE85rfk3vT5/q16UnB2S61vCFSGeuRER/gk5N2fMc vKazSx7BMVV8SMu9WC54IFqk1xawAm2kRxpknhHq/KZzAqrUZql58pcCdc1Ify7j5EGlIZ BfEFvJloY7BVcMdnBrQ/Rk4l7csuUj3UIG21+AofS3IcIJ6JWUYxh/vElmj0XZ37M5fiR8 HqmYNE7YFHYa6yrU7upy95SZ8ZyER9rrLdiFXMVye721m+oe7DyZk7xyUtK7xw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619744953; a=rsa-sha256; cv=none; b=mId4OjF/wctGzuvKdS9BPUmXn/+VIS1wsrOT+0qGvcRgEce7OjiYlm0+pMnYfFA8Hkp5m8 6ZR+B92SCRokb9D2GBiYDgyDXG0H1V3m2AOz6DZnRemS81NY77G3Jt634/2keZPGVs07jt 09nug56P059Nz1XeLRgQOa0pAvyOdpAf/rW6jth7FVSP0RBTROMj5wHaadJMuH/Ln6Cenz cYg4HwWVTKjB3PWzu2MpDfBS/c5AVTsTkOKNu6sZRliCBZVlcaIQ6/0UP1W+tHmmHANW3C pbCwElxLJUgHi/k7XmmPQLcFJrf3vl8u1+Q8mY9ZnfgzlFhTlTCl+QMPy6MEVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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: -0.86 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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: 0EB88F2D4 X-Spam-Score: -0.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: bkXlAkxMSrjy Arthur Miller writes: > I have a simple question, but I wasn't able to find answer on the web, > so finally I'll try my luck here. > > I know I can setq org-todo-keywords with a list '((sequence "TODO" > DONE")), as an example. But what variable is used for per-file keywords? > Once that are set with #+TODO: ... line? > > I guess when org mode parses a file when starting up the mode, it has to > parse that line into some var, where do I find it? > It is parsed into a buffer-local variable by the name of `org-todo-keywords-1'. Do `C-h v org-todo-keywords' and `C-h v org-todo-keywords-1' for all the details. BTW, when the interwebs fail you (or even before that), use the source :-) -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler