[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Undo defalias
From: |
Emanuel Berg |
Subject: |
Re: Undo defalias |
Date: |
Wed, 01 Mar 2023 21:36:43 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Óscar Fuentes wrote:
>> (defmacro undefalias (symbol)
>> `(progn
>> (fset ,symbol (cadr (get ,symbol 'function-history)))
>> (put ,symbol 'function-history (cddr (get ,symbol 'function-history)))))
>
> Thank you. It didn't work on the affected Emacs session (
> (message "foo) throwed "Symbol’s function definition is
> void: message"), most likely because of my previous attempts
> of fixing it, but it works on emacs -Q.
Something like that is maybe something to add to vanilla
Emacs, even.
--
underground experts united
https://dataswamp.org/~incal
- Re: Undo defalias,
Emanuel Berg <=