From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Bug: org-agenda-overriding-columns-format ignored every other refresh Date: Wed, 25 Dec 2013 12:19:17 -0500 Message-ID: <87ppoku9uy.fsf@alphaville.bos.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vvs7V-0008HR-J0 for emacs-orgmode@gnu.org; Wed, 25 Dec 2013 12:19:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vvs7K-0001Lb-AR for emacs-orgmode@gnu.org; Wed, 25 Dec 2013 12:19:45 -0500 Received: from plane.gmane.org ([80.91.229.3]:41054) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vvs7K-0001LV-3o for emacs-orgmode@gnu.org; Wed, 25 Dec 2013 12:19:34 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vvs7G-0003Sy-Ea for emacs-orgmode@gnu.org; Wed, 25 Dec 2013 18:19:30 +0100 Received: from pool-98-110-175-184.bstnma.fios.verizon.net ([98.110.175.184]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Dec 2013 18:19:30 +0100 Received: from ndokos by pool-98-110-175-184.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Dec 2013 18:19:30 +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: emacs-orgmode@gnu.org Russell Yanofsky writes: > Hi list, > > I've been having a problem where my agenda column format is ignored every other time I load or refresh the agenda, which makes it very hard to use. When this happens, I see the following error in *Messages*: "Making > org-agenda-overriding-columns-format buffer-local while locally let-bound!" which led me to experiment and find that when I delete the following lines from the org-agenda-finalize function, the problem seems to be fixed: > > - (if (and (boundp 'org-agenda-overriding-columns-format) > - org-agenda-overriding-columns-format) > -    (org-set-local 'org-agenda-overriding-columns-format > -   org-agenda-overriding-columns-format)) > > I'm wondering what these lines were intended to do, and if it's safe to delete them. > It's most probably the wrong thing to do. For one, you are not supposed to set org-agenda-overriding-columns-format. The docstring says: ,---- | org-agenda-overriding-columns-format is a variable defined in `org-colview.el'. | Its value is nil | | Documentation: | When set, overrides any other format definition for the agenda. | Don't set this, this is meant for dynamic scoping. `---- > My org-agenda-custom-commands value is: > >   '(("n" "Agenda and all TODO's" ((agenda "" nil) (alltodo "" nil)) nil) >     ("r" "Russ Agenda" agenda "" >      ((org-agenda-overriding-header "Russ Agenda") (org-agenda-view-columns-initially t) >       (org-agenda-overriding-columns-format "%80ITEM %TAGS %7TODO %5Effort{:} %6CLOCKSUM{Total}")) >      ("~/public_html/agenda.html")) >     ("q" "Russ Todos" alltodo "" >      ((org-agenda-view-columns-initially t) >       (org-agenda-overriding-columns-format "%80ITEM %TAGS %7TODO %20SCHEDULED %5Effort{:} %6CLOCKSUM{Total}") >       (org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote todo) (quote ("DEFERRED"))))) >       (org-agenda-sorting-strategy (quote (scheduled-up effort-up)))) >      ("~/public_html/todo.html")) >     ) You probably should use org-agenda-columns-current-fmt instead of org-agenda-overriding-columns-format. Untested and quite possibly wrong, or at least not the whole story; but until an agenda expert chimes in, it might be a useful first step. Nick