diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2018-07-07 20:53:54 +0100 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2018-07-07 20:53:54 +0100 |
| commit | d54422a47cc9a33c37db9c030c0f3ca35a797627 (patch) | |
| tree | 60b6e5492d5599b3d065501fb5f0d6e9defaa6e4 | |
| parent | 022098d6c5fbd975ec4c5102327ea04d5840d711 (diff) | |
Detect more forms of function calls
| -rw-r--r-- | helpful.el | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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)) |
