diff lisp/custom/custom.el @ 20:859a2309aef8 r19-15b93

Import from CVS: tag r19-15b93
author cvs
date Mon, 13 Aug 2007 08:50:05 +0200
parents d95e72db5c07
children 8fc7fe29b841
line wrap: on
line diff
--- a/lisp/custom/custom.el	Mon Aug 13 08:49:44 2007 +0200
+++ b/lisp/custom/custom.el	Mon Aug 13 08:50:05 2007 +0200
@@ -4,7 +4,7 @@
 ;;
 ;; Author: Per Abrahamsen <abraham@dina.kvl.dk>
 ;; Keywords: help, faces
-;; Version: 1.24
+;; Version: 1.30
 ;; X-URL: http://www.dina.kvl.dk/~abraham/custom/
 
 ;;; Commentary:
@@ -22,14 +22,15 @@
 (define-widget-keywords :prefix :tag :load :link :options :type :group)
 
 ;; These autoloads should be deleted when the file is added to Emacs
-(autoload 'customize "custom-edit" nil t)
-(autoload 'customize-variable "custom-edit" nil t)
-(autoload 'customize-face "custom-edit" nil t)
-(autoload 'customize-apropos "custom-edit" nil t)
-(autoload 'customize-customized "custom-edit" nil t)
-(autoload 'custom-buffer-create "custom-edit")
-(autoload 'custom-menu-update "custom-edit")
-(autoload 'custom-make-dependencies "custom-edit")
+(unless (fboundp 'load-gc)
+  (autoload 'customize "custom-edit" nil t)
+  (autoload 'customize-variable "custom-edit" nil t)
+  (autoload 'customize-face "custom-edit" nil t)
+  (autoload 'customize-apropos "custom-edit" nil t)
+  (autoload 'customize-customized "custom-edit" nil t)
+  (autoload 'custom-buffer-create "custom-edit")
+  (autoload 'custom-menu-update "custom-edit")
+  (autoload 'custom-make-dependencies "custom-edit"))
 
 ;;; Compatibility.
 
@@ -92,7 +93,7 @@
 
 ;;; The `defcustom' Macro.
 
-;;;###autoload
+;;; Don't ;;;###autoload
 (defun custom-declare-variable (symbol value doc &rest args)
   "Like `defcustom', but SYMBOL and VALUE are evaluated as notmal arguments."
   (unless (and (default-boundp symbol)
@@ -129,7 +130,7 @@
   (run-hooks 'custom-define-hook)
   symbol)
 
-;;;###autoload
+;;; Don't ;;;###autoload
 (defmacro defcustom (symbol value doc &rest args)
   "Declare SYMBOL as a customizable variable that defaults to VALUE.
 DOC is the variable documentation.
@@ -154,7 +155,7 @@
 
 ;;; The `defface' Macro.
 
-;;;###autoload
+;;; Don't ;;;###autoload
 (defun custom-declare-face (face spec doc &rest args)
   "Like `defface', but FACE is evaluated as a normal argument."
   (put face 'factory-face spec)
@@ -170,7 +171,7 @@
   (run-hooks 'custom-define-hook)
   face)
 
-;;;###autoload
+;;; Don't ;;;###autoload
 (defmacro defface (face spec doc &rest args)
   "Declare FACE as a customizable face that defaults to SPEC.
 FACE does not need to be quoted.
@@ -220,7 +221,7 @@
 
 ;;; The `defgroup' Macro.
 
-;;;###autoload
+;;; Don't ;;;###autoload
 (defun custom-declare-group (symbol members doc &rest args)
   "Like `defgroup', but SYMBOL is evaluated as a normal argument."
   (put symbol 'custom-group (nconc members (get symbol 'custom-group)))
@@ -244,7 +245,7 @@
   (run-hooks 'custom-define-hook)
   symbol)
 
-;;;###autoload
+;;; Don't ;;;###autoload
 (defmacro defgroup (symbol members doc &rest args)
   "Declare SYMBOL as a customization group containing MEMBERS.
 SYMBOL does not need to be quoted.
@@ -269,7 +270,7 @@
 information."
   `(custom-declare-group (quote ,symbol) ,members ,doc ,@args))
 
-;;;###autoload
+;;; Don't ;;;###autoload
 (defun custom-add-to-group (group option widget)
   "To existing GROUP add a new OPTION of type WIDGET,
 If there already is an entry for that option, overwrite it."
@@ -396,10 +397,10 @@
       match)))
 
 (defconst custom-face-attributes
-  '((:bold (toggle :format "Bold: %v") custom-set-face-bold)
-    (:italic (toggle :format "Italic: %v") custom-set-face-italic)
+  '((:bold (toggle :format "Bold: %[%v%]\n") custom-set-face-bold)
+    (:italic (toggle :format "Italic: %[%v%]\n") custom-set-face-italic)
     (:underline
-     (toggle :format "Underline: %v") set-face-underline-p)
+     (toggle :format "Underline: %[%v%]\n") set-face-underline-p)
     (:foreground (color :tag "Foreground") set-face-foreground)
     (:background (color :tag "Background") set-face-background)
     (:stipple (editable-field :format "Stipple: %v") set-face-stipple))
@@ -467,7 +468,7 @@
       (make-face-italic face frame)
     (make-face-unitalic face frame)))
 
-;;;###autoload
+;;; Don't ;;;###autoload
 (defun custom-initialize-faces (&optional frame)
   "Initialize all custom faces for FRAME.
 If FRAME is nil or omitted, initialize them for all frames."
@@ -479,7 +480,7 @@
 
 ;;; Initializing.
 
-;;;###autoload
+;;; Don't ;;;###autoload
 (defun custom-set-variables (&rest args)
   "Initialize variables according to user preferences.  
 
@@ -507,7 +508,7 @@
 	  (put symbol 'saved-value (list value)))
 	(setq args (cdr (cdr args)))))))
 
-;;;###autoload
+;;; Don't ;;;###autoload
 (defun custom-set-faces (&rest args)
   "Initialize faces according to user preferences.
 The arguments should be a list where each entry has the form:
@@ -581,7 +582,8 @@
 		 (easy-menu-create-keymaps (car custom-help-menu)
 					   (cdr custom-help-menu)))))))
 
-; (custom-menu-reset)
+(unless (fboundp 'load-gc)
+  (custom-menu-reset))
 
 ;;; The End.