From 142351a4a1fd54ec8b459fa850a28f0b8aa6296b Mon Sep 17 00:00:00 2001 From: Nelson Ferreira Date: Sat, 18 Apr 2020 11:57:47 -0400 Subject: [PATCH] Address failure to file of alias definition after it changes If the symbol of an alias changes, describe-function would fail with Invalid byte code: "Object file name not stored in doc file" * help.el (describe-function-1): When trying to find the filename of an alias find the filename of the symbol-function not the alias. Signed-off-by: Nelson Ferreira --- lisp/help.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/help.el b/lisp/help.el index 93564f5..58fa9c2 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -1286,7 +1286,10 @@ part of the documentation of internal subroutines." nil))) (princ "\n") (or file-name - (setq file-name (symbol-file function 'defun))) + (setq file-name + (symbol-file (if aliases + (symbol-function function) + function) 'defun))) (when file-name (princ " -- loaded from \"") (if (not (bufferp standard-output)) -- 2.25.1