]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve the elp-instrument-package doc string
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 6 Feb 2022 00:00:04 +0000 (01:00 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 6 Feb 2022 00:00:04 +0000 (01:00 +0100)
* lisp/emacs-lisp/elp.el (elp-instrument-package): Note the effect
of loading further files (bug#13252).

lisp/emacs-lisp/elp.el

index e5c94c09c27f5f22091883ef2e0c2f406d6c43c9..385ddb3f4149e86657d4def0557bb292fbc62e24 100644 (file)
@@ -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)))