From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8Eb+H0GEKWMFJwEAbAwnHQ (envelope-from ) for ; Tue, 20 Sep 2022 11:13:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ANgcH0GEKWM0WQAAG6o9tA (envelope-from ) for ; Tue, 20 Sep 2022 11:13:37 +0200 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 2BE552971 for ; Tue, 20 Sep 2022 11:13:37 +0200 (CEST) Received: from localhost ([::1]:57872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oaZJw-0003LF-21 for larch@yhetil.org; Tue, 20 Sep 2022 05:13:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaYTx-00074B-VG for emacs-orgmode@gnu.org; Tue, 20 Sep 2022 04:19:54 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:33433) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oaYTv-0007YH-W5 for emacs-orgmode@gnu.org; Tue, 20 Sep 2022 04:19:53 -0400 Received: by mail-pl1-x62b.google.com with SMTP id iw17so1674293plb.0 for ; Tue, 20 Sep 2022 01:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=Q6x/YqiJG7LewI9ubs2aDiSklpMTw6J0MDwq40p0GtM=; b=ma1QIJ6fqtLMrdnjXyIelBUN73QbhWrPbAmwly1/JGpajx4sk6EHVi5rHzqpDnv8N+ b0ekcw7rozD5Is4gEFXuGKIntpCtLmJv4gyIPCEUK/oKeD1Gdtx5GoFIIG/Txug/1wrU QVzC0mATwKOZ0IXPU/d5Pr7D99ERUbn75XUzfvxuhN5AzcQNCUoOHaUQRKXvwQMrxy2Z F3XNaLBmIVG/RK+cnLu5iM1vzI8NSdVbW+lXAKj3MuKDPIoVpdDrQ3nIZr8q7xxt8Ysw /1jB7xNQ+euwpluXwiCC3ZvtRjUw0irQuO56zeQiqmTh4DFkpktvtpurRGW1ev/IZo8F P44w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=Q6x/YqiJG7LewI9ubs2aDiSklpMTw6J0MDwq40p0GtM=; b=qky+F4EmESBIVGwY+scVXnTgUjBI1u0tdmS1teHxujGR1XRvWQkZ7IuoeohFQsrZZD 5ns/LulG5vC2IJwJR87Iu14EtVR1Z2/NcMlr3DPfeK8PJE1WMRd76qfeIxVJmWWcGLGc +j2fXYEGZ/5Ez+nfv+CCgdfkFJ1YtunVbhxRx5tQiM+t4CCVizY9we21+OOJmJKx//Nc 3Rpjs1zAdRNJi8ELq3Lzno373k62ES3gBorarf8BwXBFVPGknKI3SraTPZpbYtMoXPCM ZoeSiawIflb7YoJIB8Whqt1+Asa5bs4F974GzuFVB8EQ8snzadxnLl+pLOH2+RUiz15X 3fTg== X-Gm-Message-State: ACrzQf3TUmVgxSprKKIrhU/d1gIflRZIZlGDaa5G6fc+oHmxyu6K7jzi MNXpza92A1Fgh9ZBTFL2teA= X-Google-Smtp-Source: AMsMyM7phAhvg81rwYlu7F3HMdXrMMwn0ihldaBppsksxCTgYJMiapTGZ7sXR1YPNUoTLk+tTzBYPQ== X-Received: by 2002:a17:903:3282:b0:177:e91d:3e85 with SMTP id jh2-20020a170903328200b00177e91d3e85mr3738848plb.29.1663661990405; Tue, 20 Sep 2022 01:19:50 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id e14-20020a170902784e00b00177ef3246absm806361pln.103.2022.09.20.01.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 01:19:49 -0700 (PDT) From: Ihor Radchenko To: Tyler Grinn Cc: emacs-orgmode@gnu.org Subject: Re: contrib - ol-todo In-Reply-To: <87edwax4nv.fsf@gmail.com> References: <87edwax4nv.fsf@gmail.com> Date: Tue, 20 Sep 2022 16:20:44 +0800 Message-ID: <87y1ueqwwz.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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.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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663665217; 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=Q6x/YqiJG7LewI9ubs2aDiSklpMTw6J0MDwq40p0GtM=; b=JaZXcOqWAn/lL0JW+y9Rc2M1uIcGf6+oWzQvqwTPqHCZLRj60VWJ1972lsTNauyuqh0Ocu pJOWM9CVIaWOtpsj/Eh7gFnaIVgspCPn/Osa4A4kRK4KKkzsJbY7ZPotkurh1AhHo+RWIW ff6sbiIsCM8IHtiJZ1/bX/kR1yYhki5ZqJ8QQaK3QRNaprpbxnsBoC4aHcz4fuEVSZhpTM 2qG+FSyfPAGv5v3/EcFEo2kppCmRyOZHYv+DZJV3rBtJWIghtG9DiEMwCi/yOeeoQ5LcUw 1SG2EyHJtgxI3nKds83hDbAwuprIZfVX2b+WFSgpuRf027H1T4sGuubklWIMlg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663665217; a=rsa-sha256; cv=none; b=P4B5KWrxLn3TLpV/fEzQaQ/SxdbzME6j97Ryy96WZF62IIspjW3UeuQJfr7dtrI5jpSzol JX6GaGWKLBt67a5NVsA3HS/js/zUfdi/jC2xaTY1Ejs5+JjUGGTzVGh8vlH711Be57CG3E +S+lYeyPFB5oKhLS9rPDglV0EeHxH+y57XipkPeias5G0RPwnUMw0qbN3D7CKq0rTfDNG0 U5ZoizqK7HaMS7FKDb412xU8zN4kQiCwKIfbZh1FSusZ+MD4DeiPYiRYFzsAZ29QL/nEot HDo75ZxR1J2FPXFQowUwunApYoD7ShV4BXRdPnmr9usXKKIM/k3xm+folfEz9g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ma1QIJ6f; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ma1QIJ6f; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2BE552971 X-Spam-Score: -1.84 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2p4JWV+1nXtC Tyler Grinn writes: > I've built this small package which registers a todo type link: > > [[todo:~/projects.org::#my-todo][My todo]] > > And it is displayed like this: > > My todo > > Where DONE is the actual todo keyword on the target heading. The keyword > on the link and target stay in sync, so setting a different todo keyword > either on the link or the target will update both. The link does not > show up in the agenda and can be placed anywhere an org link is valid. > > I'm using this to create a list of todos I want done today from a larger > list of all my todos. Why don't just modify :activate-func in the ordinary file links? > Is this something that would be appropriate for org-contrib? Note that org-contrib is obsolete. See https://git.sr.ht/~bzg/org-contrib/. I recommend submitting your package to GNU ELPA or NonGNU ELPA. > When I tried to register a :store function which is valid for org buffers > backed by a file, the desired behavior was that I could choose between > storing a file link and a todo link, but instead, it simply stores a > todo link without confirmation. Is this a known problem? See org-store-link-functions docstring: >> Each function will be called in turn until one returns a non-nil >> value. Each function should check if it is responsible for >> creating this link (for example by looking at the major mode). >> If not, it must exit and return nil. If yes, it should return >> a non-nil value after calling org-link-store-props with a list >> of properties and values. Your store function can provide interactive query and return nil if the user does not want to create todo: link. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92