aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2007-10-29 15:41:53 +0000
committerJuanma Barranquero2007-10-29 15:41:53 +0000
commit2980f2d11bb4f141c233077382a8be5f6f289c9e (patch)
tree08df6f5bfc1d1d4b9bd06c3b5ba50a8470b06669
parent83bcf0757beac8b365b559aca06982207614dead (diff)
downloademacs-2980f2d11bb4f141c233077382a8be5f6f289c9e.tar.gz
emacs-2980f2d11bb4f141c233077382a8be5f6f289c9e.zip
(unsafep, unsafep-function, unsafep-progn, unsafep-let):
Fix typos in docstrings.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/emacs-lisp/unsafep.el19
2 files changed, 13 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 232170ea66b..a283fc43ebf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12007-10-29 Juanma Barranquero <lekktu@gmail.com> 12007-10-29 Juanma Barranquero <lekktu@gmail.com>
2 2
3 * emacs-lisp/unsafep.el (unsafep, unsafep-function)
4 (unsafep-progn, unsafep-let): Fix typos in docstrings.
5
3 * uniquify.el (uniquify-maybe-rerationalize-w/o-cb): Define it 6 * uniquify.el (uniquify-maybe-rerationalize-w/o-cb): Define it
4 before use to avoid a warning in packages that require uniquify. 7 before use to avoid a warning in packages that require uniquify.
5 (uniquify-unload-function): New function and var. 8 (uniquify-unload-function): New function and var.
diff --git a/lisp/emacs-lisp/unsafep.el b/lisp/emacs-lisp/unsafep.el
index d7dd1f19300..3bb93334c3c 100644
--- a/lisp/emacs-lisp/unsafep.el
+++ b/lisp/emacs-lisp/unsafep.el
@@ -116,9 +116,9 @@ in the parse.")
116 116
117;;;###autoload 117;;;###autoload
118(defun unsafep (form &optional unsafep-vars) 118(defun unsafep (form &optional unsafep-vars)
119 "Return nil if evaluating FORM couldn't possibly do any harm; 119 "Return nil if evaluating FORM couldn't possibly do any harm.
120otherwise result is a reason why FORM is unsafe. UNSAFEP-VARS is a list 120Otherwise result is a reason why FORM is unsafe.
121of symbols with local bindings." 121UNSAFEP-VARS is a list of symbols with local bindings."
122 (catch 'unsafep 122 (catch 'unsafep
123 (if (or (eq safe-functions t) ;User turned off safety-checking 123 (if (or (eq safe-functions t) ;User turned off safety-checking
124 (atom form)) ;Atoms are never unsafe 124 (atom form)) ;Atoms are never unsafe
@@ -213,8 +213,8 @@ of symbols with local bindings."
213 213
214(defun unsafep-function (fun) 214(defun unsafep-function (fun)
215 "Return nil if FUN is a safe function. 215 "Return nil if FUN is a safe function.
216\(either a safe lambda or a symbol that names a safe function). Otherwise 216\(Either a safe lambda or a symbol that names a safe function).
217result is a reason code." 217Otherwise result is a reason code."
218 (cond 218 (cond
219 ((eq (car-safe fun) 'lambda) 219 ((eq (car-safe fun) 'lambda)
220 (unsafep fun unsafep-vars)) 220 (unsafep fun unsafep-vars))
@@ -226,8 +226,8 @@ result is a reason code."
226 `(function ,fun)))) 226 `(function ,fun))))
227 227
228(defun unsafep-progn (list) 228(defun unsafep-progn (list)
229 "Return nil if all forms in LIST are safe, or the reason 229 "Return nil if all forms in LIST are safe.
230for the first unsafe form." 230Else, return the reason for the first unsafe form."
231 (catch 'unsafep-progn 231 (catch 'unsafep-progn
232 (let (reason) 232 (let (reason)
233 (dolist (x list) 233 (dolist (x list)
@@ -236,8 +236,9 @@ for the first unsafe form."
236 236
237(defun unsafep-let (clause) 237(defun unsafep-let (clause)
238 "Check the safety of a let binding. 238 "Check the safety of a let binding.
239CLAUSE is a let-binding, either SYM or (SYM) or (SYM VAL). Checks VAL 239CLAUSE is a let-binding, either SYM or (SYM) or (SYM VAL).
240and throws a reason to `unsafep' if unsafe. Returns SYM." 240Check VAL and throw a reason to `unsafep' if unsafe.
241Return SYM."
241 (let (reason sym) 242 (let (reason sym)
242 (if (atom clause) 243 (if (atom clause)
243 (setq sym clause) 244 (setq sym clause)