Skip to content

Commit

Permalink
We don't support indirect calls either
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Sep 26, 2016
1 parent c961079 commit 1592c42
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ refs.el understands the following forms:
## Limitations

refs.el understands elisp special forms, and a few common
macros. However, it cannot understand arbitrary macros.
macros. However, it **cannot understand arbitrary macros**.

Therefore refs.el will assume that `(other-macro (foo bar))` is a
function call to `foo`. If this is incorrect, you may wish to use the
Expand All @@ -45,6 +45,21 @@ command `refs-symbol` to find all references to the `foo` symbol.
If `other-macro` is a common macro, please consider submitting a patch
to `refs--function-p` to make refs.el smarter.

refs.el also **does not support** indirect calls.

``` emacs-lisp
;; Since we do a simple syntax walk, this isn't treated as a
;; call to foo.
(let ((x (symbol-function 'foo)))
(funcall x))
;; Similarly, pasing functions as arguments will not be treated
;; as function calls either.
(defun call-func (x)
(funcall x))
(call-func 'foo)
```

## Running tests

You can run the tests with:
Expand Down

0 comments on commit 1592c42

Please sign in to comment.