+2010-10-31 Glenn Morris <rgm@gnu.org>
+
+ * cus-start.el: Handle standard values via a keyword.
+ Only set version property if specified.
+ (cursor-in-non-selected-windows, menu-bar-mode)
+ (tool-bar-mode, show-trailing-whitespace):
+ Do not specify standard values.
+ (transient-mark-mode, temporary-file-directory): Use :standard.
+
2010-10-31 Jan Djärv <jan.h.d@swipnet.se>
* term/x-win.el (x-get-selection-value): New function that gets
(line-spacing display (choice (const :tag "none" nil) integer)
"22.1")
(cursor-in-non-selected-windows
- cursor boolean nil t :tag "Cursor In Non-selected Windows"
+ cursor boolean nil
+ :tag "Cursor In Non-selected Windows"
:set #'(lambda (symbol value)
(set-default symbol value)
(force-mode-line-update t)))
(transient-mark-mode editing-basics boolean nil
- (not noninteractive)
+ :standard (not noninteractive)
:initialize custom-initialize-delay
:set custom-set-minor-mode)
;; callint.c
(temporary-file-directory
;; Darwin section added 24.1, does not seem worth :version bump.
files directory nil
+ :standard
(file-name-as-directory
;; FIXME ? Should there be Ftemporary_file_directory to do this
;; more robustly (cf set_local_socket in emacsclient.c).
(other :tag "hidden by keypress" 1))
"22.1")
(make-pointer-invisible mouse boolean "23.2")
- (menu-bar-mode frames boolean nil t
+ (menu-bar-mode frames boolean nil
;; FIXME?
; :initialize custom-initialize-default
:set custom-set-minor-mode)
- (tool-bar-mode (frames mouse) boolean nil t
+ (tool-bar-mode (frames mouse) boolean nil
; :initialize custom-initialize-default
:set custom-set-minor-mode)
;; fringe.c
(other :tag "Always" t))
"23.1")
;; xdisp.c
- (show-trailing-whitespace whitespace-faces boolean nil nil
+ (show-trailing-whitespace whitespace-faces boolean nil
:safe booleanp)
(scroll-step windows integer)
(scroll-conservatively windows integer)
group (nth 1 this)
type (nth 2 this)
version (nth 3 this)
+ rest (nthcdr 4 this)
;; If we did not specify any standard value expression above,
;; use the current value as the standard value.
- standard (if (nthcdr 4 this)
- (nth 4 this)
- (when (default-boundp symbol)
- (funcall quoter (default-value symbol))))
- rest (nthcdr 5 this)
+ standard (if (setq prop (memq :standard rest))
+ (cadr prop)
+ (if (default-boundp symbol)
+ (funcall quoter (default-value symbol))))
;; Don't complain about missing variables which are
;; irrelevant to this platform.
native-p (save-match-data
(custom-add-to-group group symbol 'custom-variable))
;; Set the type.
(put symbol 'custom-type type)
- (put symbol 'custom-version version)
+ (if version (put symbol 'custom-version version))
(while rest
(setq prop (car rest)
propval (cadr rest)
rest (nthcdr 2 rest))
- (cond ((memq prop '(:risky :safe :set))) ; handled above
+ (cond ((memq prop '(:standard :risky :safe :set))) ; handled above
((eq prop :tag)
(put symbol 'custom-tag propval))))))))