aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2018-07-07 20:53:54 +0100
committerWilfred Hughes <me@wilfred.me.uk>2018-07-07 20:53:54 +0100
commitd54422a47cc9a33c37db9c030c0f3ca35a797627 (patch)
tree60b6e5492d5599b3d065501fb5f0d6e9defaa6e4
parent022098d6c5fbd975ec4c5102327ea04d5840d711 (diff)
Detect more forms of function calls
-rw-r--r--helpful.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/helpful.el b/helpful.el
index c8b03c2..b775a9e 100644
--- a/helpful.el
+++ b/helpful.el
@@ -1615,10 +1615,11 @@ may contain duplicates."
protected-form-fns
(-flatten handler-fns))))
- ;; Calling a function with `funcall' or `apply', for example
- ;; (funcall 'foo 1 2).
+ ;; Calling a function with a well known higher order function, for
+ ;; example (funcall 'foo 1 2).
((and
- (memq (car form) '(funcall apply))
+ (memq (car form) '(funcall apply call-interactively
+ mapcar mapc -map))
(eq (car-safe (nth 1 form)) 'quote))
(cons
(cadr (nth 1 form))