aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2012-10-11 16:08:38 -0400
committerStefan Monnier2012-10-11 16:08:38 -0400
commit5253a5fd755a26e30c73653bc49066f0649ec0eb (patch)
tree2b0d0acea8460e0b881dd90156c89aca55c73650
parentac9fc2c779445a88cdf0ae2fa042879bb7ff0d16 (diff)
downloademacs-5253a5fd755a26e30c73653bc49066f0649ec0eb.tar.gz
emacs-5253a5fd755a26e30c73653bc49066f0649ec0eb.zip
Fix spurious "cl--defsubst-expand might not be defined at runtime"
* lisp/emacs-lisp/bytecomp.el (byte-compile-eval): Adjust to long-ago changes to the format of load-history. * src/eval.c (Fautoload): Remember previous autoload status in load-history.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/emacs-lisp/bytecomp.el8
-rw-r--r--src/ChangeLog4
-rw-r--r--src/eval.c8
4 files changed, 15 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ba105ce4716..8d9c85c1326 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12012-10-11 Stefan Monnier <monnier@iro.umontreal.ca> 12012-10-11 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * emacs-lisp/bytecomp.el (byte-compile-eval): Adjust to long-ago
4 changes to the format of load-history.
5
3 * international/mule-cmds.el (read-char-by-name): Move let-binding of 6 * international/mule-cmds.el (read-char-by-name): Move let-binding of
4 completion-ignore-case in case that var is buffer-local (bug#12615). 7 completion-ignore-case in case that var is buffer-local (bug#12615).
5 8
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 4dd44bb6f22..7534ce5eaca 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -875,13 +875,11 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'."
875 (byte-compile-cl-file-p (car xs)))) 875 (byte-compile-cl-file-p (car xs))))
876 (dolist (s xs) 876 (dolist (s xs)
877 (cond 877 (cond
878 ((symbolp s)
879 (unless (memq s old-autoloads)
880 (push s byte-compile-noruntime-functions)))
881 ((and (consp s) (eq t (car s))) 878 ((and (consp s) (eq t (car s)))
882 (push (cdr s) old-autoloads)) 879 (push (cdr s) old-autoloads))
883 ((and (consp s) (eq 'autoload (car s))) 880 ((and (consp s) (memq (car s) '(autoload defun)))
884 (push (cdr s) byte-compile-noruntime-functions))))))) 881 (unless (memq (cdr s) old-autoloads)
882 (push (cdr s) byte-compile-noruntime-functions))))))))
885 ;; Go through current-load-list for the locally defined funs. 883 ;; Go through current-load-list for the locally defined funs.
886 (let (old-autoloads) 884 (let (old-autoloads)
887 (while (and hist-nil-new (not (eq hist-nil-new hist-nil-orig))) 885 (while (and hist-nil-new (not (eq hist-nil-new hist-nil-orig)))
diff --git a/src/ChangeLog b/src/ChangeLog
index c238af65d2d..839e7e52e00 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12012-10-11 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * eval.c (Fautoload): Remember previous autoload status in load-history.
4
12012-10-11 Paul Eggert <eggert@cs.ucla.edu> 52012-10-11 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 lread.c, macros.c, marker.c, menu.c, minibuf.c: Use bool for booleans. 7 lread.c, macros.c, marker.c, menu.c, minibuf.c: Use bool for booleans.
diff --git a/src/eval.c b/src/eval.c
index 4d200fbc2bd..975204da017 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1876,9 +1876,11 @@ this does nothing and returns nil. */)
1876 CHECK_STRING (file); 1876 CHECK_STRING (file);
1877 1877
1878 /* If function is defined and not as an autoload, don't override. */ 1878 /* If function is defined and not as an autoload, don't override. */
1879 if (!EQ (XSYMBOL (function)->function, Qunbound) 1879 if ((CONSP (XSYMBOL (function)->function)
1880 && !(CONSP (XSYMBOL (function)->function) 1880 && EQ (XCAR (XSYMBOL (function)->function), Qautoload)))
1881 && EQ (XCAR (XSYMBOL (function)->function), Qautoload))) 1881 /* Remember that the function was already an autoload. */
1882 LOADHIST_ATTACH (Fcons (Qt, function));
1883 else if (!EQ (XSYMBOL (function)->function, Qunbound))
1882 return Qnil; 1884 return Qnil;
1883 1885
1884 if (NILP (Vpurify_flag)) 1886 if (NILP (Vpurify_flag))