From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Possible to exclude/include tags for agenda custom commands? Date: Sun, 23 Feb 2020 12:55:57 -0800 Message-ID: <87ftf1xbtu.fsf@ericabrahamsen.net> References: <8736bfxwu0.fsf@bzg.fr> <874kvl8aoc.fsf@ericabrahamsen.net> <87d0a99nph.fsf@gnu.org> <87v9o16tga.fsf@ericabrahamsen.net> <87mu9d6q0m.fsf@ericabrahamsen.net> <87imk12i19.fsf@gnu.org> <878skxavgf.fsf@ericabrahamsen.net> <87mu994ete.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55637) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5yIO-0008TD-4K for emacs-orgmode@gnu.org; Sun, 23 Feb 2020 15:56:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5yIN-0004Cc-2g for emacs-orgmode@gnu.org; Sun, 23 Feb 2020 15:56:11 -0500 In-Reply-To: <87mu994ete.fsf@gnu.org> (Bastien's message of "Sun, 23 Feb 2020 14:24:13 +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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Bastien Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Bastien writes: > Hi Eric, > > Eric Abrahamsen writes: > >> I hope that helps! > > thanks for the detailed example. What verison of Org and Emacs? > > With your example and Org mode version 9.3.6 and GNU Emacs 28.0.50 > I don't get the warning. If you have a ECM I'm willing to test more. The key is having `org-agenda-sticky' set to t -- this means that we'll let-bind buffer-local variables in a buffer where they're already set. Steps to reproduce: 1. emacs -Q 2. Add Org of your choice to load-path 3. Load the attached startup.el 4. Make sure the attached test.org is someplace where the previous file can find it. 5. org-agenda, then the "b" key 6. Hit "g" or "r", either will trigger the warning Hope that works, Eric --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=startup.el (setq org-agenda-custom-commands '(("b" "Bugs?" ((agenda "" ((org-agenda-start-day "2020-02-22") (org-agenda-span 10)))) ((org-agenda-tag-filter '("+buggy")))))) (setq org-agenda-files '("~/test.org") org-agenda-sticky t) --=-=-= Content-Type: application/vnd.lotus-organizer Content-Disposition: attachment; filename=test.org Content-Transfer-Encoding: base64 KiBSZXBvcnQgYnVnIDwyMDIwLTAyLTI0IE1vbj4gICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICA6YnVnZ3k6CiAgCg== --=-=-=--