Mercurial > hg > xemacs-beta
comparison man/cl.texi @ 400:a86b2b5e0111 r21-2-30
Import from CVS: tag r21-2-30
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:14:34 +0200 |
parents | 74fd4e045ea6 |
children | 697ef44129c6 |
comparison
equal
deleted
inserted
replaced
399:376370fb5946 | 400:a86b2b5e0111 |
---|---|
3216 Emacs 19. | 3216 Emacs 19. |
3217 | 3217 |
3218 @example | 3218 @example |
3219 (declaim (inline foo bar)) | 3219 (declaim (inline foo bar)) |
3220 (eval-when (compile load eval) (proclaim '(inline foo bar))) | 3220 (eval-when (compile load eval) (proclaim '(inline foo bar))) |
3221 (proclaim-inline foo bar) ; XEmacs only | 3221 (proclaim-inline foo bar) ; XEmacs only |
3222 (defsubst foo (...) ...) ; instead of defun; Emacs 19 only | 3222 (defsubst foo (...) ...) ; instead of defun; Emacs 19 only |
3223 @end example | 3223 @end example |
3224 | 3224 |
3225 @strong{Please note:} This declaration remains in effect after the | 3225 @strong{Please note:} This declaration remains in effect after the |
3226 containing source file is done. It is correct to use it to | 3226 containing source file is done. It is correct to use it to |
3227 request that a function you have defined should be inlined, | 3227 request that a function you have defined should be inlined, |
5547 In Common Lisp, one traditionally uses @code{#'} notation when | 5547 In Common Lisp, one traditionally uses @code{#'} notation when |
5548 referring to the name of a function. In Emacs Lisp, it works | 5548 referring to the name of a function. In Emacs Lisp, it works |
5549 just as well to use a regular quote: | 5549 just as well to use a regular quote: |
5550 | 5550 |
5551 @example | 5551 @example |
5552 (loop for x in y by #'cddr collect (mapcar #'plusp x)) ; Common Lisp | 5552 (loop for x in y by #'cddr collect (mapcar #'plusp x)) ; Common Lisp |
5553 (loop for x in y by 'cddr collect (mapcar 'plusp x)) ; Emacs Lisp | 5553 (loop for x in y by 'cddr collect (mapcar 'plusp x)) ; Emacs Lisp |
5554 @end example | 5554 @end example |
5555 | 5555 |
5556 When @code{#'} introduces a @code{lambda} form, it is best to | 5556 When @code{#'} introduces a @code{lambda} form, it is best to |
5557 write out @code{(function ...)} longhand in Emacs Lisp. You can | 5557 write out @code{(function ...)} longhand in Emacs Lisp. You can |
5558 use a regular quote, but then the byte-compiler won't know that | 5558 use a regular quote, but then the byte-compiler won't know that |