unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Reitter <david.reitter@gmail.com>
Subject: Re: setting default value
Date: Thu, 12 May 2005 05:46:49 +0100	[thread overview]
Message-ID: <4f494910a8faf82f6ce6b4bb64baf097@gmail.com> (raw)

Stefan Monnier wrote:

> > 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)
>
> Now this piece of code is bizarre.  Are you trying to check for 
> corner-case
> bugs or was there a particular reason why you didn't just do
>
>   (blink-cursor-mode t)


Oh that's what I did first, but it seems to set blink-cursor mode but 
not allow for further changes using the Options menu (and Save 
Options).

And that's my problem - no matter what I do.

Remember that I need to do this in a site-init file. The individual 
user is going to have an option in the menu bar that can be toggled 
(this is default). It is, however, only saved to .emacs if it is 
different from the default (which, I thought, would be in the 
standard-value property of blink-cursor-mode). If I just hardwire 
blink-cursor-mode to be enabled, and the user disables it, no entry 
gets saved to .emacs, with the result that blink-cursor-mode is back to 
enabled mode after the next restart.

So again my question: how do I manipulate the default choice of a 
(customizable) variable?

- D

             reply	other threads:[~2005-05-12  4:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-12  4:46 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-11  7:44 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=4f494910a8faf82f6ce6b4bb64baf097@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).