From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Re: customize-rouge output with emacs -q --no-site-file Date: Fri, 4 Feb 2005 20:14:49 +0100 Message-ID: <010101c50aed$d57b4640$0200a8c0@sedrcw11488> References: <00cb01c50ad3$5f978570$0200a8c0@sedrcw11488> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_00FD_01C50AF6.2DE0B1A0" X-Trace: sea.gmane.org 1107544702 9681 80.91.229.2 (4 Feb 2005 19:18:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Feb 2005 19:18:22 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 04 20:18:22 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Cx8y4-0008O1-CC for ged-emacs-devel@m.gmane.org; Fri, 04 Feb 2005 20:18:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cx9Be-0002Ey-5r for ged-emacs-devel@m.gmane.org; Fri, 04 Feb 2005 14:32:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cx9AK-0001gU-Fn for emacs-devel@gnu.org; Fri, 04 Feb 2005 14:30:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cx9AF-0001eW-Qw for emacs-devel@gnu.org; Fri, 04 Feb 2005 14:30:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cx9AF-0001dp-It for emacs-devel@gnu.org; Fri, 04 Feb 2005 14:30:47 -0500 Original-Received: from [81.228.9.114] (helo=av5-2-sn3.vrr.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cx8vQ-00068Y-Kk for emacs-devel@gnu.org; Fri, 04 Feb 2005 14:15:30 -0500 Original-Received: by av5-2-sn3.vrr.skanova.net (Postfix, from userid 502) id 15F9337E6C; Fri, 4 Feb 2005 20:15:20 +0100 (CET) Original-Received: from smtp1-2-sn3.vrr.skanova.net (smtp1-2-sn3.vrr.skanova.net [81.228.9.178]) by av5-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 06DD937E65 for ; Fri, 4 Feb 2005 20:15:20 +0100 (CET) Original-Received: from sedrcw11488 (t5o58p53.telia.com [195.67.196.53]) by smtp1-2-sn3.vrr.skanova.net (Postfix) with SMTP id 9C88F3800F for ; Fri, 4 Feb 2005 20:15:18 +0100 (CET) Original-To: "Emacs Devel" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:32884 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32884 This is a multi-part message in MIME format. ------=_NextPart_000_00FD_01C50AF6.2DE0B1A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit > Below is a list of the variables that customize-rouge shows when emacs is > started with emacs -q --no-site-file. It contains on my pc 32 variables. > > Many of them are maybe easy to fix? Perhaps could Customize in some cases > just be told that everything is ok? Perhaps should the "standard value" in > some cases be set to do that? Could such fixes be done before starting > `site-run-file'? At this point the values should be set. Should the current > values at this point not be the standard values? 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. ------=_NextPart_000_00FD_01C50AF6.2DE0B1A0 Content-Type: application/octet-stream; name="startup-fix.el" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="startup-fix.el" ;;; 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." (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) ------=_NextPart_000_00FD_01C50AF6.2DE0B1A0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel ------=_NextPart_000_00FD_01C50AF6.2DE0B1A0--