Wilfred/elisp-refs được TopGit xếp vào nhóm dự án mã nguồn mở, với 131 sao trên GitHub, viết chủ yếu bằng Emacs Lisp. semantic code search for emacs lisp
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
elisp-refs is an intelligent code search for Emacs lisp.
It can find references to functions, macros or variables. Unlike a
dumb text search, elisp-refs actually parses the code, so it's never
confused by comments or variables with the same name as functions.
This is particularly useful for finding all the places a function is
used, or finding examples of usage.
Interested readers may enjoy my blog post:
Searching A Million Lines Of Lisp.
Installation
Install from MELPA (recommended) or just add elisp-refs to your load-path.
Commands available
elisp-refs-function (find function calls)
elisp-refs-macro (find macro calls)
elisp-refs-variable (find variable references)
elisp-refs-special (find special form calls)
elisp-refs-symbol (find all references to a symbol)
These command search all the files currently loaded in your Emacs
instance.
If called with a prefix, you can limit search results to specific
directories. For example:
C-u M-x elisp-refs-macro RET pcase RET ~/.emacs.d/elpa/magit-20160927.510 RET
will search for uses of pcase in magit:
Semantic analysis
elisp-refs has street smarts: given (defun foo (bar) (baz)), it
understands that bar is a variable and baz is a function.
elisp-refs understands the following forms:
defundefsubstdefmacrocl-defun
lambda
letlet*
funcallapply
sharp quoted expressions (e.g. #'some-func)
Limitations
elisp-refs understands elisp special forms, and a few common
macros. However, it cannot understand arbitrary macros.
Therefore elisp-refs will assume that (other-macro (foo bar)) is a
function call to foo. If this is incorrect, you may wish to use the
command elisp-refs-symbol to find all references to the foo symbol.
If other-macro is a common macro, please consider submitting a patch
to elisp-refs--function-p to make elisp-refs smarter.
elisp-refs also does not support indirect calls.
;; Since we do a simple syntax tree walk, this isn't treated as a
;; call to foo.
(let ((x (symbol-function 'foo)))
(funcall x))
;; Similarly, indirect function calls are not treated as
;; function calls.
(defun call-func (x)
(funcall x))
(call-func 'foo)
;; However, if you use sharp quoting, elisp-refs knows it's a function
reference!
(call-func #'foo)
Running tests
You can run the tests with:
$ cask install
$ cask exec ert-runner
Performance
elisp-refs is CPU-intensive elisp and has been carefully optimised. You
can run the benchmark script with:
$ cask install
$ ./bench.sh
New features are carefully measured to ensure performance does not get
worse.
See elisp-refs-bench.el for more details.
Alternative Projects
xref-find-references: This command is included in Emacs 25.1, but
it's based on a text search. It is confused by comments and strings,
and cannot distinguish between functions and variables.
xrefs-find-references is also line oriented, so it does not show the
whole sexp that matched your search. Since it requires text files,
it doesn't search built-in .el.gz files.
TAGS: It is possible to record function references in TAGS
files. Whilst universal-ctags (formerly
known as exuberant-ctags) does provide the ability to find references,
it is not supported in its lisp parser.
etags, the TAGS implementation shipped with Emacs, cannot find
references (to my knowledge).
el-search allows
you to search for arbitrary forms in elisp files. It's slower, but a
much more general tool. Its design greatly influenced elisp-refs.
elisp-slime-nav
finds definitions, not references. It's a great complementary tool.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/Wilfred/elisp-refs là nguồn chính thức.
Wilfred/elisp-refs có bao nhiêu sao?
Wilfred/elisp-refs có 131 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/Wilfred/elisp-refs. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
Wilfred/elisp-refs có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho Wilfred/elisp-refs. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
Wilfred/elisp-refs có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho Wilfred/elisp-refs. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
Wilfred/elisp-refs là gì?
Wilfred/elisp-refs (Wilfred/elisp-refs) là dự án Emacs Lisp trên GitHub. Theo mô tả gốc: semantic code search for emacs lisp
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về elisp-refs?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về elisp-refs.