From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Org agenda started behaving badly Date: Fri, 15 Jun 2018 06:23:06 +0200 Message-ID: <8736xor845.fsf@mbork.pl> References: <87in6szhhs.fsf@mbork.pl> <878t7lm9cp.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTgHn-0003QC-Ig for emacs-orgmode@gnu.org; Fri, 15 Jun 2018 00:24:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTgHk-0006GX-E4 for emacs-orgmode@gnu.org; Fri, 15 Jun 2018 00:24:31 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]:58843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTgHk-0006E8-5b for emacs-orgmode@gnu.org; Fri, 15 Jun 2018 00:24:28 -0400 In-reply-to: <878t7lm9cp.fsf@alphaville.usersys.redhat.com> 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: Nick Dokos Cc: emacs-orgmode@gnu.org On 2018-06-11, at 21:06, Nick Dokos wrote: > Marcin Borkowski writes: > >> Hi all, >> >> so out of nowhere my org agenda started behaving in a strange way. It >> seems not to respect my TODO-keywords settings: >> >> (setq org-todo-keywords >> '((sequence "TODO(t!)" "DONE(d!)") >> (sequence "SOMEDAY(s!)") >> (sequence "CANCELLED(c@)") >> (sequence "WAIT(w!)" "|"))) >> >> i.e., it now shows all the "CANCELLED" items as if "CANCELLED" was not >> a todo keyword at all. When I visit the offending file and issue M-x >> normal-mode, everything is back to normal again. > > What does C-h v org-todo-keywords RET say when you see the problem? Is > it possible that there is a local variable shadowing the global setting? Thanks, but I found the culprit. I was visiting my Org files (in my init.el, I have e.g. this: (org-agenda-prepare-buffers (org-agenda-files))) _before_ setting org-todo-keywords... Stupid mistake, sorry for the noise. Best, -- Marcin Borkowski http://mbork.pl