[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el,v
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el,v |
Date: |
Sat, 17 Nov 2007 03:46:24 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Glenn Morris <gm> 07/11/17 03:46:24
Index: bytecomp.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/emacs-lisp/bytecomp.el,v
retrieving revision 2.217
retrieving revision 2.218
diff -u -b -r2.217 -r2.218
--- bytecomp.el 10 Nov 2007 08:05:15 -0000 2.217
+++ bytecomp.el 17 Nov 2007 03:46:23 -0000 2.218
@@ -1258,7 +1258,7 @@
(byte-compile-fdefinition (car form) t)))
(sig (if (and def (not (eq def t)))
(byte-compile-arglist-signature
- (if (eq 'lambda (car-safe def))
+ (if (memq (car-safe def) '(declared lambda))
(nth 1 def)
(if (byte-code-function-p def)
(aref def 0)
@@ -2818,6 +2818,16 @@
(body
(list body))))
+(put 'declare-function 'byte-hunk-handler 'byte-compile-declare-function)
+(defun byte-compile-declare-function (form)
+ (push (cons (nth 1 form)
+ (if (< (length form) 4) ; arglist not specified
+ t
+ (list 'declared (nth 3 form))))
+ byte-compile-function-environment)
+ nil)
+
+
;; This is the recursive entry point for compiling each subform of an
;; expression.
;; If for-effect is non-nil, byte-compile-form will output a byte-discard
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el,v, Stefan Monnier, 2007/11/09
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el,v, Dan Nicolaescu, 2007/11/10
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el,v,
Glenn Morris <=
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el,v, Glenn Morris, 2007/11/18
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el,v, Stefan Monnier, 2007/11/22
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el,v, Juanma Barranquero, 2007/11/26
- [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/bytecomp.el,v, Glenn Morris, 2007/11/30