diff options
| author | Roland McGrath | 1992-12-21 18:34:22 +0000 |
|---|---|---|
| committer | Roland McGrath | 1992-12-21 18:34:22 +0000 |
| commit | a42a43055f9f5b882f1d2b8aad483fe1f37100c6 (patch) | |
| tree | 17736da8573f4409f3792ad7f9c332b25662d40d | |
| parent | ac21ec406ae2ec178dd477ccc08dd9e32bc532da (diff) | |
| download | emacs-a42a43055f9f5b882f1d2b8aad483fe1f37100c6.tar.gz emacs-a42a43055f9f5b882f1d2b8aad483fe1f37100c6.zip | |
(ignore): Use defun instead of fset to define; the byte compiler is smart
enough now not to compile this trivial function into slow byte code.
| -rw-r--r-- | lisp/subr.el | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 080c7c5ce4b..5ae06d130ef 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -203,15 +203,10 @@ in KEYMAP as NEWDEF those chars which are defined as OLDDEF in OLDMAP." | |||
| 203 | (cons 'progn body) | 203 | (cons 'progn body) |
| 204 | (list 'store-match-data original))))) | 204 | (list 'store-match-data original))))) |
| 205 | 205 | ||
| 206 | ;; Avoids useless byte-compilation. | 206 | (defun ignore (&rest ignore) |
| 207 | ;; In the future, would be better to fix byte compiler | 207 | "Do nothing. |
| 208 | ;; not to really compile in cases like this, | ||
| 209 | ;; and use defun here. | ||
| 210 | (fset 'ignore '(lambda (&rest ignore) | ||
| 211 | "Do nothing. | ||
| 212 | Accept any number of arguments, but ignore them." | 208 | Accept any number of arguments, but ignore them." |
| 213 | nil)) | 209 | nil) |
| 214 | |||
| 215 | 210 | ||
| 216 | ; old names | 211 | ; old names |
| 217 | (fset 'make-syntax-table 'copy-syntax-table) | 212 | (fset 'make-syntax-table 'copy-syntax-table) |