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 MEe+Ll6q6F74OAAA0tVLHw (envelope-from ) for ; Tue, 16 Jun 2020 11:17:50 +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 INaOKl6q6F6ZHwAA1q6Kng (envelope-from ) for ; Tue, 16 Jun 2020 11:17:50 +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 3DE19940276 for ; Tue, 16 Jun 2020 11:17:50 +0000 (UTC) Received: from localhost ([::1]:33804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jl9bA-0002OW-01 for larch@yhetil.org; Tue, 16 Jun 2020 07:17:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jl9ZK-0001JD-9W for emacs-orgmode@gnu.org; Tue, 16 Jun 2020 07:15:54 -0400 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:41775) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jl9ZI-0000fB-Kk for emacs-orgmode@gnu.org; Tue, 16 Jun 2020 07:15:54 -0400 Received: by mail-lj1-x231.google.com with SMTP id 9so23050668ljc.8 for ; Tue, 16 Jun 2020 04:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=woecswymO3qjEmpHUXlGjHYDw0uKUmRqh1OTyRPPcWs=; b=ScW2LPfOY6iG+zllzyeTOx8AeaGTfDK45b/Tm9iYK6h+iO0MN33vXaedBWgA5MNQcs ymtDTrZSe+VteSREtr0zUaTdsV7HAIBrQE/yNaN3fyKAec+kyRldQSex/rxeCWwZXJXk M5R2xCLBTq5oSq0STOTzdKrrPkQFA3kNr3I3XX+990c7Tq4BERcJzL0jxJrRYcHTGMx3 IGMPpZK58U+1746GaU9Q+TOHui6NK3qvy2TlUM+tMNRdzyc7ghwP3fma3D9se74Ch/Au IhTz6ln7W093++97mn/qmhHXu1rU1uz9EteORzzExvm+FalvV7ee5Ys0+33gjtSQleTg L8Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=woecswymO3qjEmpHUXlGjHYDw0uKUmRqh1OTyRPPcWs=; b=Y8qKLH7wh+cUhHtlyLXiwfjvEsw0daezs1C/r/dGT/Z5nhRfTju8Cj/vjqOjBIew5i EJv8mOPd0OqFU1TF0SpT71RQBhMx4og2hTlAtjK7gjK6Jt3uGpFL2woxb6kRBy7ZKF03 Fcfz+c/0rej0eumRfpDg7ZHqEXxsumLh39O8N4jj8xfDiF+G3KWxCNks+ooc1+MFxKGg UE6zWdjT6DpRa54GGb4S3BIUA/tmqfy2QsMXYVDGATo3Ek3YrHN5xtJMTQr3tj0IvdAx 4Jnn5xDHY9wBZD63TBMf7vMQp3G7Y9JbQt7di4jqZ9KQPj3Uv5lV8zBd+c/5tGTc3sHX vqkg== X-Gm-Message-State: AOAM532aq4RlDfF77x7mSg+YgGvdplXAj+Qs8W3YvOhDhAvBx3ym89X7 TNhIbqTbnv5n3SO9wszNaoUZBmA4B7ZuoLLvCQKB4nLlbkI= X-Google-Smtp-Source: ABdhPJzrZZl39l2fVwEKSkpGov6UqNBMtD/oL1BWr7xVtEtb1OCBR8YS5hQ3hgHAuN3xZm/v3HFMvuOMG0QF9NCg61M= X-Received: by 2002:a2e:b5d7:: with SMTP id g23mr1122750ljn.70.1592306150535; Tue, 16 Jun 2020 04:15:50 -0700 (PDT) MIME-Version: 1.0 From: "E.L.K." Date: Tue, 16 Jun 2020 14:15:39 +0300 Message-ID: Subject: Org mode patch: when building sparse tree, suggest only local tags in minibuffer To: emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="0000000000007ab5cc05a831aa92" Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=some.any.key@gmail.com; helo=mail-lj1-x231.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: -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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=gmail.com header.s=20161025 header.b=ScW2LPfO; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 1.19 X-TUID: IXkZAUj37ndv --0000000000007ab5cc05a831aa92 Content-Type: multipart/alternative; boundary="0000000000007ab5c605a831aa90" --0000000000007ab5c605a831aa90 Content-Type: text/plain; charset="UTF-8" Hello. I found that if I do "C-c C-c" on heading, it suggests only local tags in the minibuffer, but when I do "C-m / m" (build sparse tree) it suggests agenda tags together with local tags. It does not make sense to build sparse tree in buffer using tags that are not in this buffer, I think. So there is small patch in attempt to fix it. Thanks! --0000000000007ab5c605a831aa90 Content-Type: text/html; charset="UTF-8"
Hello.

I found that if I do "C-c C-c" on heading, it suggests only local tags in the minibuffer, but when I do "C-m / m" (build sparse tree) it suggests agenda tags together with local tags.

It does not make sense to build sparse tree in buffer using tags that are not in this buffer, I think. So there is small patch in attempt to fix it.

Thanks!
--0000000000007ab5c605a831aa90-- --0000000000007ab5cc05a831aa92 Content-Type: text/x-patch; charset="US-ASCII"; name="don-t-show-global-tags-in-sparse-tree-match.patch" Content-Disposition: attachment; filename="don-t-show-global-tags-in-sparse-tree-match.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kbhtxy1g0 Q29tbW9uIHN1YmRpcmVjdG9yaWVzOiAvaG9tZS9lbGsvLmVtYWNzLmQvZWxwYS9vcmctOS4zLjYv ZXRjIGFuZCAvaG9tZS9lbGsvdGVtcC9vcmctOS4zLjYvZXRjCmRpZmYgLVUgMTAgLS1jb2xvciAv aG9tZS9lbGsvLmVtYWNzLmQvZWxwYS9vcmctOS4zLjYvb3JnLmVsIC9ob21lL2Vsay90ZW1wL29y Zy05LjMuNi9vcmcuZWwKLS0tIC9ob21lL2Vsay8uZW1hY3MuZC9lbHBhL29yZy05LjMuNi9vcmcu ZWwJMjAyMC0wNi0xNSAxOTowNzoyMi4xNDg1MDI2MzMgKzAzMDAKKysrIC9ob21lL2Vsay90ZW1w L29yZy05LjMuNi9vcmcuZWwJMjAyMC0wNi0xNSAxOTowNDoxOC45Mjc2Nzg5MDAgKzAzMDAKQEAg LTExOTI0LDIxICsxMTkyNCwyMSBAQAogTUFUQ0ggaXMgYSBzdHJpbmcgd2l0aCBtYXRjaCBzeW50 YXguICBJdCBjYW4gY29ud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