From dd3715b0cb73515f516eccaace8eba13f2b328ab Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 14 Jan 2022 11:51:24 +0100 Subject: [PATCH] Make function-alias-p use a better error symbol * lisp/subr.el (function-alias-p): Use the same error symbol as `indirect-function'. --- lisp/subr.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/subr.el b/lisp/subr.el index b0d2ab623b1..dd260dfe418 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -6555,7 +6555,7 @@ signalled. If NOERROR, the non-loop parts of the chain is returned." (eq func orig-func)) (if noerror (throw 'loop chain) - (error "Alias loop for `%s'" orig-func))) + (signal 'cyclic-function-indirection (list orig-func)))) (push func chain)) chain)))) -- 2.39.2