From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: org-agenda-overriding-columns-format ignored every other refresh
Date: Wed, 25 Dec 2013 12:19:17 -0500 [thread overview]
Message-ID: <87ppoku9uy.fsf@alphaville.bos.redhat.com> (raw)
In-Reply-To: CA+ip-BsGwyJn3gQeZ2GbhRb6P-MarNH2G6XO7NoEaU-yKpWg0A@mail.gmail.com
Russell Yanofsky <russ@yanofsky.org> 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
prev parent reply other threads:[~2013-12-25 17:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-25 3:14 Bug: org-agenda-overriding-columns-format ignored every other refresh Russell Yanofsky
2013-12-25 17:19 ` Nick Dokos [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ppoku9uy.fsf@alphaville.bos.redhat.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).