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 gOhmDZqk2l6dJgAA0tVLHw (envelope-from ) for ; Fri, 05 Jun 2020 20:01:30 +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 0E87CZqk2l76dAAA1q6Kng (envelope-from ) for ; Fri, 05 Jun 2020 20:01:30 +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 D6CAA940BFC for ; Fri, 5 Jun 2020 20:01:28 +0000 (UTC) Received: from localhost ([::1]:54678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhIWs-00069C-Cq for larch@yhetil.org; Fri, 05 Jun 2020 16:01:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhIWR-00068z-3Q for emacs-orgmode@gnu.org; Fri, 05 Jun 2020 16:00:59 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:49983) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhIWP-00038W-4z for emacs-orgmode@gnu.org; Fri, 05 Jun 2020 16:00:58 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B4A1CA70; Fri, 5 Jun 2020 16:00:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 05 Jun 2020 16:00:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imapmail.org; h= from:to:subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=fm3; bh=FoiSD7VD0vdCYz+U5nO3blyq71 zirEq1lzK2934ko8A=; b=fRboJSUJnmu6D7EtHcvvaBQc9+vxZcZ1dqUkaIW52K jJHBA1rQYNId8FMlZrk2UoJji+BMYRiDPjvj0xiSn5XqtWxYZcFFTulaGKmpbfmI CQUOLynxDgJJ0d0NeQLUVqocqubfjB3Eo+5uGHsiO8DmpgQyHEAwxs3QXBeBnSic ZVvO29eGsdR0/nKbgrLGxU/OTd0ILeImoE93r7foTrBM5FneSCbnZBahIzF0xG8J 9+bmMHY3gYloJwhpniOHM7fBuVKvPVk1BpAs1vPZDulTgzYcU16/+OnX8YbHb562 9hHDuLlEfT7bRo69Aazxn7ckcvD9YZnm3KZNXfxclLWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=FoiSD7 VD0vdCYz+U5nO3blyq71zirEq1lzK2934ko8A=; b=QjBp3B7GVf81nWsbfwjFDh pxjMiu7uGjvT+Q/sFiXoTMC3zqVfYvgFuFG/BqE6TGWjS7igOgFnRMbQFKbGoDPR oxK/fIUqRt8jlG+Iquhbh1nj+9ngNYSzl7ghMjDBBYyYl9mbjsMLciRO+KHlUqwu Ds4LR5Xyk8PeE+izFyAaqxEQf/FVxyproV23jH9mGU/MM6d+2nQ24O9fFo9Kd3tZ 9nzsxJSWhr0q8C+stSib5lQTc5tRtQlttozvt9eWzt5wnoyjFLIrAfKAfAB+0H7O hrnScR2rhiPE59iomp/LABgCZosfrFRGA3CRUWdKXTc0WU00IHat5nonK7q+hDQg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudegfedgudeftdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvuffkffggtgfgsehtqhertd dttdejnecuhfhrohhmpeforghtthcunfhunhguihhnuceomhgulhesihhmrghpmhgrihhl rdhorhhgqeenucggtffrrghtthgvrhhnpeeivdeuhfdutdeghfdvhfevveejgfekgedute euleduueeftedvteetudetgedvieenucffohhmrghinhepmhihqdhfihhlvgdrohhrghen ucfkphepjeeirdduiedrudefhedrudduleenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmughlsehimhgrphhmrghilhdrohhrgh X-ME-Proxy: Received: from localhost (c-76-16-135-119.hsd1.il.comcast.net [76.16.135.119]) by mail.messagingengine.com (Postfix) with ESMTPA id C38FC328005D for ; Fri, 5 Jun 2020 16:00:52 -0400 (EDT) From: Matt Lundin To: emacs-orgmode@gnu.org Subject: [BUG] org-agenda-filter and hyphens in category names Message-ID: <87d06ds46s.fsf@fastmail.fm> Date: Fri, 05 Jun 2020 15:00:51 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.147.123.25; envelope-from=mdl@imapmail.org; helo=wout2-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/05 16:00:54 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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=pass header.d=imapmail.org header.s=fm3 header.b=fRboJSUJ; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=QjBp3B7G; dmarc=pass (policy=none) header.from=imapmail.org; 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: bkedJMnrtFKx Hi everyone, 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. Let's say I have a file named "my-file.org" with active todos. The function org-agenda-filter will suggest "my-file" as a possible category completion. However, if I tab complete "my-file," org-agenda-filter errors out with the following messages: =E2=80=98+my=E2=80=99 filter ignored because tag/category is not represen= ted =E2=80=98-file=E2=80=99 filter ignored because tag/category is not repres= ented The same thing occurs when I put hyphens in filetags. Looking at the Org Manual, I see that Org Mode restricts tags to alphanumeric characters, "@", and "_". And org-set-tags-command will sanitize tag names when entering them, replacing forbidden characters with ":". However, there are no guidelines about forbidden characters in categories. And filetags at the top of file allow for arbitrary characters. Both org-agenda-filter-by-category ("<") and org-agenda-filter-by-tag ("\") work with categories and filetags containing "-" or "+" in the name. Would it be possible for org-agenda-filter to escape the set of special characters [-+<>=3D/] in category and filetag names when offering them for completion?=20 Best, Matt