From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qHhFISeWYV9tDQAA0tVLHw (envelope-from ) for ; Wed, 16 Sep 2020 04:35:51 +0000 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 QDmnGyeWYV/AUgAA1q6Kng (envelope-from ) for ; Wed, 16 Sep 2020 04:35:51 +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 0EFD094053C for ; Wed, 16 Sep 2020 04:35:51 +0000 (UTC) Received: from localhost ([::1]:46138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIPAc-0007G4-0L for larch@yhetil.org; Wed, 16 Sep 2020 00:35:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIFWr-0007R2-UJ for emacs-orgmode@gnu.org; Tue, 15 Sep 2020 14:18:10 -0400 Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]:37504) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIFWq-00039v-7E; Tue, 15 Sep 2020 14:18:09 -0400 Received: by mail-qv1-xf2d.google.com with SMTP id db4so2198785qvb.4; Tue, 15 Sep 2020 11:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:in-reply-to:date:message-id:mime-version; bh=WFgOAylk/jIgntajOMR7AmhMuTi9AQ6qEtiOG7KYdnw=; b=Zz/NckYvjA3Ccc8ztKNFdawa5zUUML13u1SBbi+FiI58XVMVPUKmSjWvDAGMwRdy4u CcnWoxqtrAXVGna0U22vRoqNQQWAxQDF/9dEPcp9sfRRVjPwmdJuhDwga4b8bCnQ5c/X SDe1PkStmC0AQRrK+3ogANv29gJOh9iyk3ZHquSgXmA0GkDoECiqH1lsrPcZtzLL3gec to4FPinoa4T2g+PMp/hz0q+dnN5rolJKovPv5AgnbVSPsD82infvk8fLkGyoqeItPOOy x+/aiwfzpeq3WbY7jyo6HrgMd/pzs/afXlsdfFirBDJaXXo3xoYDPmRJAQUjB9UHMaDg +mYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=WFgOAylk/jIgntajOMR7AmhMuTi9AQ6qEtiOG7KYdnw=; b=fxiINbXLBcCMf+2966d/wStGXjvwZA5ux16/LL1o7PUQDCdCB90JydFX7h1FHNyN3E PzQg61PVvfyCRYGVI8TBMbBrEuvXij3eRNefF8oA9jZYJRGzBvKmmnnYgY3qNkv1G0fu 4opL6QkeqDcYgYU3tFFwcXoF/v927oAEhFprUEhFfhjgf6X9j3n3L7DKFtTvjKRwzLxs fXF80DrQ/W48UJk8cGLXkf4ax/jdfsvE+bfJ3n3c6/LVStb17GLp9nMmEA8OYtUqP0k7 Ahh49nW61J2deZNGSwomtTK6dj+doFwJ14SZhN86iC8rCWcZeFdtN0uutB6h6FvEuxbY F0Hg== X-Gm-Message-State: AOAM533H/sqVYHyqLatT6g4qC2z/YNPCNYHN5pHYfgqPYhZvBRgfJCRZ vtaUWJLCui7Hst6eb42L7jjkZVkS5QLaufNN X-Google-Smtp-Source: ABdhPJzZaimErvO90/iezaN2D9/062QobwsgqxHVMScCPpeVlLLxLtTwYWKQ3jQl2lhnRQtH17AxJg== X-Received: by 2002:ad4:5743:: with SMTP id q3mr19177307qvx.6.1600193886570; Tue, 15 Sep 2020 11:18:06 -0700 (PDT) Received: from gonk (23-233-78-78.cpe.pppoe.ca. [23.233.78.78]) by smtp.gmail.com with ESMTPSA id g18sm16468031qtu.69.2020.09.15.11.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 11:18:05 -0700 (PDT) From: James N V Cash To: Bastien Subject: Re: tags-todo agenda shoud not ignore DONE items In-Reply-To: 87h7sbpk6v.fsf_-_@gnu.org \ Date: Tue, 15 Sep 2020 14:18:04 -0400 Message-ID: <87tuvyaopv.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::f2d; envelope-from=james.nvc@gmail.com; helo=mail-qv1-xf2d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 16 Sep 2020 00:32:57 -0400 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, stig@brautaset.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=Zz/NckYv; dmarc=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-Spam-Score: -0.01 X-TUID: Gh3mojp4EeEr --=-=-= Content-Type: text/plain Bastien writes: > Confirming this as an issue, if someone wants to fix it. I've tried taking a shot at addressing this issue via the patch attached. As mentioned in the thread, might potentially cause issues by changing how it matches -- should there be an option? Or is the idea just that if you really do want to exclude done tags, you'd query like "/!DONE"? --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=org_tags_todo.patch Content-Description: matcher allow all tags diff --git a/lisp/org.el b/lisp/org.el index 020cfc873..3db1add8b 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11691,7 +11691,7 @@ See also `org-scan-tags'." `(and ,tagsmatcher ,todomatcher) (or tagsmatcher todomatcher t)))) (when org--matcher-tags-todo-only - (setq matcher `(and (member todo org-not-done-keywords) ,matcher))) + (setq matcher `(and (member todo org-todo-keywords-1) ,matcher))) (cons match0 `(lambda (todo tags-list level) ,matcher))))) (defun org--tags-expand-group (group tag-groups expanded) --=-=-=--