From 5ae25318a4f04fff8a957931e6b75e6a884fa041 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 27 Jun 2018 18:53:05 +0200 Subject: [PATCH] Remove fmakunbound from add-transient-hook! unintern is enough. --- core/core-lib.el | 1 - 1 file changed, 1 deletion(-) diff --git a/core/core-lib.el b/core/core-lib.el index 8e1a35fcd..d7078d8ef 100644 --- a/core/core-lib.el +++ b/core/core-lib.el @@ -300,7 +300,6 @@ HOOK can be a quoted hook or a sharp-quoted function (which will be advised)." ,@forms (cond ((functionp ,hook) (advice-remove ,hook #',fn)) ((symbolp ,hook) (remove-hook ,hook #',fn))) - (fmakunbound ',fn) (unintern ',fn nil))) (cond ((functionp ,hook) (advice-add ,hook ,(if append :after :before) #',fn))