comparison lisp/cus-start.el @ 23967:e4039c35f2f8

Don't warn about dos-* variables unless on MS-DOS, and about w32-* variables unless on Windows/NT.
author Eli Zaretskii <eliz@gnu.org>
date Thu, 31 Dec 1998 13:04:54 +0000
parents 478c3628a2cd
children 4c733ca989dc
comparison
equal deleted inserted replaced
23966:f3102db5fde0 23967:e4039c35f2f8
191 :format "%v") 191 :format "%v")
192 (other :tag "Unlimited" t))) 192 (other :tag "Unlimited" t)))
193 ;; xfns.c 193 ;; xfns.c
194 (x-bitmap-file-path installation 194 (x-bitmap-file-path installation
195 (repeat (directory :format "%v"))))) 195 (repeat (directory :format "%v")))))
196 this symbol group type 196 this symbol group type native-p
197 ;; This function turns a value 197 ;; This function turns a value
198 ;; into an expression which produces that value. 198 ;; into an expression which produces that value.
199 (quoter (lambda (sexp) 199 (quoter (lambda (sexp)
200 (if (or (memq sexp '(t nil)) 200 (if (or (memq sexp '(t nil))
201 (and (symbolp sexp) 201 (and (symbolp sexp)
211 (while all 211 (while all
212 (setq this (car all) 212 (setq this (car all)
213 all (cdr all) 213 all (cdr all)
214 symbol (nth 0 this) 214 symbol (nth 0 this)
215 group (nth 1 this) 215 group (nth 1 this)
216 type (nth 2 this)) 216 type (nth 2 this)
217 ;; Don't complain about missing variables which are
218 ;; irrelevant to this platform.
219 native-p (save-match-data
220 (cond
221 ((string-match "\\`dos-" (symbol-name symbol))
222 (eq system-type 'ms-dos))
223 ((string-match "\\`w32-" (symbol-name symbol))
224 (eq system-type 'windows-nt))
225 (t t))))
217 (if (not (boundp symbol)) 226 (if (not (boundp symbol))
218 ;; If variables are removed from C code, give an error here! 227 ;; If variables are removed from C code, give an error here!
219 (message "Note, built-in variable `%S' not bound" symbol) 228 (and native-p
229 (message "Note, built-in variable `%S' not bound" symbol))
220 ;; Save the standard value, unless we already did. 230 ;; Save the standard value, unless we already did.
221 (or (get symbol 'standard-value) 231 (or (get symbol 'standard-value)
222 (put symbol 'standard-value 232 (put symbol 'standard-value
223 (list (funcall quoter (default-value symbol))))) 233 (list (funcall quoter (default-value symbol)))))
224 ;; If this is NOT while dumping Emacs, 234 ;; If this is NOT while dumping Emacs,