;;; dgnushack.el --- a hack to set the load path for byte-compiling
-;; Copyright (C) 1994-2012 Free Software Foundation, Inc.
+;; Copyright (C) 1994-2013 Free Software Foundation, Inc.
;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
;; Version: 4.19
(defvar dgnushack-obsolete-name nil)
(defvar dgnushack-current-name nil)
(unwind-protect
- (define-obsolete-variable-alias 'obsolete-name 'current-name "0")
+ (define-obsolete-variable-alias
+ 'dgnushack-obsolete-name 'dgnushack-current-name "0")
(makunbound 'dgnushack-obsolete-name)
(makunbound 'dgnushack-current-name)))
(wrong-number-of-arguments
(oldvar newvar &rest args)
activate)
"Ignore arguments other than the 1st and the 2nd ones."
- (ad-Orig-define-obsolete-variable-alias oldvar newvar))
- (define-compiler-macro
- define-obsolete-variable-alias (oldvar newvar &rest args)
- `(funcall ,(symbol-function 'ad-Orig-define-obsolete-variable-alias)
- ,oldvar ,newvar))))
+ ad-do-it)
+ (put 'define-obsolete-variable-alias 'byte-optimizer
+ (lambda (form)
+ (setcdr (nthcdr 2 form) nil)
+ form))))
;;; dgnushack.el ends here