diff options
| author | Stefan Monnier | 2012-03-26 15:10:00 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-03-26 15:10:00 -0400 |
| commit | f9210e18be29dd83fab9f4e260a29f6e6e5f0c62 (patch) | |
| tree | af9151109ce697cc61d0b9e72fcd91dd861dfc12 | |
| parent | 679910f18b72f30c7b9ac4322974bd859219384a (diff) | |
| download | emacs-f9210e18be29dd83fab9f4e260a29f6e6e5f0c62.tar.gz emacs-f9210e18be29dd83fab9f4e260a29f6e6e5f0c62.zip | |
* emacs-lisp/bytecomp.el (byte-compile-constants-vector): Allow more
than 197 variables.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a9cb5a519d0..93ae0f12862 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-03-26 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/bytecomp.el (byte-compile-constants-vector): Allow more | ||
| 4 | than 197 variables. | ||
| 5 | |||
| 1 | 2012-03-26 Ami Fischman <ami@fischman.org> | 6 | 2012-03-26 Ami Fischman <ami@fischman.org> |
| 2 | 7 | ||
| 3 | * vc/vc-git.el (vc-git-state): Avoid unnecessarily locking. | 8 | * vc/vc-git.el (vc-git-state): Avoid unnecessarily locking. |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 2ee878e5213..93c6518d215 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -2694,7 +2694,8 @@ If FORM is a lambda or a macro, byte-compile it as a function." | |||
| 2694 | (limits '(5 ; Use the 1-byte varref codes, | 2694 | (limits '(5 ; Use the 1-byte varref codes, |
| 2695 | 63 ; 1-constlim ; 1-byte byte-constant codes, | 2695 | 63 ; 1-constlim ; 1-byte byte-constant codes, |
| 2696 | 255 ; 2-byte varref codes, | 2696 | 255 ; 2-byte varref codes, |
| 2697 | 65535)) ; 3-byte codes for the rest. | 2697 | 65535 ; 3-byte codes for the rest. |
| 2698 | 65535)) ; twice since we step when we swap. | ||
| 2698 | limit) | 2699 | limit) |
| 2699 | (while (or rest other) | 2700 | (while (or rest other) |
| 2700 | (setq limit (car limits)) | 2701 | (setq limit (car limits)) |
| @@ -2708,8 +2709,8 @@ If FORM is a lambda or a macro, byte-compile it as a function." | |||
| 2708 | (setcdr (car rest) (setq i (1+ i))) | 2709 | (setcdr (car rest) (setq i (1+ i))) |
| 2709 | (setq ret (cons (car rest) ret)))) | 2710 | (setq ret (cons (car rest) ret)))) |
| 2710 | (setq rest (cdr rest))) | 2711 | (setq rest (cdr rest))) |
| 2711 | (setq limits (cdr limits) | 2712 | (setq limits (cdr limits) ;Step |
| 2712 | rest (prog1 other | 2713 | rest (prog1 other ;&Swap. |
| 2713 | (setq other rest)))) | 2714 | (setq other rest)))) |
| 2714 | (apply 'vector (nreverse (mapcar 'car ret))))) | 2715 | (apply 'vector (nreverse (mapcar 'car ret))))) |
| 2715 | 2716 | ||