From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iMabOCWrUl9oHgAA0tVLHw (envelope-from ) for ; Fri, 04 Sep 2020 21:01:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OPtgNCWrUl9WTQAAB5/wlQ (envelope-from ) for ; Fri, 04 Sep 2020 21:01:25 +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 503829404E1 for ; Fri, 4 Sep 2020 21:01:25 +0000 (UTC) Received: from localhost ([::1]:47326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEIpn-0000jA-7C for larch@yhetil.org; Fri, 04 Sep 2020 17:01:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEIpS-0000j2-Ay for emacs-orgmode@gnu.org; Fri, 04 Sep 2020 17:01:02 -0400 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]:39728) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEIpQ-0006bR-GO; Fri, 04 Sep 2020 17:01:01 -0400 Received: by mail-pj1-x1044.google.com with SMTP id s2so3587440pjr.4; Fri, 04 Sep 2020 14:00:59 -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=E2Ghv1KHOI2dGlYOzx983aAbS4GwnmEQEbkqoKpO4rY=; b=Td1rkprA7pqWIxEfPig9gXolrsTHGD9d7LQN9jxmPwDp2kMHeJMHtHN6a5n5sSLfac x96RDl4EQGoVbY+vYY1/jGT1wGUMlOeMk+GhdyIK0Fa0HGDmeyu2oHHVDquN0jnZzX86 49cU7fXCRbZXzrCgKMIfPbBz0ws63SP6EA1B85qtXGDLNjwXFSIpAQOKvBsfmPbqE0lQ qLaOaYhiDdtIa9ZqDCztZItQaE2eheY8tVDmpgO+GwvwjA7rOoJbEXYgXl+hDey5kOh7 0VTLAn7UAFJBN7rBgKzafgpP0caWepsOn2gf8ZbWAYJEwQUGylOXIbXjiSeb9gbRJMX8 /sdg== 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=E2Ghv1KHOI2dGlYOzx983aAbS4GwnmEQEbkqoKpO4rY=; b=bFQD3l/fMUUvs4aU5Qo3zL58cTJ5Xn/xblHOb+jATtZxOvgWRSVJUVgA0zy0iUEfjA LAjeaYRDJ7krydgV5IeNvcg2mm5r2T9Oasy6VexMiR6ICbyt1l6guXu7w8zSANLszuKs MHLdfTNQRvHJhZQJLRYAb0tfhyxrC9HHkQ7j/YnGMRa5gtg/uY8j5ESrkxPssHk5VOAx FG8GePNAQg+XQ7kKx+Nxx3DN8iEbAk306JFIcNp3+pUkFiL4ZzANCMLbymUWoEkAGs5/ QantKqLcUFb+L73SFI23LePIqMTAqr/G25tWP2SR/QqHHgxCwRTGXxW3rzLkQTHkcGR3 Z4rg== X-Gm-Message-State: AOAM5307T2rEovK3n9/tyIp28He3E//J5kksPO066sK0cRaaDZcQFUz+ QxMJxewtjrjqnr4ILO8s3zeBVhaaVapzONJenlATedrYOUYpVg== X-Google-Smtp-Source: ABdhPJzKphA457mS+eqhHMLTPJ1vJRBd4zFvf6MtCiAqvLWzqAEobJL47IGzCx/EP0SCza2IHK9H9sXe96Y9+Ks72vU= X-Received: by 2002:a17:902:ab8e:: with SMTP id f14mr7394403plr.99.1599253258497; Fri, 04 Sep 2020 14:00:58 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6a10:8371:0:0:0:0 with HTTP; Fri, 4 Sep 2020 14:00:57 -0700 (PDT) In-Reply-To: <87v9gtfog3.fsf@gnu.org> References: <87d06ds46s.fsf@fastmail.fm> <87v9gtfog3.fsf@gnu.org> From: Samuel Wales Date: Fri, 4 Sep 2020 14:00:57 -0700 Message-ID: Subject: Re: [BUG] org-agenda-filter and hyphens in category names To: Bastien Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::1044; envelope-from=samologist@gmail.com; helo=mail-pj1-x1044.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, 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: Matt Lundin , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Td1rkprA; 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-Spam-Score: -1.71 X-TUID: N4VcDdbSpUhV i was unaware of this feature, bound to / in maint, so i tried it in maint before the fix and got a different result. all of my categories have hyphens, and many of my files. i suspect on linux, osx, bsd*, etc., hyphenated filenames are common. my categories look like e-remember, e-refile, e-jinsei, o-bastien [just kidding], o-matt-lundin [ditto], etc. this allows me to have broad meta-categories like computer, org, extra, medical. so i tried it with e-, and it completed to e-refile without providing any choice. this is just incorrect. i really like hyphens so i hope they become first-class if possible. On 9/4/20, Bastien wrote: > Hi Matt, > >> I'm just getting around to exploring the function org-agenda-filter >> introduced last year. (Due to busyness, I was running an older version >> of Org Mode last year for fear of breaking features I relied on.) >> >> I like the tab completion. However, I'm finding that the completion for >> categories often fails because of hyphens in my file and category names. > > Thanks for reporting this. I pushed a fix in the maint branch which > allows for such category names to be enclosed within double quotes > when the user wants to complete them -- the quotes helps not being > confused by the hyphen when reading the complete filter string, which > might contain other syntacticly meaningful hyphens. > > I haven't fixed the case for filetags but shouldn't filetags follow > the same convention than mere tags of not allowing "-" ? > > Let me know if I (or the documentation) miss something and if the > fix is good enough for you. > > Thanks, > > -- > Bastien > > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html