From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?=C3=93scar_Fuentes?= Subject: Restricting admisible tags depending on header Date: Sat, 04 Jun 2016 05:27:24 +0200 Message-ID: <87inxpbplv.fsf@wanadoo.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b92Ff-0004Ug-9f for emacs-orgmode@gnu.org; Fri, 03 Jun 2016 23:27:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b92Fa-0002V6-93 for emacs-orgmode@gnu.org; Fri, 03 Jun 2016 23:27:54 -0400 Received: from plane.gmane.org ([80.91.229.3]:43111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b92Fa-0002V2-1t for emacs-orgmode@gnu.org; Fri, 03 Jun 2016 23:27:50 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b92FY-000552-35 for emacs-orgmode@gnu.org; Sat, 04 Jun 2016 05:27:48 +0200 Received: from 141.red-217-125-182.dynamicip.rima-tde.net ([217.125.182.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Jun 2016 05:27:48 +0200 Received: from ofv by 141.red-217-125-182.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Jun 2016 05:27:48 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org I'll like to offer only certain tags depending on the contents of the current header. For instance, if the header is * Status I want to see only "open" and "closed" on the options shown by org-fast-tag-selection. Currently I define quite a lot of tags with #+TAGS:, most of them are intended to be assigned to a specific header. Having so many tags displayed by org-fast-tag-selection is confusing, error-prone and breaks the selection method (org-fast-tag-selection runs out of letters). I'm thinking on advising org-fast-tag-selection and prune the list of acceptable tags before calling the real function, but maybe there is a better method.