]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/advice.el (ad-make-advised-definition): Fix undefined case.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 15 Nov 2012 03:30:25 +0000 (22:30 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 15 Nov 2012 03:30:25 +0000 (22:30 -0500)
* lisp/emacs-lisp/nadvice.el (advice--make-interactive-form):
Fix string-spec case.

lisp/ChangeLog
lisp/emacs-lisp/advice.el
lisp/emacs-lisp/nadvice.el

index 51efba25f9791e8f5faa4ffef0868699e214436a..dccdc429ebce0164e28bb93f1097d82110b72f51 100644 (file)
@@ -1,3 +1,10 @@
+2012-11-15  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * emacs-lisp/nadvice.el (advice--make-interactive-form):
+       Fix string-spec case.
+
+       * emacs-lisp/advice.el (ad-make-advised-definition): Fix undefined case.
+
 2012-11-15  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * emacs-lisp/nadvice.el: Add buffer-local support to add-function.
index f9b4491e6e0c36894914ce55d9fbdefeb50199bb..b99e614bec50f6dbab197c6c545a60658f771f11 100644 (file)
@@ -2597,7 +2597,7 @@ in any of these classes."
           (ad-has-redefining-advice function))
       (let* ((origdef (ad-real-orig-definition function))
             ;; Construct the individual pieces that we need for assembly:
-            (orig-arglist (ad-arglist origdef))
+            (orig-arglist (and origdef (ad-arglist origdef)))
             (advised-arglist (or (ad-advised-arglist function)
                                  orig-arglist))
             (interactive-form (ad-advised-interactive-form function))
index 0c3b267f9e1f08da8985b913d58cd0d1064e954f..540e0166ec2e8a3bbf896f2a98ebecccd24d225b 100644 (file)
@@ -129,7 +129,7 @@ Each element has the form (WHERE BYTECODE STACK) where:
   ;; FIXME: The calls to interactive-form below load autoloaded functions
   ;; too eagerly.
   (let ((fspec (cadr (interactive-form function))))
-    (when (eq 'function (car fspec)) ;; Macroexpanded lambda?
+    (when (eq 'function (car-safe fspec)) ;; Macroexpanded lambda?
       (setq fspec (nth 1 fspec)))
     (if (functionp fspec)
         `(funcall ',fspec