Let describe-function work for lambda again
commit9da53e2d353c97ab955fe8c35482b5eb335316c1
authorNoam Postavsky <npostavs@gmail.com>
Mon, 3 Oct 2016 22:49:56 +0000 (3 18:49 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 22 Oct 2016 02:39:37 +0000 (21 22:39 -0400)
treec2765fbfffffec106172529c8832a9dd860fcb24
parent5c2da93015abb2e6746d54e5946dfaa5ede4e685
Let describe-function work for lambda again

Since commit "* lisp/help-fns.el (describe-function): More type
checking[...]", `describe-function' throws a user-error when given a
non-symbol.  This prevents the [back] button in a *Help* buffer from
working when the page it goes back to describes an anonymous
function (e.g., the result of `describe-key' on a key which is bound to
a lambda form).

* lisp/help-fns.el (describe-function): Move the checks on FUNCTION
being an fbound symbol into the `interactive' form.  This allows
non-interactive calls to pass an anonymous function (Bug #24221).  Note
that passing a non-bound symbol non-interactively will still trigger a
`void-function' error from `describe-function-1'.
lisp/help-fns.el