emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Robert Horn <rjhorn@alum.mit.edu>
To: Bastien <bzg@altern.org>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: org-habit config tinypatch
Date: Tue, 18 Sep 2012 12:47:59 -0400	[thread overview]
Message-ID: <m31uhzjn0g.fsf@quad.robs.office> (raw)
In-Reply-To: <87txuwk2fu.fsf@bzg.ath.cx>

I found the issue, and it's a more subtle one.  I've set a bug to emacs
list in case they think it's a documentation or fixable bug.  What
happens is this:

    - The custom value setting for org options do not take effect until *after* the relevant lisp code has been executed once.  This means:
    - If you start emacs and immediately go into *scratch* and print org-habit-show-today-all you get an error because that variable has not yet been bound.
: Debugger entered--Lisp error: (void-variable org-habit-show-all-today)
:   (print org-habit-show-all-today)
:   eval((print org-habit-show-all-today) nil)
:   eval-last-sexp-1(t)
:   eval-last-sexp(t)
:   eval-print-last-sexp()
:   call-interactively(eval-print-last-sexp nil nil) 
    - If you start emacs and immediately go into options->config for org-habit, the org-habit-show-today-all will indicate that it has been set outside of the customization system when the intended value is "t".  When the intended value is "nil" there is no indicated problem.
    - If you start emacs and put a buffer into org mode, the (print org-habit-show-all) will show the customized value, and the options->config will also show the customized value.

I think that this is either a documentation bug, where this behavior
needs explaining, or a bug in customize.  As a naive user of customize I
would expect that going to the org-habit group would automatically
trigger applying the org-habit customizations.  Opening an org-mode
buffer has this effect.

But, perhaps there is some flag somewhere well hidden in the
documentation for customization groups that needs to be set to indicate
this.

R Horn
rjhorn@alum.mit.edu

  reply	other threads:[~2012-09-18 16:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-17 10:42 org-habit config tinypatch Robert Horn
2012-09-17 17:02 ` Bastien
2012-09-18 16:47   ` Robert Horn [this message]
2012-09-19  8:16     ` Bastien

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=m31uhzjn0g.fsf@quad.robs.office \
    --to=rjhorn@alum.mit.edu \
    --cc=bzg@altern.org \
    --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).