80 |
"Like `custom-initialize-set', but catches errors. |
"Like `custom-initialize-set', but catches errors. |
81 |
If an error occurs during initialization, SYMBOL is set to nil |
If an error occurs during initialization, SYMBOL is set to nil |
82 |
and no error is thrown. This is meant for use in pre-loaded files |
and no error is thrown. This is meant for use in pre-loaded files |
83 |
where some variables used to compute VALUE are not yet defined. |
where some variables or functions used to compute VALUE are not yet |
84 |
You can then re-evaluate VALUE in startup.el, for instance using |
defined. You can then re-evaluate VALUE in startup.el, for instance |
85 |
`custom-reevaluate-setting'." |
using `custom-reevaluate-setting'." |
86 |
(condition-case nil |
(condition-case nil |
87 |
(custom-initialize-set symbol value) |
(custom-initialize-set symbol value) |
88 |
(error (set-default symbol nil)))) |
(error (set-default symbol nil)))) |
91 |
"Like `custom-initialize-default', but catches errors. |
"Like `custom-initialize-default', but catches errors. |
92 |
If an error occurs during initialization, SYMBOL is set to nil |
If an error occurs during initialization, SYMBOL is set to nil |
93 |
and no error is thrown. This is meant for use in pre-loaded files |
and no error is thrown. This is meant for use in pre-loaded files |
94 |
where some variables used to compute VALUE are not yet defined. |
where some variables or functions used to compute VALUE are not yet |
95 |
You can then re-evaluate VALUE in startup.el, for instance using |
defined. You can then re-evaluate VALUE in startup.el, for instance |
96 |
`custom-reevaluate-setting'." |
using `custom-reevaluate-setting'." |
97 |
(condition-case nil |
(condition-case nil |
98 |
(custom-initialize-default symbol value) |
(custom-initialize-default symbol value) |
99 |
(error (set-default symbol nil)))) |
(error (set-default symbol nil)))) |