aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii1998-12-31 13:04:54 +0000
committerEli Zaretskii1998-12-31 13:04:54 +0000
commit003778571d7a5f7b076742feaa8d01cc631907f4 (patch)
tree24b9d9711b529ab1726b8f97fac78b9a867f3766
parent6f9dc4fd9ec9d2d17e0c9402c00ed4afb3335967 (diff)
downloademacs-003778571d7a5f7b076742feaa8d01cc631907f4.tar.gz
emacs-003778571d7a5f7b076742feaa8d01cc631907f4.zip
Don't warn about dos-* variables unless on MS-DOS,
and about w32-* variables unless on Windows/NT.
-rw-r--r--lisp/cus-start.el16
1 files changed, 13 insertions, 3 deletions
diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index bd03b952302..c8d140e6bc2 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -193,7 +193,7 @@
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)
@@ -213,10 +213,20 @@
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