Melt candy in margarine and set aside. Beat with mixer on high: eggs, sugar, cocoa, flour and vanilla. Add candy and margarine mixture, beating on high. Add buttermilk and continue beating with mixer. Pour into prepared 9" pie shell. Bake at 325 degrees for 40 minutes or until done. May take a little longer, according to how hot your oven is.