summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/elp.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-02-06 01:00:04 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2022-02-06 01:00:04 +0100
commitab0554a19774de193ff08aee35ea3f6726cf1f76 (patch)
treefaa22d9275428dcbed9509bbfe5d4bf2f5ca5180 /lisp/emacs-lisp/elp.el
parent6278c6a94eacc23aba2f63c7289ecbcd3db6d19a (diff)
downloademacs-ab0554a19774de193ff08aee35ea3f6726cf1f76.tar.gz
emacs-ab0554a19774de193ff08aee35ea3f6726cf1f76.tar.bz2
emacs-ab0554a19774de193ff08aee35ea3f6726cf1f76.zip
Improve the elp-instrument-package doc string
* lisp/emacs-lisp/elp.el (elp-instrument-package): Note the effect of loading further files (bug#13252).
Diffstat (limited to 'lisp/emacs-lisp/elp.el')
-rw-r--r--lisp/emacs-lisp/elp.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/elp.el b/lisp/emacs-lisp/elp.el
index e5c94c09c27..385ddb3f414 100644
--- a/lisp/emacs-lisp/elp.el
+++ b/lisp/emacs-lisp/elp.el
@@ -287,7 +287,12 @@ type \"nil\" to use `elp-function-list'."
"Instrument for profiling, all functions which start with PREFIX.
For example, to instrument all ELP functions, do the following:
- \\[elp-instrument-package] RET elp- RET"
+ \\[elp-instrument-package] RET elp- RET
+
+Note that only functions that are currently loaded will be
+instrumented. If you run this function, and then later load
+further functions that start with PREFIX, they will not be
+instrumented automatically."
(interactive
(list (completing-read "Prefix of package to instrument: "
obarray 'elp-profilable-p)))