From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8IcBNhQsi2APBwEAgWs5BA (envelope-from ) for ; Thu, 29 Apr 2021 23:58:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qF97MRQsi2CzJQAAB5/wlQ (envelope-from ) for ; Thu, 29 Apr 2021 21:58:44 +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 390B5C63C for ; Thu, 29 Apr 2021 23:58:44 +0200 (CEST) Received: from localhost ([::1]:41944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcEgE-0008Ob-Es for larch@yhetil.org; Thu, 29 Apr 2021 17:58:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcEfp-0008OT-Qn for emacs-orgmode@gnu.org; Thu, 29 Apr 2021 17:58:17 -0400 Received: from mail-oln040092074047.outbound.protection.outlook.com ([40.92.74.47]:1510 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcEfn-0003KK-6K for emacs-orgmode@gnu.org; Thu, 29 Apr 2021 17:58:17 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nu/epWTGPYo/w9AEFt1mhcgwBip7etd/QHfpbtz5JTTcpHKyng5g3ErkNEaPLrtroFnAtgNeJBBP8bn5tTH3AgMowTXbl0lJov/RHZMeMTGnBfvb3qmKeP+aYpCZDnJgJZZmb2I3xXCuAqHmC7xi9dF1VebLYgO+zu/QQLMWtYLWSVz5m6kFz1+dgl/9Id6i5w2k11FNYRwHWgnnbNUXs3lcSWqi/+YoAiJmPiMvaDAG685aybB/uEtF40Sx/mhqcjOMqOanmPlIQLiBjNWQCwoWBjhskU8sHME77+xo/v+Hc+ncLqAwL15vP2gDaVjg6dsVRUbFRawOGY9owHjg9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pqkY2YKB23tav7Ow9iVq33+rYPPluvt9E9vxqJ249KU=; b=ElKJNCUKM/PqRSADOvVHv4GI6UaCiH/eSnxYGi/8Tf/0Xz1nDMtsV8Qf15TWT0zZWR2Ymrd/2fVtFCL33p4D/IdDQZRE6v4ZrnjKyONauM6X4EHnDuBMkaO26OKWck8P6gtRrUlMH86js0kjWt5uj/9/vxOhK4ETHuu9eSvYree5Tsu2wLITg8Lb3HR7KAWZovDFFeONbjqfzC9toDM0UIP25pEEfhL+3wf9EjCRtb1pvmzKaKO9QYxNIK6bU82RHBt2Ecfwr9/B0TGGQOYV9403Mb12S729HurdFgq1/BmnhEFNv7tH6F+wYl+9X5FuEaGEKHZUXwHx+A1CRY22Ig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pqkY2YKB23tav7Ow9iVq33+rYPPluvt9E9vxqJ249KU=; b=SC2saXqFhOfa7RBDvmMUzlrf6XS860/aKYdNVnAciviRDDrBcApj3HCSDsqRRfjg6NjylOIkfx6Ytmw3FImjNArgi+zMm4nbVATqFYVKI43BitMtbfwxCjx2rq4b0lln4lmFSF82FiT/gTVuYh1eY9hGPydShb5wpMD4qmXUskFlycie2Vo/wZbNaIifBJQOW1fr3UekUBd1vx0QoFFAT1gTqdoN/6rkg+KX8OZMMnxtwzfUUz0pdF224p66QsJFvWUBydSZGhPQaBVfFsar7BBpAl3zfjnoxUjXUU3nkZcID0a/PI1bzKcd3uE0+iSthdGym2ddiMj1L8zMmDGXXw== Received: from DB3EUR04FT029.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::4d) by DB3EUR04HT171.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27; Thu, 29 Apr 2021 21:58:12 +0000 Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e0c::44) by DB3EUR04FT029.mail.protection.outlook.com (2a01:111:e400:7e0c::67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Thu, 29 Apr 2021 21:58:12 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:EA447109AECBFF91F657718227CFAFE5487052877B49C33CB362B75089FBAEB0; UpperCasedChecksum:31996E7E8C8B1626B9D9FCFE49D49F49786F0AFAE6D2CF11640B525DB2203096; SizeAsReceived:7460; Count:46 Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::d1c1:2a0d:3b2b:4591]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::d1c1:2a0d:3b2b:4591%7]) with mapi id 15.20.4065.027; Thu, 29 Apr 2021 21:58:11 +0000 From: Arthur Miller To: Subject: Re: Programmatically set TODO labels per file? References: <20210429210951.GA8487@tuxteam.de> Date: Thu, 29 Apr 2021 23:58:10 +0200 In-Reply-To: <20210429210951.GA8487@tuxteam.de> (tomas@tuxteam.de's message of "Thu, 29 Apr 2021 23:09:51 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) Content-Type: text/plain X-TMN: [/hQkEJRseRPb9NF//GV8Akb1625JVZsJ] X-ClientProxiedBy: AM6PR04CA0052.eurprd04.prod.outlook.com (2603:10a6:20b:f0::29) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <82o8dw4utp.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from HP-Laptop.homepc (81.232.177.30) by AM6PR04CA0052.eurprd04.prod.outlook.com (2603:10a6:20b:f0::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Thu, 29 Apr 2021 21:58:11 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 90c0c955-d0dd-42ce-01fb-08d90b59e19f X-MS-TrafficTypeDiagnostic: DB3EUR04HT171: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YxwqRF8imzzFuwx5NHtsQTYnGACgTfmP5nDzBNleWzjnZChOTqOBHay1VRZNigXyrX0aThJ+F/jCm64q7/YUJoomfnlnJbzmXQfWDsChPPFNOtBN3gCRAhXVjtYk4sIP4f8m/1HlDxfVu+AcOeXkhNRVTQS+/EFzHAF/t1zuT3OFCUTFAaE4kp1l8ukg0xxKqO6iYOup7OyYww/7+VWQf4ZvKoJY6pd/ibWVAg8Ftr0WFXTH1r+syD16bKS1xSPktEgCkR18RHLZbA/yfNkC4//TAYjkMrqHMmK4Q0jP/BggGMhNyZcCW3vPijTXfSC9jSYVfWSqCnIYw/5uCvedN5aIakaStJ8pcR4LMaqvM1zP0Uwm6L66pH/1xm9d0pp9gbjEZhBqDNNRN9GkfsOqyg== X-MS-Exchange-AntiSpam-MessageData: x48kzsj6k6zTTQnGS3MNEx1NXS4AvYkNlBE/ge3D7Q9JV3Au/hg0LcxjDhCG+4pk5zCTQze46JLQC10KirXMUYH9SGT8vO7dfnesHMdkkMFvDQACzc4TWEk0vKz5XONbXPt4K87KhOH2t8Z4dRjTew== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90c0c955-d0dd-42ce-01fb-08d90b59e19f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2021 21:58:11.7812 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB3EUR04FT029.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3EUR04HT171 Received-SPF: pass client-ip=40.92.74.47; envelope-from=arthur.miller@live.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com 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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619733524; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=pqkY2YKB23tav7Ow9iVq33+rYPPluvt9E9vxqJ249KU=; b=P4VVqyRtipuWrlGY0iJKpd0+NVJtUyrpkpJXH9V142SY9iEutm23DRFnJJ5c4EUwBRW1E3 8TA9IOTpvjSuR2ZdU4a42g0i0FRi3UQtN/9LmYs6Rr0du9ml3lcGMJn4swgKDoCZaKXBc5 oZpQv2EkgC+pDwgSeoB3q+m17kodG2hx+Eav3DHMuWcSs4nLRLfZ1qVEdSyjBUewPfg2Xn oSxn9QtTA8WvN8LgDQl4cjDsg+oYBG4Jn38vY+nNIU5gUl2vSCiLbLToOjM9N4VuAAEJxn VYyhigIdjGdseR/6bMD5FRxJW/4BatJ/YkWnMnFQ6q59kMkA3i/C/MdAMY27aA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1619733524; a=rsa-sha256; cv=pass; b=c9mAoa/MUggIIOaCmFRvT4kEY38qdpPTU2Zvmrs0klIOv55QRkPWCVSycX1IiVrtBYjey1 AxxnVcI5zYcAhQM8NuP9o5tPGwGRoEWpD1u76Si1+d5WStbOwYy+QWfiLk/s94kLDxV/fJ 1I1XJHKsxDpjIBooe9fuk1i6L8NP1qYit/PCLmAYlDE8YublZO8DfQ93YL6gvZonRI46NG J9yjTkKSc6FVtG01pol70E3p7tHg+NgEmRofkGnvrtwhJUvodiDarLZqPZwfkdE1ewGzxk Djh6vUf/hmh54gYY/sIsq1+iuAFPjk9e2LctbPn82e4cslLgVJDLIdoXynHBhA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=SC2saXqF; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=live.com; 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: -3.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=SC2saXqF; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=live.com; 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: 390B5C63C X-Spam-Score: -3.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: TdylQCdjwxgf writes: > On Thu, Apr 29, 2021 at 10:49:54PM +0200, Arthur Miller wrote: >> >> Hi all, >> >> 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? > > Use a file local variable? > > That said (or rather, asked), I don't know whether there is a specific > Org way to achieve that. As I understand the manual, the org specific way is to use per file variable, but instead of using Emacs _*_ for file variables, org uses #+ and they do their own parsing seems like. I might missunderstand, but the syntax to use is: #+TODO: keyword1 keyword2 ... keywordN I was looking around in org.el a bit now, and I see there are three vars associated with per-file todo keywords: org-todo-keywords-1 org-todo-kwd-alist and org-todo-key-alist which seem to be set in org-set-regexps-and-options function. I'll see if I can refactore something out from there for my purpose.