diff options
| author | Eli Zaretskii | 2007-03-24 15:54:09 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2007-03-24 15:54:09 +0000 |
| commit | 6e5a4966d5d187cb5966c0b2db8ca2f7a06329b8 (patch) | |
| tree | 3e61263f2c312a486c918dd284e5e0e79886b105 | |
| parent | 9788311dace8f7feb67be81eebf682b6a98f9a82 (diff) | |
| download | emacs-6e5a4966d5d187cb5966c0b2db8ca2f7a06329b8.tar.gz emacs-6e5a4966d5d187cb5966c0b2db8ca2f7a06329b8.zip | |
(testcover-start, testcover-end, testcover-mark-all, testcover-unmark-all): Add
prompts to interactive specs.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/testcover.el | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7c6b8a31865..7fb15aacc3d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-03-24 Ryan Yeske <rcyeske@gmail.com> | ||
| 2 | |||
| 3 | * emacs-lisp/testcover.el (testcover-start, testcover-end) | ||
| 4 | (testcover-mark-all, testcover-unmark-all): Add prompts to | ||
| 5 | interactive specs. | ||
| 6 | |||
| 1 | 2007-03-24 Jason Rumney <jasonr@gnu.org> | 7 | 2007-03-24 Jason Rumney <jasonr@gnu.org> |
| 2 | 8 | ||
| 3 | * autorevert.el (find-file-hook, auto-revert-tail-mode): | 9 | * autorevert.el (find-file-hook, auto-revert-tail-mode): |
diff --git a/lisp/emacs-lisp/testcover.el b/lisp/emacs-lisp/testcover.el index d8c171e111d..7d7e788523b 100644 --- a/lisp/emacs-lisp/testcover.el +++ b/lisp/emacs-lisp/testcover.el | |||
| @@ -190,7 +190,7 @@ call to one of the `testcover-1value-functions'." | |||
| 190 | changes the instrumentation from edebug to testcover--much faster, no | 190 | changes the instrumentation from edebug to testcover--much faster, no |
| 191 | problems with type-ahead or post-command-hook, etc. If BYTE-COMPILE is | 191 | problems with type-ahead or post-command-hook, etc. If BYTE-COMPILE is |
| 192 | non-nil, byte-compiles each function after instrumenting." | 192 | non-nil, byte-compiles each function after instrumenting." |
| 193 | (interactive "f") | 193 | (interactive "fStart covering file: ") |
| 194 | (let ((buf (find-file filename)) | 194 | (let ((buf (find-file filename)) |
| 195 | (load-read-function 'testcover-read) | 195 | (load-read-function 'testcover-read) |
| 196 | (edebug-all-defs t)) | 196 | (edebug-all-defs t)) |
| @@ -428,10 +428,10 @@ FUN should be `testcover-reinstrument' for compositional functions, | |||
| 428 | list) | 428 | list) |
| 429 | result)) | 429 | result)) |
| 430 | 430 | ||
| 431 | (defun testcover-end (buffer) | 431 | (defun testcover-end (filename) |
| 432 | "Turn off instrumentation of all macros and functions in FILENAME." | 432 | "Turn off instrumentation of all macros and functions in FILENAME." |
| 433 | (interactive "b") | 433 | (interactive "fStop covering file: ") |
| 434 | (let ((buf (find-file-noselect buffer))) | 434 | (let ((buf (find-file-noselect filename))) |
| 435 | (eval-buffer buf t))) | 435 | (eval-buffer buf t))) |
| 436 | 436 | ||
| 437 | 437 | ||
| @@ -513,7 +513,7 @@ eliminated by adding more test cases." | |||
| 513 | (defun testcover-mark-all (&optional buffer) | 513 | (defun testcover-mark-all (&optional buffer) |
| 514 | "Mark all forms in BUFFER that did not get completley tested during | 514 | "Mark all forms in BUFFER that did not get completley tested during |
| 515 | coverage tests. This function creates many overlays." | 515 | coverage tests. This function creates many overlays." |
| 516 | (interactive "b") | 516 | (interactive "bMark forms in buffer: ") |
| 517 | (if buffer | 517 | (if buffer |
| 518 | (switch-to-buffer buffer)) | 518 | (switch-to-buffer buffer)) |
| 519 | (goto-char 1) | 519 | (goto-char 1) |
| @@ -523,7 +523,7 @@ coverage tests. This function creates many overlays." | |||
| 523 | 523 | ||
| 524 | (defun testcover-unmark-all (buffer) | 524 | (defun testcover-unmark-all (buffer) |
| 525 | "Remove all overlays from FILENAME." | 525 | "Remove all overlays from FILENAME." |
| 526 | (interactive "b") | 526 | (interactive "bUnmark forms in buffer: ") |
| 527 | (condition-case nil | 527 | (condition-case nil |
| 528 | (progn | 528 | (progn |
| 529 | (set-buffer buffer) | 529 | (set-buffer buffer) |