From b1cfe18231868770dc4f4d1a0e6cf48127e7973c Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Thu, 15 Aug 2013 18:38:25 +0100 Subject: [PATCH] Fix incorrect alias checking in docs--signature help-split-fundoc expects the function symbol to be the function name used in the docstring. Since we only use help-split-fundoc for subrs, this isn't an issue in practice, because subrs use `(fn some-arg some-other-arg)` rather than an explicit name. Still, the boolean ought to do what it says it's doing. --- dev/examples-to-docs.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/examples-to-docs.el b/dev/examples-to-docs.el index a5be5d3..d533d66 100644 --- a/dev/examples-to-docs.el +++ b/dev/examples-to-docs.el @@ -16,7 +16,7 @@ "Given FUNCTION (a symbol), return its argument list. FUNCTION may reference an elisp function, alias, macro or a subr." (let* ((function-value (indirect-function function)) - (is-alias (eq function-value (symbol-function function))) + (is-alias (not (eq function-value (symbol-function function)))) ;; if FUNCTION isn't an alias, function-symbol is simply FUNCTION (function-symbol function))