]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix qualifiers order for loadhist-unload-element in elp.el
authorMauro Aranda <maurooaranda@gmail.com>
Fri, 5 Mar 2021 13:18:32 +0000 (14:18 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Mar 2021 13:18:32 +0000 (14:18 +0100)
* lisp/emacs-lisp/elp.el (loadhist-unload-element): The :extra
qualifier is expected to come before the other qualifiers, so do
that (bug#46917).

lisp/emacs-lisp/elp.el

index cc2927caf403fc6e11e8b840bba0a84756c38ddc..411ea2af69c27577e35e5e454bcd68094ee8bc8b 100644 (file)
@@ -583,7 +583,7 @@ displayed."
   ;; continue standard unloading
   nil)
 
-(cl-defmethod loadhist-unload-element :before :extra "elp" ((x (head defun)))
+(cl-defmethod loadhist-unload-element :extra "elp" :before ((x (head defun)))
   "Un-instrument before unloading a function."
   (elp-restore-function (cdr x)))