From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: org-agenda-filter-by-tag-refine defaults to exclude Date: Tue, 12 Jan 2016 01:18:36 -0500 Message-ID: <87a8obl3r7.fsf@kyleam.com> References: <29B5D2C5-E59B-4E8D-9669-67F24C0B7C60@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIsI5-00046r-Rp for emacs-orgmode@gnu.org; Tue, 12 Jan 2016 01:18:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIsI1-0008VV-Pc for emacs-orgmode@gnu.org; Tue, 12 Jan 2016 01:18:49 -0500 Received: from pb-smtp0.int.icgroup.com ([208.72.237.35]:60109 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIsI1-0008VL-LT for emacs-orgmode@gnu.org; Tue, 12 Jan 2016 01:18:45 -0500 In-Reply-To: <29B5D2C5-E59B-4E8D-9669-67F24C0B7C60@gmx.de> (Viktor Rosenfeld's message of "Tue, 5 Jan 2016 08:42:20 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Viktor Rosenfeld Cc: Gustav =?utf-8?Q?Wikstr=C3=B6m?= , emacs-orgmode@gnu.org Hi Viktor, Viktor Rosenfeld writes: > Hi, > > I noticed that org-agenda-filter-by-tag-refine started to exclude > selected tags by default recently because the 'refine in the call to > org-agenda-filter-by-tag is interpreted as an exclude flag. This seems to have been introduced by 6c6ae99 (org-agenda: Filtering in the agenda on grouptags, 2015-01-24). > The attached patch fixes this. > > However, it seems that the function is superfluous because > org-agenda-filter-by-tag can filter on multiple tags as well if called > multiple times (that used not to be the case earlier). So maybe it > should be deprecated and removed? I agree. Gustav, does that make sense given your changes in 6c6ae99? > diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el > index d91b64d..21928de 100644 > --- a/lisp/org-agenda.el > +++ b/lisp/org-agenda.el > @@ -7580,7 +7580,7 @@ to switch between filtering and excluding." > (defun org-agenda-filter-by-tag-refine (arg &optional char) > "Refine the current filter. See `org-agenda-filter-by-tag'." > (interactive "P") > - (org-agenda-filter-by-tag arg char 'refine)) > + (org-agenda-filter-by-tag arg char)) > (defun org-agenda-filter-make-matcher (filter type &optional expand) > "Create the form that tests a line for agenda filter. Optional -- Kyle