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 cAMHMDzci2DgZwAAgWs5BA (envelope-from ) for ; Fri, 30 Apr 2021 12:30:20 +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 4AXkKzzci2CdFAAA1q6Kng (envelope-from ) for ; Fri, 30 Apr 2021 10:30:20 +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 E8BA918A04 for ; Fri, 30 Apr 2021 12:30:18 +0200 (CEST) Received: from localhost ([::1]:43118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcQPZ-0003Cv-1D for larch@yhetil.org; Fri, 30 Apr 2021 06:30:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcQNk-0003Am-68 for emacs-orgmode@gnu.org; Fri, 30 Apr 2021 06:28:25 -0400 Received: from mail-oln040092069019.outbound.protection.outlook.com ([40.92.69.19]:16899 helo=EUR02-VE1-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 1lcQNg-0005uN-NZ for emacs-orgmode@gnu.org; Fri, 30 Apr 2021 06:28:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GTbMgkOmJW4XCcKlo2uOgGE8fi9alR7hOc/pL91TqKA1us6BiPNBtiryTYse/Jer+mfMLFwgDDc0lnRLeOsRQaXKvuiBrr5CWwiNIl/vBlRm4ukc8bow6ktA9I/fvyxmsjRwrJEZTc8FNqqTV+sedquvGxLEAy+zy09PcRiM8xkHp53tyDsqUEcfyzai4W7R3JT5BHwxG7G+J3HwW4T4VvQryjk3juz4fA+dMnD7aQQEC7pgvoYLlwmcAENFskfmgVMJR5MBdRyd5KbKKGOd0zIIqNYAd4N02k4rbqAihEnefiYX1GeIsklKvgS5EY/csW3hevP3kIv+/s59MAs3qQ== 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=/hV9bUEpwA6DXgtApLJ47e3dXN0WXPlmxiLvlhiH+Ss=; b=TCuftY82TpUPq3oKABMDm37i4VxFgH2lA0XaKvGxXQzEVwHDqjtD3yTqpb85laymlpYU2PM8qW+g4v25Ti7R+M9jU8skeqRHDf4F+XJiNxfAsWHkU8L3egcgXwTyCITTEvoMhw1xyKbjY/VputJZcnorPdYxNLPqH3U7MT7j7feeaqPI218W+AQdXDkflnpQBodnlN+DkgjsLj5lkY7PrAF5nKSr8QUe/MjKNpPZV73qARUNTuUCNXpO3e17YqMF3SaqVgNEcJEGYalEqr6Qu+SZLinGx37xvgB1eAOj0xupTx4A9kKgjURP5PaacLo9YGRyRLpZDzMvHqe8fhWpzQ== 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=/hV9bUEpwA6DXgtApLJ47e3dXN0WXPlmxiLvlhiH+Ss=; b=YAjYqRo9ScDQT8N+B9Vzm75Fd6bQj2jdrfm0mh0jGr9IPrOFf1Q+jAnf6ij0x/j4+coWbT1PUC0JQO8eKVJgl2nQiRNn5aNur4Is+6ppwr4SOFFvUImwfwYbrlI/7GKHSbdszYOJyJ3obCzIh5JhjEr7nLQ4gn6eP9Yl7mP7fjrv602UtpeDw5nLja6qewzPWsqSlXziRjsp6kLu44sr/uH1F910Ef6/OWt2PfSvWyWoLKOGS3niUAbtvEEAE3pyDa+nSLO2WrSllKqbiUL0sZIpLxxNEChKXjkdS1WCbqjmXdH1prvazSoOoIgVPLNp3rvQ1DImBRJWdM5zWjqD9Q== Received: from AM5EUR02FT043.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1c::43) by AM5EUR02HT019.eop-EUR02.prod.protection.outlook.com (2a01:111:e400:7e1c::438) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27; Fri, 30 Apr 2021 10:13:14 +0000 Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e1c::4e) by AM5EUR02FT043.mail.protection.outlook.com (2a01:111:e400:7e1c::358) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Fri, 30 Apr 2021 10:13:14 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:DA960F1D02333ACEF38B7B451CE15D84513CC4AA7CAF08297AA0B047A5893C68; UpperCasedChecksum:41C6EC994EC33E846DE51E17A8B3BFA4A0B549F8B6F223053684AB9519354781; SizeAsReceived:7497; 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; Fri, 30 Apr 2021 10:13:14 +0000 From: Arthur Miller To: Nick Dokos Subject: Re: Programmatically set TODO labels per file? References: <875z04lgti.fsf@alphaville.usersys.redhat.com> Date: Fri, 30 Apr 2021 12:13:12 +0200 In-Reply-To: <875z04lgti.fsf@alphaville.usersys.redhat.com> (Nick Dokos's message of "Thu, 29 Apr 2021 21:08:41 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) Content-Type: text/plain X-TMN: [+n9qkHVCnTgkOwtGHB7sLrhuPIM+A+IE] X-ClientProxiedBy: AM5P194CA0009.EURP194.PROD.OUTLOOK.COM (2603:10a6:203:8f::19) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <824kfo3wsn.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from HP-Laptop.homepc (81.232.177.30) by AM5P194CA0009.EURP194.PROD.OUTLOOK.COM (2603:10a6:203:8f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Fri, 30 Apr 2021 10:13:14 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 1eaa8d72-d9ef-4430-3561-08d90bc090da X-MS-TrafficTypeDiagnostic: AM5EUR02HT019: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NMY3j7xTI0+H9pn5r20r/gMBXuzDTbr+3x3OPlfjKP20fq3yM25AkCsvPLmUjAboKEI0aJfhgGdQIA/RO00tf9odmnkw4v+tijCudG8/pvlcqPcC1aWePAoPdrf6G9GIdn+XQhvYA4tWz1SqA9tcM2P6q4opHiw7SLgQx3XdONh+opP8IEEfsLmxHmEFfsuYEYaBOX1x4npl2uM22DtcM7TiBzr0uxwbxALuHA95STiBi7/proXK1pETd732GvMhaR7aU3rSApGFt2ZPnAUXMR6Tb7fkcd7M3bhtz48d6sanezrGhjBKzZfH1+h+Kkm9RHBjzluSD22zkR16dGAimWxxbJm0SgdsgFdcZDduUwmlZ0JvjPFKZsxqssaLFYL1 X-MS-Exchange-AntiSpam-MessageData: PN2kwOvM4jbBQs6BHpmdBeiUymaVJvC9lSHzUCVlL4OyXuLVUSunWUlLNZDpg4zTJLxS+3uk0WEL2qp8/hjGcehzu0pgICH7QipT8nHO/U14vWn5IykpjYmis+e5lfKf1YkK/EgTlgaqeUWy/wuYvA== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1eaa8d72-d9ef-4430-3561-08d90bc090da X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2021 10:13:14.5295 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: AM5EUR02FT043.eop-EUR02.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: AM5EUR02HT019 Received-SPF: pass client-ip=40.92.69.19; envelope-from=arthur.miller@live.com; helo=EUR02-VE1-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=1619778619; 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=/hV9bUEpwA6DXgtApLJ47e3dXN0WXPlmxiLvlhiH+Ss=; b=BTOPy70G99TNK65D4kuzzPAycDAIQOW3BI+HRYD55W//nU+GA0RoGYGgSsmGzD0Ncw4QQJ DC+UtJAGzSc5KDJYy3hKtX+UdX74ADhyuP+S4fexJd1rj2tpDjE9aZ+qL6ySb4ikM+8wLy 9IJVI/UZCbQ+rORB4s8DRA5uBZQmUkSuevusze+DoQWLEYM95WATmIfl90lQ7TafWiv8f4 h/oXJ1c9oVKumqiY537wM+DIc2aQf6TVfbxO4lJbLGmyEpAezJkowRolIe4K0dZWLvDXv7 pG+LuzBrQEGyFSzhdznBBjVABiNUlRgM64lDUYI9khYsWrQNL3yx5GYcaX4grw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1619778619; a=rsa-sha256; cv=pass; b=Yv5pIG/aOWsWgEZsY3D8KUZgTF70Wqy1Phq44EIv18+CYLTvR/1RmTLK4zqPoNgpal5S9d v5E+kW6pFyuz0kBy+vCyUwiYkUB5dqqDVphMhH+zSE47YwfCjbfp7iJaXsDA6Odm/k8pmu Mv8+2WHApGJB+6j/nb4GAQSw5OHXdM++Q5lGmbIQgnttCCGYAITGR2lwSCpclE3jE58VeN yXViN2XUrXLHfpngWY7QP41Xx85030xYrB7cmXkfhAjvyOa/VZkbt2LvWX5+bSFnkQXkh7 YZrQyRg53JmbRyu8v7lGYjTUDdLlfLFUO1FxDmCEk40dNSBRQHdePs6NmIrodA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=YAjYqRo9; 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.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=YAjYqRo9; 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: E8BA918A04 X-Spam-Score: -3.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: XKqilGIGyevM Nick Dokos writes: > 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 :-) Yes indeed! I used the source Luke! :) I found that one, unfortunately it is not enough to set that one to my keywords. There are also two lists in play org-todo-kwd-alist and org-todo-key-alist which are set in one mastodont method, but I think I can refactor that out. I have to figure out how to build alist comming from out org-collect-keywords which is input to that part of code. Didn't had time last night, will see if I have time today.