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 IK2HFKB3Ul/IGwAA0tVLHw (envelope-from ) for ; Fri, 04 Sep 2020 17:21:36 +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 OAc9EKB3Ul95LAAAB5/wlQ (envelope-from ) for ; Fri, 04 Sep 2020 17:21:36 +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 BA1419403A7 for ; Fri, 4 Sep 2020 17:21:35 +0000 (UTC) Received: from localhost ([::1]:58156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEFP3-0002YC-Ai for larch@yhetil.org; Fri, 04 Sep 2020 13:21:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEFOZ-0002We-JQ for emacs-orgmode@gnu.org; Fri, 04 Sep 2020 13:21:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47192) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEFOZ-0004p5-6n; Fri, 04 Sep 2020 13:21:03 -0400 Received: from [2a01:e35:2fe1:f780:8527:1161:6222:31b3] (port=49330 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kEFOY-0007j0-T8; Fri, 04 Sep 2020 13:21:02 -0400 Received: by guerry (Postfix, from userid 1000) id 4E3921A60D49; Fri, 4 Sep 2020 19:21:00 +0200 (CEST) From: Bastien To: Matt Lundin Subject: Re: [BUG] org-agenda-filter and hyphens in category names Organization: GNU References: <87d06ds46s.fsf@fastmail.fm> Date: Fri, 04 Sep 2020 19:21:00 +0200 In-Reply-To: <87d06ds46s.fsf@fastmail.fm> (Matt Lundin's message of "Fri, 05 Jun 2020 15:00:51 -0500") Message-ID: <87v9gtfog3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: -1.01 X-TUID: H3TXBRoNo80K 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