From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6GNjAFw1i2AHJAAAgWs5BA (envelope-from ) for ; Fri, 30 Apr 2021 00:38: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 mp1 with LMTPS id EKaGNls1i2AiQgAAbx9fmQ (envelope-from ) for ; Thu, 29 Apr 2021 22:38:19 +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 5596CD01C for ; Fri, 30 Apr 2021 00:38:19 +0200 (CEST) Received: from localhost ([::1]:37180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcFIY-0002v0-7R for larch@yhetil.org; Thu, 29 Apr 2021 18:38:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcFIB-0002us-Dg for emacs-orgmode@gnu.org; Thu, 29 Apr 2021 18:37:55 -0400 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:41748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcFI9-0001mo-Cw for emacs-orgmode@gnu.org; Thu, 29 Apr 2021 18:37:55 -0400 Received: by mail-lf1-x12e.google.com with SMTP id b23so24684514lfv.8 for ; Thu, 29 Apr 2021 15:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sFOoiGwfXHWu66KwPzxaDC2qFoCgL27DMEDA96WLGic=; b=Qqf6veV1+CHOf0iIjfFV+TjQWjbrAmAIJ9jrvnMxxp4p9r/yPb/CmGbkAY8tBjEJT2 i7ZXc6J6P6/ipjA0zuipSqUzg75lnbPu6Ss9Y3idoOTOOGka9jqetfw8dbGy/RwRMcgr ZEXF+ywmMtRFkdqv6HkbZvShffJzFNEndBm1Fe7EJwIGL7E4JvqvTPdTME4ivo2o4/oG Wr51IiJrZ2FhxXDPJSrCkaOYNpQ27Y+Qw4BhVTOjEBIezeIIwuhgSsJtlFRsJK7Goztn roxvegr1RVZH0qTK9PhFVtyc+2lSt+Nb9KPxbYIFsIKJ6m0HN6TNb3njathvFBnONRAK Em2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sFOoiGwfXHWu66KwPzxaDC2qFoCgL27DMEDA96WLGic=; b=gLYK1FMtDZrK0IVOgHfjFWR6P2AeR70d03j7HemlKJ/syYEhjHinJZJpKB5pDJSh9e GoshqudP85cYZs45sk99V+zd7yiFH4DWyRkyzQQszJ7O/eiW4j1oYhq+4x3lRXvpqdl6 XK1tBA0uV+fl5vXlDbpoq13CPrKtsoorc5KkDQuOmJrN6dz25l4NsHwoeV5Bcj0URhNX jvNhfdCAoYocbbZbChMgMqX91yOGCID9O7FQnoZGwH4tR0W5MrCXRCUnMfFoZFsymbtt nx0v3zlziDvYsi9H6o1R13P0HOqD5LjdoHGiq5hzRc6Xi17DOC3FfvvYRv2KK+ECwZPw fsMQ== X-Gm-Message-State: AOAM533OoAiNHbpi3nT2fry7DUX1yDJjVS9uiHEO5KeZfllP63sIaso5 1OGc82pv6EB6hqorvnFXSWT13t5sc7FCCZsdhIU= X-Google-Smtp-Source: ABdhPJwJA5iVE3D8ScqsieOh2NcFq9j0T/YyD3/ypwDXopU9AzhrG8wxVIseAHf4FhYnzf/18Zwqfm3MaIWGq0d95Fw= X-Received: by 2002:a19:f112:: with SMTP id p18mr1210336lfh.441.1619735871506; Thu, 29 Apr 2021 15:37:51 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6504:312f:0:0:0:0 with HTTP; Thu, 29 Apr 2021 15:37:50 -0700 (PDT) In-Reply-To: References: From: Samuel Wales Date: Thu, 29 Apr 2021 15:37:50 -0700 Message-ID: Subject: Re: Programmatically set TODO labels per file? To: Arthur Miller Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=samologist@gmail.com; helo=mail-lf1-x12e.google.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, RCVD_IN_DNSWL_NONE=-0.0001, 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.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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619735899; 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=sFOoiGwfXHWu66KwPzxaDC2qFoCgL27DMEDA96WLGic=; b=oydI5b3jKrcjBBc2K4IOi00kvjeIbwAuVeDsa1oZwII/W0zQZV5ZorI28nKJlQPYTn3V+e wggPMOslRU68lGtaHo7SkgaV9KLyfnf4McDHThlXJfdCDxCw+czpdPjOnZyUHyhho84Cfm 3kDQ+nQPy1OdcydrROdAsIhfVevznAgmn942P5IA0zFq0RLQv/rHpe+NZl333lI7fb7knz q+wo9X38zVsBg32uw+YqpBabos8FQXKUOBO1HG7vZPBU19RBYRZJLM6PqBYCmkFjvnuZv3 5aaqsF6le4qT0qyjP+TwxUKVr+Jh+YF74gvUXp6EPo6b2VaGPKtdG/u8Nkb0Nw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619735899; a=rsa-sha256; cv=none; b=A2hRCNHUlooxAV2TL71HTQVeqt+LWKz+0SndE52RT61HZV1uCQ9/MlwRy8sOoEuiTV4cvb Kj6jNu/2WXkpuPX3O+k0k/6IukS6HOUnrLIkYTUwWhP1/OrUPHDCthQyrTUVbACuQKhx0M qwkU6+7AkXSOYzTDwdSYDIddXmBvA3D7eEc8X4BxPwIwocfSRFCBJyPCCVmeQ6ME2XchoJ yNHm2fZhjKEb8K2qR4Ohj2xW+5WKAqnv3ZaCvobSan12N9rtmKH7cQf934CWkeC1bj6KRY 6gpyRpYXBoIcfXFAZen6+RVtKUVPDF11Q9/y8gGLiRWXoaG7BL1U0IcruTBw6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Qqf6veV1; dmarc=pass (policy=none) header.from=gmail.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: -2.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Qqf6veV1; dmarc=pass (policy=none) header.from=gmail.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: 5596CD01C X-Spam-Score: -2.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: Q53HEvNCMjut as you discovered, spaces can work for todo kw for at least some purposes. [i have one, because i prefer space to snake_case and kebab-case might not search well.] but you should check to see if it is guaranteed to work. i vaguely recall spc is not allowable. if it were guaranteed to work, then there would likely be a mechanism to include it in the #+ syntax. :) On 4/29/21, Arthur Miller wrote: > Russell Adams 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? >>> >>> Thanks in advance! >>> >>> Best regards >>> /a >>> >> >> https://orgmode.org/manual/Per_002dfile-keywords.html > > Thanks Rusell; but I have seen the manual as I wrote. I am aware I can > use > > #+TODO: > > syntax to set per file keywords. I wanted to do this from lisp, since I > can't use labels with multiple words with that syntax since spaces are > used as delimiters for keywords, but I can pass strings (with spaces) > with lisp. > > > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html