Mercurial > emacs
comparison lisp/custom.el @ 64302:8bf3ae544cd2
(custom-initialize-safe-set, custom-initialize-safe-default): Further doc fixes.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Thu, 14 Jul 2005 01:17:35 +0000 |
parents | 840e01598f66 |
children | e2e79eb7ab71 |
comparison
equal
deleted
inserted
replaced
64301:ce506ff1d861 | 64302:8bf3ae544cd2 |
---|---|
78 | 78 |
79 (defun custom-initialize-safe-set (symbol value) | 79 (defun custom-initialize-safe-set (symbol value) |
80 "Like `custom-initialize-set', but catches errors. | 80 "Like `custom-initialize-set', but catches errors. |
81 If an error occurs during initialization, SYMBOL is set to nil | 81 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 | 82 and no error is thrown. This is meant for use in pre-loaded files |
83 where some variables or functions used to compute VALUE are not yet | 83 where some variables or functions used to compute VALUE may not yet |
84 defined. You can then re-evaluate VALUE in startup.el, for instance | 84 be defined. You can then re-evaluate VALUE in startup.el, for instance |
85 using `custom-reevaluate-setting'." | 85 using `custom-reevaluate-setting'." |
86 (condition-case nil | 86 (condition-case nil |
87 (custom-initialize-set symbol value) | 87 (custom-initialize-set symbol value) |
88 (error (set-default symbol nil)))) | 88 (error (set-default symbol nil)))) |
89 | 89 |
90 (defun custom-initialize-safe-default (symbol value) | 90 (defun custom-initialize-safe-default (symbol value) |
91 "Like `custom-initialize-default', but catches errors. | 91 "Like `custom-initialize-default', but catches errors. |
92 If an error occurs during initialization, SYMBOL is set to nil | 92 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 | 93 and no error is thrown. This is meant for use in pre-loaded files |
94 where some variables or functions used to compute VALUE are not yet | 94 where some variables or functions used to compute VALUE may not yet |
95 defined. You can then re-evaluate VALUE in startup.el, for instance | 95 be defined. You can then re-evaluate VALUE in startup.el, for instance |
96 using `custom-reevaluate-setting'." | 96 using `custom-reevaluate-setting'." |
97 (condition-case nil | 97 (condition-case nil |
98 (custom-initialize-default symbol value) | 98 (custom-initialize-default symbol value) |
99 (error (set-default symbol nil)))) | 99 (error (set-default symbol nil)))) |
100 | 100 |