unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Lennart Borgman" <lennart.borgman.073@student.lu.se>
Subject: Re: customize-rouge output with emacs -q --no-site-file
Date: Fri, 4 Feb 2005 23:17:57 +0100	[thread overview]
Message-ID: <004501c50b07$6690f620$0200a8c0@sedrcw11488> (raw)
In-Reply-To: 010101c50aed$d57b4640$0200a8c0@sedrcw11488

[-- Attachment #1: Type: text/plain, Size: 631 bytes --]

> At the moment I can not see any reason not to do this. Should not the
values
> just before loading `site-run-file' be the "standard values" for those
> variables?
>
> As it works now if you "Erase Customization" for those variables Emacs
might
> get into trouble. Therefore I attach some simple code for setting the
> "standard-values" that I think should go into startup.el to avoid this
> trouble.

I believe I have attached a working version now. When I test I see
customize-rogue sees no rogue variables. Though I have not tested actually
including this in startup.el.

(And I have learned the diff between rouge and rogue.)

[-- Attachment #2: startup-fix.el --]
[-- Type: application/octet-stream, Size: 1967 bytes --]

;;; Set standard values for defcustom that are missing this here.
;;
;; This code should go into startup.el just before executing loading
;; site-run-file.

(defun startup-set-standard-value (symbol)
  "Set the current value of SYMBOL as the standard value for Customize."
  (when (boundp symbol)
    (put symbol 'standard-value (list symbol))))

(startup-set-standard-value 'baud-rate)
(startup-set-standard-value 'blink-cursor)
(startup-set-standard-value 'completion-ignored-extensions)
(startup-set-standard-value 'current-language-environment)
(startup-set-standard-value 'custom-unlispify-tag-names)
(startup-set-standard-value 'debug-ignored-errors)
(startup-set-standard-value 'default-frame-alist)
(startup-set-standard-value 'default-input-method)
(startup-set-standard-value 'encoded-kbd-mode)
(startup-set-standard-value 'eol-mnemonic-mac)
(startup-set-standard-value 'eol-mnemonic-unix)
(startup-set-standard-value 'exec-path)
(startup-set-standard-value 'file-coding-system-alist)
(startup-set-standard-value 'find-file-hook)
(startup-set-standard-value 'find-file-visit-truename)
(startup-set-standard-value 'help-event-list)
(startup-set-standard-value 'keyboard-coding-system)
(startup-set-standard-value 'menu-bar-mode)
(startup-set-standard-value 'minibuffer-history-case-insensitive-variables)
(startup-set-standard-value 'minibuffer-prompt-properties)
(startup-set-standard-value 'mode-line-format)
(startup-set-standard-value 'mouse-wheel-mode)
(startup-set-standard-value 'normal-erase-is-backspace)
(startup-set-standard-value 'pop-up-frame-function)
(startup-set-standard-value 'same-window-buffer-names)
(startup-set-standard-value 'same-window-regexps)
(startup-set-standard-value 'selection-coding-system)
(startup-set-standard-value 'shell-file-name)
(startup-set-standard-value 'site-run-file)
(startup-set-standard-value 'special-display-function)
(startup-set-standard-value 'text-mode-hook)
(startup-set-standard-value 'tooltip-mode)

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  parent reply	other threads:[~2005-02-04 22:17 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-04 16:03 customize-rouge output with emacs -q --no-site-file Lennart Borgman
2005-02-04 19:14 ` Lennart Borgman
2005-02-04 21:57   ` Lennart Borgman
2005-02-04 22:17   ` Lennart Borgman [this message]
2005-02-04 23:48     ` Luc Teirlinck
2005-02-05  0:47       ` Luc Teirlinck
2005-02-05 17:39         ` Richard Stallman
2005-02-05  0:03     ` Luc Teirlinck
2005-02-05  0:06     ` Luc Teirlinck
2005-02-05 17:39       ` Richard Stallman
2005-02-05  1:56     ` Luc Teirlinck
2005-02-05  3:51     ` Luc Teirlinck
2005-02-05  9:08       ` Lennart Borgman
2005-02-05 14:51         ` Luc Teirlinck
2005-02-06 12:42           ` Richard Stallman
2005-02-06 19:54             ` Luc Teirlinck
2005-02-05 19:06         ` Luc Teirlinck
2005-02-05 19:52           ` Lennart Borgman
2005-02-05 21:16             ` Luc Teirlinck
2005-02-07 20:51   ` Richard Stallman
2005-02-07 21:27     ` Lennart Borgman

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='004501c50b07$6690f620$0200a8c0@sedrcw11488' \
    --to=lennart.borgman.073@student.lu.se \
    /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).