emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master bf37ea1873 1/4: * lisp/loadhist.el (loadhist-unload-element): Rem


From: Stefan Monnier
Subject: master bf37ea1873 1/4: * lisp/loadhist.el (loadhist-unload-element): Remove auxiliary function info
Date: Sat, 3 Sep 2022 11:28:48 -0400 (EDT)

branch: master
commit bf37ea1873cd2cec1072afb10e885b3a654e8829
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * lisp/loadhist.el (loadhist-unload-element): Remove auxiliary function info
    
    See bug#50869.
---
 lisp/loadhist.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lisp/loadhist.el b/lisp/loadhist.el
index b4ed043246..0cb02f072e 100644
--- a/lisp/loadhist.el
+++ b/lisp/loadhist.el
@@ -171,6 +171,13 @@ unloading."
     (cond
      ((null hist)
       (defalias fun nil)
+      ;; FIXME: Arguably these properties should be applied via
+      ;; `define-symbol-prop', but most code still uses just `put'.
+      ;; FIXME: Maybe these properties should be attached to the
+      ;; function itself (as for `advertised-calling-convention')
+      ;; rather than to its symbol.
+      (if (get fun 'compiler-macro) (put fun 'compiler-macro nil))
+      (if (get fun 'gv-expander)    (put fun 'gv-expander nil))
       ;; Override the change that `defalias' just recorded.
       (put fun 'function-history nil))
      ((equal (car hist) loadhist-unload-filename)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]