diff options
| author | Juanma Barranquero | 2007-10-29 15:41:53 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-10-29 15:41:53 +0000 |
| commit | 2980f2d11bb4f141c233077382a8be5f6f289c9e (patch) | |
| tree | 08df6f5bfc1d1d4b9bd06c3b5ba50a8470b06669 | |
| parent | 83bcf0757beac8b365b559aca06982207614dead (diff) | |
| download | emacs-2980f2d11bb4f141c233077382a8be5f6f289c9e.tar.gz emacs-2980f2d11bb4f141c233077382a8be5f6f289c9e.zip | |
(unsafep, unsafep-function, unsafep-progn, unsafep-let):
Fix typos in docstrings.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/unsafep.el | 19 |
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 @@ | |||
| 1 | 2007-10-29 Juanma Barranquero <lekktu@gmail.com> | 1 | 2007-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. |
| 120 | otherwise result is a reason why FORM is unsafe. UNSAFEP-VARS is a list | 120 | Otherwise result is a reason why FORM is unsafe. |
| 121 | of symbols with local bindings." | 121 | UNSAFEP-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). |
| 217 | result is a reason code." | 217 | Otherwise 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. |
| 230 | for the first unsafe form." | 230 | Else, 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. |
| 239 | CLAUSE is a let-binding, either SYM or (SYM) or (SYM VAL). Checks VAL | 239 | CLAUSE is a let-binding, either SYM or (SYM) or (SYM VAL). |
| 240 | and throws a reason to `unsafep' if unsafe. Returns SYM." | 240 | Check VAL and throw a reason to `unsafep' if unsafe. |
| 241 | Return 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) |