unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Reitter <david.reitter@gmail.com>
Subject: setting default value
Date: Wed, 11 May 2005 08:44:23 +0100	[thread overview]
Message-ID: <11edd93ca691573b1271cff09b9a7053@gmail.com> (raw)

In a site init file, I'm trying to set different default values for 
stuff like 'blink-cursor-mode'.

(setq-default blink-cursor-mode t)
(blink-cursor-mode blink-cursor-mode)

However, if I then select a different setting (i.e. blink-cursor mode 
nil) and save the customizations (Options/Save Options), this setting 
is not saved.

No I think this is because menu-bar-options-save doesn't notice that 
the standard value for blink-cursor-mode is supposed to be different, 
so it doesn't bother saving the current value.

Therefore, I tried to do this in my site init file:

(put 'blink-cursor-mode 'standard-value t)

However, it has absolutely no effect. That's because the 
customized-value property of blink-cursor-mode simply isn't set 
correctly when blink-cursor-mode changes. Theoretically, 
customize-mark-as-set should take care of that, checking the 
standard-value property. That's why I tried to set it.

Why does this not work???

Thanks for your help!

             reply	other threads:[~2005-05-11  7:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-11  7:44 David Reitter [this message]
     [not found] <mailman.4613.1115797896.2819.help-gnu-emacs@gnu.org>
2005-05-11 14:18 ` setting default value Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2005-05-12  4:46 David Reitter

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=11edd93ca691573b1271cff09b9a7053@gmail.com \
    --to=david.reitter@gmail.com \
    /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.
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).