unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Robert Horn <rjhorn@alum.mit.edu>
Cc: 12467@debbugs.gnu.org
Subject: bug#12467: 24.1; customization initialization confusing
Date: Tue, 18 Sep 2012 14:11:52 -0400	[thread overview]
Message-ID: <hl4nmvdwuv.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <m3r4pzwamq.fsf@quad.robs.office> (Robert Horn's message of "Tue,  18 Sep 2012 12:37:01 -0400")

Robert Horn wrote:

> I found a confusing behaviour for customization.  To trigger the
> behavior, assign a value of "t" to org-habit-show-all-today.  What I
> found is:
>
>  - If you start emacs and immediately go into *shell* and print org-habit-show-today-all you get an error because that variable has not yet been bound.

Customization only applies settings when relevant. Otherwise it would
have to unconditionally load at startup every package in which you have
customized an option. Use plain-old setq if you need different behaviour.

>   - 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 customized
>   value is "t". When the customized value is "nil" there is no
>   indicated problem.

Sounds like a bug. However, there is no "org-habit-show-today-all"
variable in the Emacs trunk so I cannot test this. I cannot reproduce
this when customizing eg
org-export-html-table-use-header-tags-for-first-column.

> But a naive user would expect that starting the customization process
> for the group would also cause processing of the startup
> customization.

I don't really know what this means.





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

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-18 16:37 bug#12467: 24.1; customization initialization confusing Robert Horn
2012-09-18 18:11 ` Glenn Morris [this message]
2012-09-18 18:36   ` Robert Horn
2012-09-18 19:25     ` Glenn Morris
2012-09-18 19:32       ` Glenn Morris
2012-09-25  1:20         ` Glenn Morris

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=hl4nmvdwuv.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=12467@debbugs.gnu.org \
    --cc=rjhorn@alum.mit.edu \
    /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.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).